ontotext-yasgui-web-component 1.3.21 → 1.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./p-2350c3f2.js";import{E as EventService,M as MessageType,I as InternalNotificationMessageEvent,a as MessageCode}from"./p-0b268638.js";import{I as InternalEventType}from"./p-6e022a49.js";import{S as SvgUtil}from"./p-733b22bd.js";import{O as OutputEventType}from"./p-9ab12638.js";import"./p-5cc13736.js";const INTERACTIVE_ELEMENTS_SELECTOR='button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])';class HtmlUtil{static escapeHTMLEntities(t){let e=t;return t&&(e=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")),e}static decodeHTMLEntities(t){const e=document.createElement("textarea");return e.innerHTML=t,e.value}static loadJavaScript(t,e,n=!1){if(document.querySelector(`script[src="${t}"]`))"function"==typeof e&&e();else{const r=document.createElement("script");r.setAttribute("src",t),r.async=n,e&&r.addEventListener("load",e),document.head.appendChild(r)}}static loadCss(t){if(!document.querySelector(`link[href="${t}"]`)){const e=document.createElement("link");e.setAttribute("href",t),e.rel="stylesheet",e.type="text/css",document.head.appendChild(e)}}static downloadStringAsFile(t,e,n){const r=new Blob([t],{type:n}),i=URL.createObjectURL(r),o=document.createElement("a");o.style.display="none",o.href=i,o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(i)}static setDocumentBodyOverflow(t){const e=document.body.style.overflow;return document.body.style.overflow=t,e}static hideDocumentBodyOverflow(){return HtmlUtil.setDocumentBodyOverflow("hidden")}static focusNextElement(t,e=INTERACTIVE_ELEMENTS_SELECTOR){const n=Array.from(t.querySelectorAll(e));if(n.length>0){const t=n.indexOf(document.activeElement),e=n[(t+1)%n.length];e&&e.focus()}}static focusPreviousElement(t,e=INTERACTIVE_ELEMENTS_SELECTOR){const n=Array.from(t.querySelectorAll(e));if(n.length>0){const t=n.indexOf(document.activeElement),e=n[(t-1+n.length)%n.length];e&&e.focus()}}static preventLeavingDialog(t,e){"Tab"===e.key&&(e.preventDefault(),e.shiftKey?HtmlUtil.focusPreviousElement(t):HtmlUtil.focusNextElement(t))}}const confirmationDialogCss='@font-face{font-family:"icomoon";src:url("../css/fonts/icons.eot?z4jeba");src:url("../css/fonts/icons.eot?z4jeba#iefix") format("embedded-opentype"), url("../css/fonts/icons.ttf?z4jeba") format("truetype"), url("../css/fonts/icons.woff?z4jeba") format("woff"), url("../css/fonts/icons.svg?z4jeba#icons") format("svg");font-weight:normal;font-style:normal}.red{color:#e84e0f}.hidden{display:none !important}.scroll-hidden{overflow:hidden}[class^=icon-],[class*=" icon-"],.icon-any{font-family:"icomoon", sans-serif !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;vertical-align:middle;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-lg{font-size:1.2em}.icon-arrow-up-off:before{content:"\\e948"}.icon-collapse:before{content:"\\e949"}.icon-eye-off:before{content:"\\e94a"}.icon-expand:before{content:"\\e94c"}.icon-focus:before{content:"\\e94d"}.icon-rotate-left:before{content:"\\e94e"}.icon-rotate-right:before{content:"\\e94f"}.icon-info-alt:before{content:"\\e950"}.icon-facebook:before{content:"\\e942"}.icon-google-plus:before{content:"\\e943"}.icon-google:before{content:"\\e944"}.icon-linkedin:before{content:"\\e945"}.icon-twitter:before{content:"\\e946"}.icon-youtube:before{content:"\\e947"}.icon-play:before{content:"\\e941"}.icon-email:before{content:"\\e93e"}.icon-same-as-on:before{content:"\\e93f"}.icon-same-as-off:before{content:"\\e940"}.icon-repo-contour1:before{content:"\\e906"}.icon-repo-contour2:before{content:"\\e90b"}.icon-repo-contour3:before{content:"\\e910"}.icon-repo-master-ro-mute:before{content:"\\e913"}.icon-repo-free:before{content:"\\e936"}.icon-repo-master-mute:before{content:"\\e937"}.icon-repo-master-ro:before{content:"\\e938"}.icon-repo-master:before{content:"\\e939"}.icon-repo-se:before{content:"\\e93a"}.icon-repo-system:before{content:"\\e93b"}.icon-repo-worker:before{content:"\\e93c"}.icon-repo:before{content:"\\e93d"}.icon-copy:before{content:"\\e934"}.icon-eye:before{content:"\\e935"}.icon-connection-off:before{content:"\\e931"}.icon-connection-on:before{content:"\\e932"}.icon-key:before{content:"\\e933"}.icon-comment:before{content:"\\e930"}.icon-arrow-down:before{content:"\\e900"}.icon-arrow-left:before{content:"\\e901"}.icon-arrow-right:before{content:"\\e902"}.icon-arrow-up:before{content:"\\e903"}.icon-exchange:before{content:"\\e904"}.icon-columns:before{content:"\\e905"}.icon-inferred-off:before{content:"\\e907"}.icon-inferred-on:before{content:"\\e908"}.icon-save:before{content:"\\e909"}.icon-tag:before{content:"\\e90a"}.icon-file:before{content:"\\e90c"}.icon-folder:before{content:"\\e90d"}.icon-heartbeat:before{content:"\\e90e"}.icon-pin:before{content:"\\e90f"}.icon-zoom-in:before{content:"\\e911"}.icon-zoom-out:before{content:"\\e912"}.icon-check:before{content:"\\e914"}.icon-download:before{content:"\\e915"}.icon-external:before{content:"\\e916"}.icon-lock:before{content:"\\e917"}.icon-search:before{content:"\\e918"}.icon-upload:before{content:"\\e919"}.icon-caret-left:before{content:"\\e91a"}.icon-caret-right:before{content:"\\e91b"}.icon-caret-up:before{content:"\\e91c"}.icon-caret-up-after:after{content:"\\e91c"}.icon-minus:before{content:"\\e91d"}.icon-reload:before{content:"\\e91e"}.icon-trash:before{content:"\\e91f"}.icon-warning:before{content:"\\e920"}.icon-caret-down:before{content:"\\e921"}.icon-caret-down-after:after{content:"\\e921"}.icon-close:before{content:"\\e922"}.icon-edit:before{content:"\\e923"}.icon-info:before{content:"\\e924"}.icon-link:before{content:"\\e925"}.icon-more:before{content:"\\e926"}.icon-plus:before{content:"\\e927"}.icon-data:before{content:"\\e928"}.icon-help:before{content:"\\e929"}.icon-monitoring:before{content:"\\e92a"}.icon-settings:before{content:"\\e92b"}.icon-sparql:before{content:"\\e92c"}.icon-user-alt:before{content:"\\e92d"}.icon-export-alt:before{content:"\\e92e"}.icon-import:before{content:"\\e92f"}.icon-tick:before{content:"\\e956"}.icon-repo-ontop-alt:before{content:"\\e958"}.icon-repo-fedx-alt:before{content:"\\e959"}.icon-repo-graphdb-alt:before{content:"\\e95a"}.icon-export:before{content:"\\e95b"}.icon-readonly:before{content:"\\e95c"}.icon-repo-fedx:before{content:"\\e95d"}.icon-repo-graphdb:before{content:"\\e95e"}.icon-repo-ontop:before{content:"\\e95f"}.icon-repo-unknown:before{content:"\\e960"}.icon-translation:before{content:"\\e961"}.icon-user:before{content:"\\e962"}.icon-follower:before{content:"\\e962"}.alert{border-radius:0;border:1px solid transparent;position:relative;padding:1em}.alert-warning,.alert-info,.alert-help,.alert-danger,.alert-success{color:#000000A8}.alert-warning{background-color:#f9e6c0}.alert-info{background-color:#cfefec}.alert-help{background-color:#e7f7f5}.alert-success{background-color:#dff0d8}.alert-danger{background-color:#fbdbd5}.alert-info,.alert-warning,.alert-help,.alert-danger,.alert-success{padding-left:3em}.alert-info:before,.alert-warning:before,.alert-help:before,.alert-danger:before,.alert-success:before{font-family:"icomoon", sans-serif !important;font-size:1.6em;vertical-align:middle;line-height:1;position:absolute;left:0.6em;top:0.6em;color:#00000080}.alert-info:before{content:"\\e924"}.alert-warning:before{content:"\\e930"}.alert-help:before{content:"\\e929"}.alert-danger:before{content:"\\e920"}.alert-success:before{content:"\\e914"}.no-icon{padding-left:1em}.no-icon:before{display:none}.alert .alert{background-color:transparent}.icon-rotate-quarter:before{display:inline-block;-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}:host{display:block}.dialog-overlay{position:fixed;top:0;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;z-index:9998;margin-left:-10px;background-color:rgba(0, 0, 0, 0.5);font-family:"Roboto", "Helvetica Neue", Arial, sans-serif;font-weight:300;color:#373a3c}.dialog{z-index:1001;width:600px;max-width:600px;background-color:#fff;box-shadow:0 5px 15px rgba(0, 0, 0, 0.5);font-family:inherit;font-weight:inherit}.dialog .dialog-header{display:flex;justify-content:space-between;padding:15px;border-bottom:1px solid #e5e5e5;font-size:20px}.dialog .dialog-header .dialog-title{margin:0.5rem 0;font-weight:400}.dialog .dialog-header .close-button{background-color:#fff;border:none;outline:none;cursor:pointer;transition:all 0.15s ease-out}.dialog .dialog-header .close-button:hover,.dialog .dialog-header .close-button:focus{font-weight:bold}.dialog .dialog-body{overflow-x:auto;padding:15px}.dialog .dialog-footer{display:flex;justify-content:flex-end;padding:15px;border-top:1px solid #e5e5e5}.dialog .dialog-footer button{display:inline-block;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;border:1px solid transparent;outline:none;padding:0.5rem 1rem;font-size:1rem;border-radius:0;transition:all 0.15s ease-out}.dialog .dialog-footer .confirm-button{background-color:#e84e0f;border-color:#e84e0f;color:#fff}.dialog .dialog-footer .confirm-button:hover,.dialog .dialog-footer .confirm-button:focus{background-color:#d0460d;border-color:#d0460d}.dialog .dialog-footer .cancel-button{color:#003663;margin-right:10px}.dialog .dialog-footer .cancel-button:hover,.dialog .dialog-footer .cancel-button:focus{background-color:#d4d4d4;border-color:#d4d4d4}',ConfirmationDialog=class{constructor(t){registerInstance(this,t),this.internalConfirmationRejectedEvent=createEvent(this,"internalConfirmationRejectedEvent",7),this.internalConfirmationApprovedEvent=createEvent(this,"internalConfirmationApprovedEvent",7),this.translationService=void 0,this.config={title:"Confirmation",message:"Confirming?"}}keydownListener(t){"Escape"===t.key&&this.internalConfirmationRejectedEvent.emit()}preventLeavingDialog(t){HtmlUtil.preventLeavingDialog(this.hostElement,t)}onClose(t){const e=t.target;t.stopPropagation();const n=e.classList.contains("dialog-overlay"),r=e.classList.contains("close-button"),i=e.classList.contains("cancel-button");(n||r||i)&&this.internalConfirmationRejectedEvent.emit()}onConfirm(t){t.stopPropagation(),this.internalConfirmationApprovedEvent.emit()}componentDidLoad(){this.hostElement.addEventListener("keydown",this.preventLeavingDialog.bind(this)),this.documentOverflow=HtmlUtil.hideDocumentBodyOverflow(),this.cancelButton.focus()}disconnectedCallback(){this.hostElement.removeEventListener("keydown",this.preventLeavingDialog.bind(this)),HtmlUtil.setDocumentBodyOverflow(this.documentOverflow)}render(){return h(Host,{tabindex:"-1"},h("div",{class:"dialog-overlay",onClick:t=>this.onClose(t)},h("div",{class:"dialog confirmation-dialog"},h("div",{class:"dialog-header"},h("h3",{class:"dialog-title"},this.config.title),h("button",{class:"close-button icon-close",onClick:t=>this.onClose(t)})),h("div",{class:"dialog-body",innerHTML:this.config.message}),h("div",{class:"dialog-footer"},h("button",{class:"cancel-button",onClick:t=>this.onClose(t),ref:t=>this.cancelButton=t},this.translationService.translate("confirmation.btn.cancel.label")),h("button",{class:"confirm-button",onClick:t=>this.onConfirm(t)},this.translationService.translate("confirmation.btn.confirm.label"))))))}get hostElement(){return getElement(this)}};ConfirmationDialog.style=confirmationDialogCss;const en={"confirmation.btn.confirm.label":"Yes","confirmation.btn.cancel.label":"Cancel","loader.message.query.editor.executing.update":"Executing update","loader.message.query.editor.executing.additional_message":" ","loader.message.query.editor.evaluating.query":"Evaluating query","loader.message.query.editor.progress.msg":"{{progressMessage}}... {{timeHuman}}","loader.message.query.editor.render.results":"Rendering results","loader.message.query.editor.running.operation":"Running operation... {{timeHuman}}","yasgui.control_bar.accept_headers.label":"Accept Headers","yasgui.control_bar.arguments.label":"Arguments","yasgui.control_bar.ask_select.label":"Ask / Select","yasgui.control_bar.construct_describe.label":"Construct / Describe","yasgui.control_bar.default_graphs.label":"Default Graphs","yasgui.control_bar.header_arguments.label":"Header Arguments","yasgui.control_bar.get.btn.label":"GET","yasgui.control_bar.named_graph.label":"Named Graphs","yasgui.control_bar.post.btn.label":"POST","yasgui.control_bar.request_method.label":"Request method","yasgui.control_bar.settings.btn.close_settings.aria_label":"Close settings","yasgui.control_bar.settings.btn.label":"Settings","yasgui.control_bar.settings.btn.open_settings.aria_label":"Open settings","yasgui.tab_list.add_tab.btn.label":"Add a new tab","yasgui.tab_list.close_tab.btn.label":"Close tab","yasgui.tab_list.close_tab.confirmation.title":"Confirm","yasgui.tab_list.close_tab.confirmation.not_queries_non_updates.message":"Are you sure you want to close this query tab?","yasgui.tab_list.close_tab.confirmation.not_query_update.message":"<div>You have running 1 update.</div><div>Are you sure you want to close this query tab?</div>","yasgui.tab_list.close_tab.confirmation.query_non_updates.message":"<div>You have running 1 query, that will be aborted.</div><div>Are you sure you want to close this query tab?</div>","yasgui.tab_list.close_last_tab.warning.message":"Last tab must remain open.","yasgui.tab_list.tab.default.name":"Unnamed","yasgui.tab_list.menu.close_other_tabs.btn.label":"Close other tabs","yasgui.tab_list.menu.close_tab.btn.label":"Close Tab","yasgui.tab_list.menu.copy_tab.btn.label":"Copy Tab","yasgui.tab_list.menu.new_tab.btn.label":"New Tab","yasgui.tab_list.menu.rename_tab.btn.label":"Rename Tab","yasgui.tab_list.menu.undo_close_tab.btn.label":"Undo close Tab","yasqe.tab_list.new_tab.query_invalid.warning.message":"Query contains a syntax error. See the relevant line for more information.","yasqe.tab_list.tab_rename.save.btn.label":"Submit","yasqe.tab_list.tab_rename.cancel.btn.label":"Cancel","yasgui.toolbar.mode_yasgui.btn.label":"Editor and results","yasgui.toolbar.mode_yasqe.btn.label":"Editor only","yasgui.toolbar.mode_yasr.btn.label":"Results only","yasgui.toolbar.orientation.btn.tooltip.switch_orientation_horizontal":"Switch to horizontal view","yasgui.toolbar.orientation.btn.tooltip.switch_orientation_vertical":"Switch to vertical view","yasqe.action.curl.btn.label":"CURL","yasqe.action.run_query.btn.label":"Run","yasqe.action.run_query.btn.tooltip":"Run query","yasqe.action.run_query.btn.disabled.tooltip":"Querying is disabled.","yasqe.action.share.btn.tooltip":"Share your query","yasqe.action.share.error.general_message":"An error has occurred","yasqe.action.shorten.btn.label":"Shorten","yasqe.autocomplete.hint":'Hint: "abC" matches "abC*", "ab c*" and "ab-c*"',"yasqe.autocomplete.notification.info.help_info_message":"Press Alt+Enter to autocomplete","yasqe.autocomplete.notification.info.nothing_to_autocomplete":"Nothing to autocomplete yet!","yasqe.autocomplete.notification.error.failed_fetching_suggestions":"Failed fetching suggestions...","yasqe.check_syntax.error.invalid_line.prefix":"This line is invalid. Expected: ","yasr.noresults.box.info":"No results from previous run. Click Run or press Ctrl/Cmd-Enter to execute the current query or update.","yasr.fallback.box.info.for_more_info":"for more information.","yasr.fallback.box.info.info_message":"Could not render results with the {{selectedPluginName}} plugin, the results currently are rendered with the {{selectedPluginName}} plugin.","yasqe.keyboard_shortcuts.btn.label":"keyboard shortcuts","yasqe.keyboard_shortcuts.dialog.title":"Keyboard shortcuts","yasqe.keyboard_shortcuts.dialog.item.trigger_autocompletion.label":"[Ctrl|Cmd]-Space|Alt-Enter","yasqe.keyboard_shortcuts.dialog.item.trigger_autocompletion.description":"Trigger Autocompletion","yasqe.keyboard_shortcuts.dialog.item.delete_current_line.label":"[Ctrl|Cmd]-D","yasqe.keyboard_shortcuts.dialog.item.delete_current_line.description":"Delete current/selected line(s)","yasqe.keyboard_shortcuts.dialog.item.comment_selected_line.label":"[Ctrl|Cmd]-/","yasqe.keyboard_shortcuts.dialog.item.comment_selected_line.description":"Comment or uncomment current/selected line(s)","yasqe.keyboard_shortcuts.dialog.item.copy_line_down.label":"[Ctrl|Cmd]-Alt-Down","yasqe.keyboard_shortcuts.dialog.item.copy_line_down.description":"Copy line down","yasqe.keyboard_shortcuts.dialog.item.copy_line_up.label":"[Ctrl|Cmd]-Alt-Up","yasqe.keyboard_shortcuts.dialog.item.copy_line_up.description":"Copy line up","yasqe.keyboard_shortcuts.dialog.item.auto_format_selected_line.label":"[Ctrl|Cmd]-Shift-F","yasqe.keyboard_shortcuts.dialog.item.auto_format_selected_line.description":"Auto-format/indent selected lines","yasqe.keyboard_shortcuts.dialog.item.indent_current_line_more.label":"[Ctrl|Cmd]-]","yasqe.keyboard_shortcuts.dialog.item.indent_current_line_more.description":"Indent current/selected line(s) more","yasqe.keyboard_shortcuts.dialog.item.indent_current_line_less.label":"[Ctrl|Cmd]-[","yasqe.keyboard_shortcuts.dialog.item.indent_current_line_less.description":"Indent current/selected line(s) less","yasqe.keyboard_shortcuts.dialog.item.execute_query_or_update.label":"[Ctrl|Cmd]-Enter","yasqe.keyboard_shortcuts.dialog.item.execute_query_or_update.description":"Execute query or update","yasqe.keyboard_shortcuts.dialog.item.execute_explain_plan_for_query.label":"Shift-[Ctrl|Cmd]-Enter","yasqe.keyboard_shortcuts.dialog.item.execute_explain_plan_for_query.description":"Execute explain plan for query","yasqe.keyboard_shortcuts.dialog.item.create_tab.label":"[Ctrl|Cmd]-Alt-T","yasqe.keyboard_shortcuts.dialog.item.create_tab.description":"Create a new unnamed tab","yasqe.keyboard_shortcuts.dialog.item.create_save_query.label":"[Ctrl|Cmd]-S","yasqe.keyboard_shortcuts.dialog.item.create_save_query.description":"Create a saved query from the current state","yasqe.keyboard_shortcuts.dialog.item.switch_next_tab.label":"[Ctrl|Cmd]-Alt-Right","yasqe.keyboard_shortcuts.dialog.item.switch_next_tab.description":"Switch to next tab","yasqe.keyboard_shortcuts.dialog.item.switch_previous_tab.label":"[Ctrl|Cmd]-Alt-Left","yasqe.keyboard_shortcuts.dialog.item.switch_previous_tab.description":"Switch to previous tab","yasqe.keyboard_shortcuts.dialog.item.closes_other_tabs.label":"[Ctrl|Cmd]-Shift-F4","yasqe.keyboard_shortcuts.dialog.item.closes_other_tabs.description":"Closes all the tabs except the current one","yasqe.keyboard_shortcuts.dialog.item.closes_other_tabs_by_left_mouse_click.label":"Shift-Left-Mouse","yasqe.keyboard_shortcuts.dialog.item.closes_other_tabs_by_left_mouse_click.description":"Click at close tab icon closes all the tabs except the clicked one","yasqe.keyboard_shortcuts.dialog.item.execute_chat_gpt_explain_plan_for_query.label":"Alt-[Ctrl|Cmd]-Enter","yasqe.keyboard_shortcuts.dialog.item.execute_chat_gpt_explain_plan_for_query.description":"Explain query/result using ChatGPT","yasqe.keyboard_shortcuts.dialog.item.full_screen.label":"[Ctrl|Cmd]-Alt-F","yasqe.keyboard_shortcuts.dialog.item.full_screen.description":"Full screen/exit full screen","yasqe.keyboard_shortcuts.dialog.item.explain_exit_fullscreen.message":"[Ctrl|Cmd]-Alt-F or Esc to exit full screen.","yasqe.keyboard_shortcuts.dialog.item.esc.label":"Esc","yasqe.keyboard_shortcuts.dialog.item.esc.description":"Press Esc to exit full screen","yasqe.keyboard_shortcuts.action.explain_plan_query.warning.message":"Explain only works with SELECT, CONSTRUCT or DESCRIBE queries.","yasqe.keyboard_shortcuts.action.explain_plan_query.error.message":"Cannot execute updates from this editor.","yasgui.tab_list.close_other_tabs.confirmation.none_queries_non_updates.message":"Are you sure you want to close all other query tabs?","yasgui.tab_list.close_other_tabs.confirmation.none_queries_one_update.message":"<div>You have running 1 update.</div><div>Are you sure you want to close all other query tabs?</div>","yasgui.tab_list.close_other_tabs.confirmation.none_queries_updates.message":"<div>You have running {{updatesCount}} updates.</div><div>Are you sure you want to close all other query tabs?</div>","yasgui.tab_list.close_other_tabs.confirmation.one_query_non_updates.message":"<div>You have running 1 query, that will be aborted.</div><div>Are you sure you want to close all other query tabs?</div>","yasgui.tab_list.close_other_tabs.confirmation.one_query_one_update.message":"<div>You have running 1 query and 1 update. The query will be aborted.</div><div>Are you sure you want to close all other query tabs?</div>","yasgui.tab_list.close_other_tabs.confirmation.one_query_updates.message":"<div>You have running 1 query and {{updatesCount}} updates. The query will be aborted.</div><div>Are you sure you want to close all other query tabs?</div>","yasgui.tab_list.close_other_tabs.confirmation.queries_non_updates.message":"<div>You have running {{queriesCount}} queries. The queries will be aborted</div><div>Are you sure you want to close all other query tabs?</div>","yasgui.tab_list.close_other_tabs.confirmation.queries_one_update.message":"<div>You have running {{queriesCount}} queries and 1 update. The queries will be aborted</div><div>Are you sure you want to close all other query tabs?</div>","yasgui.tab_list.close_other_tabs.confirmation.queries_updates.message":"<div>You have running {{queriesCount}} queries and {{updatesCount}} updates. The queries will be aborted.</div><div>Are you sure you want to close all other query tabs?</div>","yasr.message_info.removed_statements.message":"Removed {{countAffectedRepositoryStatements}} statements.","yasr.message_info.added_statements.message":"Added {{countAffectedRepositoryStatements}} statements.","yasr.message_info.no_changes.message":"The number of statements did not change.","yasr.exceptions.conflict_render":'Conflicting data types found for variable {{varName}}. Assuming all values of this variable are "string". As a result, several Google Charts will not render values of this particular variable. To avoid this issue, cast the values in your SPARQL query to the intended xsd datatype',"yasr.plugin_control.disabled.btn.tooltip":"Download not supported for this result representation","yasr.plugin_control.download_results.btn.label":"Download as","yasr.plugin_control.info.count_result":"{{countResults}} result","yasr.plugin_control.info.count_results":"{{countResults}} results","yasr.plugin_control.info.result_in_second":" in {{timeInSeconds}} second","yasr.plugin_control.info.result_in_seconds":" in {{timeInSeconds}} seconds","yasr.plugin_control.info.see":"See","yasr.plugin_control.missing_help.link.tooltip":"This plugin doesn't have a help reference yet. Please contact the maintainer to fix this","yasr.plugin_control.plugin_documentation.link.label":"{{selectedPluginName}} documentation","yasr.plugin_control.plugin_documentation.link.tooltip":"View documentation of {{pluginName}}","yasr.plugin_control.plugin.name.extended_table":"Table","yasr.plugin_control.plugin.name.response":"Raw response","yasr.plugin_control.plugin.name.table":"Table","yasr.plugin_control.plugin.name.pivot-table-plugin":"Pivot Table","yasr.plugin_control.plugin.name.pivot-table-plugin.available_variables":"Available Variables","yasr.plugin_control.plugin.name.pivot-table-plugin.columns":"Columns","yasr.plugin_control.plugin.name.pivot-table-plugin.cells":"Cells","yasr.plugin_control.plugin.name.pivot-table-plugin.rows":"Rows","yasr.plugin_control.plugin.pivot-table-plugin.charts.config.button":"Chart Config","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_TABLE":"Table","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_TABLE_BARCHART":"Table Barchart","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_HEATMAP":"Heatmap","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_ROW_HEATMAP":"Row Heatmap","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_COL_HEATMAP":"Col Heatmap","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_TREEMAP":"Treemap","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_LINE_CHART":"Line Chart","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_BAR_CHART":"Bar Chart","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_STACKED_BAR_CHART":"Stacked Bar Chart","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_AREA_CHART":"Area Chart","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_SCATTER_CHART":"Scatter Chart","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_TSV_EXPORT":"TSV Export","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_COUNT":"Count","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_COUNT_UNIQUE_VALUES":"Count Unique Values","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_LIST_UNIQUE_VALUES":"List Unique Values","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_SUM":"Sum","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_INTEGER_SUM":"Integer Sum","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_AVERAGE":"Average","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_MEDIAN":"Median","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_SAMPLE_VARIANCE":"Sample Variance","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_SAMPLE_STANDARD_DEVIATION":"Sample Standard Deviation","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_MINIMUM":"Minimum","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_MAXIMUM":"Maximum","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_FIRST":"First","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_LAST":"Last","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_SUM_OVER_SUM":"Sum over Sum","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_UPPER_BOUND":"80% Upper Bound","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_LOWER_BOUND":"80% Lower Bound","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_SUM_AS_FRACTION_OF_TOTAL":"Sum as Fraction of Total","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_SUM_AS_FRACTION_OF_ROWS":"Sum as Fraction of Rows","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_SUM_AS_FRACTION_OF_COLUMNS":"Sum as Fraction of Columns","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_COUNT_AS_FRACTION_OF_TOTAL":"Count as Fraction of Total","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_COUNT_AS_FRACTION_OF_ROWS":"Count as Fraction of Rows","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_COUNT_AS_FRACTION_OF_COLUMNS":"Count as Fraction of Columns","yasr.plugin_control.plugin.name.charts":"Google Chart","yasr.plugin_control.plugin.charts.config.button":"Chart Config","yasr.plugin_control.shows_view.btn.aria_label":"Shows {{name}} view","yasr.plugin_control.table.empty_result.label":"No data available in table","yasr.plugin_control.response_chip.timestamp.minutes_ago":"minutes ago","yasr.plugin_control.response_chip.timestamp.moments_ago":"moments ago","yasr.plugin_control.response_chip.timestamp.on_at":"on {{year}}-{{month}}-{{date}} at {{hours}}:{{minutes}}","yasr.plugin_control.response_chip.timestamp.today_at":"today at {{hours}}:{{minutes}}","yasr.plugin_control.response_chip.timestamp.yesterday_at":"yesterday at {{hours}}:{{minutes}}","yasr.plugin_control.response_chip.timestamp.warning.tooltip":"Possibly stale result (obtained {{timeAgo}} ago).","yasr.plugin_control.response_chip.message.day":"{{day}}d","yasr.plugin_control.response_chip.message.hours":"{{hours}}h","yasr.plugin_control.response_chip.message.minutes":"{{minutes}}m","yasr.plugin_control.response_chip.message.result_empty":"No results.","yasr.plugin_control.response_chip.message.result_time":"Query took {{seconds}}, {{timestamp}}.","yasr.plugin_control.response_chip.message.result_info":"Showing results from {{from}} to {{to}}","yasr.plugin_control.response_chip.message.result_info.total_results":" of {{totalResults}}","yasr.plugin_control.response_chip.message.result_info.at_least_results":" of at least {{atLeastResults}}","yasr.plugin_control.response_chip.message.seconds":"{{seconds}}s","yasr.plugin_control.download_as.extended_table.dropdown.label":"Download as","yasr.plugin_control.download_as.pivot_table.dropdown.label":"Download result","yasr.plugin_control.download_as.raw_response.dropdown.label":"Download as","yasr.plugin_control.download_as.charts.dropdown.label":"Download result","yasr.plugin_control.download_as.sparql_results_json.label":"JSON","yasr.plugin_control.download_as.sparql_results_json_ld.label":"JSON-LD","yasr.plugin_control.download_as.sparql_results_ndjson_ld.label":"NDJSON-LD","yasr.plugin_control.download_as.x_sparqlstar_results_json.label":"JSON*","yasr.plugin_control.download_as.x_sparqlstar_results_rdf_xml.label":"RDF-XML","yasr.plugin_control.download_as.sparql_results_xml.label":"XML","yasr.plugin_control.download_as.x_sparqlstar_results_xml.label":"XML*","yasr.plugin_control.download_as.csv.label":"CSV","yasr.plugin_control.download_as.tab_separated_values.label":"TSV","yasr.plugin_control.download_as.x_tab_separated_values_star.label":"TSV*","yasr.plugin_control.download_as.n3.label":"N3","yasr.plugin_control.download_as.n_triples.label":"N-Triples","yasr.plugin_control.download_as.triple.label":"Turtle","yasr.plugin_control.download_as.triple_star.label":"Turtle*","yasr.plugin_control.download_as.tri-x.label":"TriX","yasr.plugin_control.download_as.tri-g.label":"TriG","yasr.plugin_control.download_as.tri-g_star.label":"TriG*","yasr.plugin_control.download_as.n_quads.label":"N-Quads","yasr.plugin_control.download_as.x_binary_rdf_results_table.label":"Binary RDF Results","yasr.plugin_control.download_as.binary.label":"Binary RDF","yasr.plugin.error.cors_enabled.link.label":"CORS-enabled","yasr.plugin.error.endpoint_down.error.label":"Endpoint is down","yasr.plugin.error.endpoint_not_accessible.error.label":"Endpoint is not accessible from the YASGUI server and website, and the endpoint is not ","yasr.plugin.error.incorrect_endpoint.error.label":"Incorrect endpoint URL","yasr.plugin.error.new_window.btn.label":"Try query in new browser window","yasr.plugin.error.no_response_possible_reason.error.label":"Unable to get response from endpoint. Possible reasons:","yasr.plugin.error.show.full.message":"Show full exception message","yasr.plugin.error.show.less.message":"Show less exception message","yasr.plugin.response.download_result.btn.label":"Download result","yasr.plugin.response.download_result.btn.tooltip":"Download result","yasr.plugin.response.show_all.btn.label":"Show all","yasr.plugin.table.data_tables.info.result_info":"Showing _START_ to _END_ of _TOTAL_ entries","yasr.plugin.table.data_tables.paginate.first":"First","yasr.plugin.table.data_tables.paginate.last":"Last","yasr.plugin.table.data_tables.paginate.next":"Next","yasr.plugin.table.data_tables.paginate.previous":"Previous","yasr.plugin.table.download_result.btn.label":"Download result","yasr.plugin.table.ellipse.checkbox.label":"Compact view","yasr.plugin.table.page_size.dropdown.label":"Page size: ","yasr.plugin.table.simple_view.checkbox.label":"Hide row numbers","yasr.plugin.table.table_filter.input.placeholder":"Filter query results","yasr.plugin.extended_boolean.true":"YES","yasr.plugin.extended_boolean.false":"NO","yasr.plugin.no_compatible.message":" ","yasr.plugin.extended_error.default_status.message":"Error","yasqe.actions.saved_query_dialog.edit.button.tooltip":"Edit query","yasqe.actions.saved_query_dialog.delete.button.tooltip":"Delete query","yasqe.actions.saved_query_dialog.share.button.tooltip":"Get URL to query","yasqe.actions.save_query.button.tooltip":"Create saved query","yasqe.actions.save_query.dialog.title":"Create New Saved Query","yasqe.actions.save_query.dialog.query.label":"Create your sample query","yasqe.actions.save_query.dialog.query.empty_error":"Query cannot be empty!","yasqe.actions.save_query.dialog.query_name.label":"Enter title","yasqe.actions.save_query.dialog.query_name.empty_error":"Query name cannot be empty!","yasqe.actions.save_query.dialog.public_query.label":"Share query with other users","yasqe.actions.save_query.dialog.public_query.tooltip":"If checked other users will be able to see the query but not delete or edit it","yasqe.actions.save_query.dialog.create.button":"Create","yasqe.actions.save_query.dialog.cancel.button":"Cancel","yasqe.actions.show_saved_queries.button.tooltip":"Show saved queries","yasqe.actions.edit_saved_query.button.tooltip":"Edit","yasqe.actions.delete_saved_query.button.tooltip":"Delete","yasqe.actions.delete_saved_query.confirm.dialog.label":"Confirm","yasqe.actions.delete_saved_query.confirm.dialog.message":"Are you sure you want to delete the saved query '{{query}}'?","yasqe.actions.share_query.button.tooltip":"Get URL to current query","yasqe.actions.include_inferred.true.button.tooltip":"Include inferred data in results: ON","yasqe.actions.include_inferred.false.button.tooltip":"Include inferred data in results: OFF","yasqe.actions.expand_results_same_as.true.button.tooltip":"Expand results over owl:sameAs: ON","yasqe.actions.expand_results_same_as.false.button.tooltip":"Expand results over owl:sameAs: OFF","yasqe.actions.expand_results_same_as.disable.button.tooltip":"Requires 'Include Inferred'!","yasqe.footer_buttons.abort_query.button.label":"Abort query","yasqe.footer_buttons.abort_query.button.title":"Click to abort query","yasqe.footer_buttons.abort_query_requested.button.label":"Stop has been requested","yasqe.footer_buttons.abort_query_requested.button.title":"Query was requested to abort and will be terminated on the first I/O operation","yasqe.share.copy_link.dialog.title":"Copy URL to clipboard","yasqe.share.copy_link.dialog.copy.btn.label":"Copy to clipboard","yasqe.share.copy_link.dialog.copy.btn.title":"Copy to clipboard","yasqe.share.copy_link.dialog.copy.message.success":"URL copied successfully to clipboard.","yasqe.share.saved_query.dialog.copy.btn.label":"Copy to clipboard","yasqe.update_query.virtual_repository.error.message":"Updates are not supported for Virtual repositories.","yasqe.explain_query.virtual_repository.error.message":"Explain not supported for Virtual repositories."},fr={"confirmation.btn.confirm.label":"Oui","confirmation.btn.cancel.label":"Annuler","loader.message.query.editor.executing.update":"Exécution de la mise à jour","loader.message.query.editor.executing.additional_message":" ","loader.message.query.editor.evaluating.query":"Évaluation de la requête","loader.message.query.editor.progress.msg":"{{progressMessage}}... {{timeHuman}}","loader.message.query.editor.render.results":"Rendu des résultats","loader.message.query.editor.running.operation":"Exécution de l'opération... {{timeHuman}}","yasgui.control_bar.accept_headers.label":"Accept Headers","yasgui.control_bar.arguments.label":"Arguments","yasgui.control_bar.ask_select.label":"Ask / Select","yasgui.control_bar.construct_describe.label":"Construct / Describe","yasgui.control_bar.default_graphs.label":"Default Graphs","yasgui.control_bar.header_arguments.label":"Header Arguments","yasgui.control_bar.get.btn.label":"GET","yasgui.control_bar.named_graph.label":"Graphes nommés","yasgui.control_bar.post.btn.label":"POST","yasgui.control_bar.request_method.label":"Méthode de la requête","yasgui.control_bar.settings.btn.close_settings.aria_label":"Fermer les paramètres","yasgui.control_bar.settings.btn.label":"Paramètres","yasgui.control_bar.settings.btn.open_settings.aria_label":"Ouvrir les paramètres","yasgui.tab_list.add_tab.btn.label":"Ajouter un nouvel onglet","yasgui.tab_list.close_tab.btn.label":"Fermer l'onglet","yasgui.tab_list.close_tab.confirmation.title":"Confirmer","yasgui.tab_list.close_tab.confirmation.not_queries_non_updates.message":"Êtes-vous sûr de vouloir fermer cet onglet de requête?","yasgui.tab_list.close_tab.confirmation.not_query_update.message":"<div>Vous avez 1 mise à jour en cours.</div><div>Êtes-vous sûr de vouloir fermer cet onglet de requête?</div>","yasgui.tab_list.close_tab.confirmation.query_non_updates.message":"<div>Vous avez 1 requête en cours, qui sera annulée.</div><div>Êtes-vous sûr de vouloir fermer cet onglet de requête?</div>","yasgui.tab_list.close_last_tab.warning.message":"Le dernier onglet doit rester ouvert.","yasgui.tab_list.tab.default.name":"Anonyme","yasgui.tab_list.menu.close_other_tabs.btn.label":"Fermer les autres onglets","yasgui.tab_list.menu.close_tab.btn.label":"Fermer l'onglet","yasgui.tab_list.menu.copy_tab.btn.label":"Copier l'onglet","yasgui.tab_list.menu.new_tab.btn.label":"Nouvel onglet","yasgui.tab_list.menu.rename_tab.btn.label":"Renommer l'onglet","yasgui.tab_list.menu.undo_close_tab.btn.label":"Annuler la fermeture de l'onglet","yasqe.tab_list.new_tab.query_invalid.warning.message":"La requête contient une erreur de syntaxe. Consultez la ligne concernée pour plus d'informations.","yasqe.tab_list.tab_rename.save.btn.label":"Soumettre","yasqe.tab_list.tab_rename.cancel.btn.label":"Annuler","yasgui.toolbar.mode_yasgui.btn.label":"Éditeur et résultats","yasgui.toolbar.mode_yasqe.btn.label":"Éditeur seulement","yasgui.toolbar.mode_yasr.btn.label":"Résultats seulement","yasgui.toolbar.orientation.btn.tooltip.switch_orientation_horizontal":"Basculer vers horizontal voir","yasgui.toolbar.orientation.btn.tooltip.switch_orientation_vertical":"Basculer vers verticale voir","yasqe.action.curl.btn.label":"CURL","yasqe.action.run_query.btn.label":"Exécuter","yasqe.action.run_query.btn.tooltip":"Exécuter la requête","yasqe.action.run_query.btn.disabled.tooltip":"L'exécution de requêtes est désactivée.","yasqe.action.share.btn.tooltip":"Partagez votre requête","yasqe.action.share.error.general_message":"An error has occurred","yasqe.action.shorten.btn.label":"Raccourcir","yasqe.autocomplete.hint":'Indice: "abC" correspond à "abC*", "ab c*" et "ab-c*".',"yasqe.autocomplete.notification.info.help_info_message":"Appuyez sur Alt+Entrée pour l'autocomplétion.","yasqe.autocomplete.notification.info.nothing_to_autocomplete":"Rien à autocompléter encore !","yasqe.autocomplete.notification.error.failed_fetching_suggestions":"Échec de la récupération des suggestions...","yasqe.check_syntax.error.invalid_line.prefix":"Cette ligne n'est pas valide. Attendu: ","yasr.noresults.box.info":"Aucun résultat de l'exécution précédente. Cliquez sur Exécuter ou appuyez sur Ctrl/Cmd-Enter pour exécuter la requête ou la mise à jour en cours.","yasr.fallback.box.info.for_more_info":"pour plus d'informations.","yasr.fallback.box.info.info_message":"Impossible de rendre les résultats avec le plugin {{selectedPluginName}}, les résultats sont actuellement rendus avec le plugin {{selectedPluginName}}.","yasqe.keyboard_shortcuts.btn.label":"raccourcis clavier","yasqe.keyboard_shortcuts.dialog.title":"Raccourcis clavier","yasqe.keyboard_shortcuts.dialog.item.trigger_autocompletion.label":"[Ctrl|Cmd]-Space|Alt-Enter","yasqe.keyboard_shortcuts.dialog.item.trigger_autocompletion.description":"Déclencher l'autocomplétion","yasqe.keyboard_shortcuts.dialog.item.delete_current_line.label":"[Ctrl|Cmd]-D","yasqe.keyboard_shortcuts.dialog.item.delete_current_line.description":"Supprimer la ou les lignes actuelles/sélectionnées","yasqe.keyboard_shortcuts.dialog.item.comment_selected_line.label":"[Ctrl|Cmd]-/","yasqe.keyboard_shortcuts.dialog.item.comment_selected_line.description":"Commenter ou décommenter la ou les lignes actuelles/sélectionnées","yasqe.keyboard_shortcuts.dialog.item.copy_line_down.label":"[Ctrl|Cmd]-Alt-Down","yasqe.keyboard_shortcuts.dialog.item.copy_line_down.description":"Copier la ligne vers le bas","yasqe.keyboard_shortcuts.dialog.item.copy_line_up.label":"[Ctrl|Cmd]-Alt-Up","yasqe.keyboard_shortcuts.dialog.item.copy_line_up.description":"Ligne de copie vers le haut","yasqe.keyboard_shortcuts.dialog.item.auto_format_selected_line.label":"[Ctrl|Cmd]-Shift-F","yasqe.keyboard_shortcuts.dialog.item.auto_format_selected_line.description":"Formatage automatique/indentation des lignes sélectionnées","yasqe.keyboard_shortcuts.dialog.item.indent_current_line_more.label":"[Ctrl|Cmd]-]","yasqe.keyboard_shortcuts.dialog.item.indent_current_line_more.description":"Augmenter l'indentation de la ou des lignes actuelles/sélectionnées","yasqe.keyboard_shortcuts.dialog.item.indent_current_line_less.label":"[Ctrl|Cmd]-[","yasqe.keyboard_shortcuts.dialog.item.indent_current_line_less.description":"Réduire l'indentation de la ou des lignes actuelles/sélectionnées","yasqe.keyboard_shortcuts.dialog.item.execute_query_or_update.label":"[Ctrl|Cmd]-Enter","yasqe.keyboard_shortcuts.dialog.item.execute_query_or_update.description":"Exécuter une requête ou une mise à jour","yasqe.keyboard_shortcuts.dialog.item.execute_explain_plan_for_query.label":"Shift-[Ctrl|Cmd]-Enter","yasqe.keyboard_shortcuts.dialog.item.execute_explain_plan_for_query.description":"Exécuter le plan d'explication pour la requête","yasqe.keyboard_shortcuts.dialog.item.create_tab.label":"[Ctrl|Cmd]-Alt-T","yasqe.keyboard_shortcuts.dialog.item.create_tab.description":"Exécuter le plan d'explication pour la requête","yasqe.keyboard_shortcuts.dialog.item.create_save_query.label":"[Ctrl|Cmd]-S","yasqe.keyboard_shortcuts.dialog.item.create_save_query.description":"Créer un nouvel onglet sans nom","yasqe.keyboard_shortcuts.dialog.item.switch_next_tab.label":"[Ctrl|Cmd]-Alt-Right","yasqe.keyboard_shortcuts.dialog.item.switch_next_tab.description":"Créer une requête sauvegardée à partir de l'état actuel","yasqe.keyboard_shortcuts.dialog.item.switch_previous_tab.label":"[Ctrl|Cmd]-Alt-Left","yasqe.keyboard_shortcuts.dialog.item.switch_previous_tab.description":"Passer à l'onglet suivant","yasqe.keyboard_shortcuts.dialog.item.closes_other_tabs.label":"[Ctrl|Cmd]-Shift-F4","yasqe.keyboard_shortcuts.dialog.item.closes_other_tabs.description":"Ferme tous les onglets sauf celui en cours","yasqe.keyboard_shortcuts.dialog.item.closes_other_tabs_by_left_mouse_click.label":"Shift-Clic Gauche","yasqe.keyboard_shortcuts.dialog.item.closes_other_tabs_by_left_mouse_click.description":"Cliquer sur l'icône de fermeture des onglets ferme tous les onglets sauf celui cliqué","yasqe.keyboard_shortcuts.dialog.item.execute_chat_gpt_explain_plan_for_query.label":"Alt-[Ctrl|Cmd]-Enter","yasqe.keyboard_shortcuts.dialog.item.execute_chat_gpt_explain_plan_for_query.description":"Expliquer la requête/résultat avec ChatGPT","yasqe.keyboard_shortcuts.dialog.item.full_screen.label":"[Ctrl|Cmd]-Alt-F","yasqe.keyboard_shortcuts.dialog.item.full_screen.description":"Plein écran/Quitter le plein écran","yasqe.keyboard_shortcuts.dialog.item.explain_exit_fullscreen.message":"[Ctrl|Cmd]-Alt-F ou Échap pour quitter le mode plein écran.","yasqe.keyboard_shortcuts.dialog.item.esc.label":"Esc","yasqe.keyboard_shortcuts.dialog.item.esc.description":"Appuyez sur Échap pour quitter le mode plein écran","yasqe.keyboard_shortcuts.action.explain_plan_query.warning.message":"Explain ne fonctionne qu'avec les requêtes SELECT, CONSTRUCT ou DESCRIBE.","yasqe.keyboard_shortcuts.action.explain_plan_query.error.message":"Impossible d'exécuter les mises à jour depuis cet éditeur.","yasgui.tab_list.close_other_tabs.confirmation.none_queries_non_updates.message":"Êtes-vous sûr de vouloir fermer tous les autres onglets de requête?","yasgui.tab_list.close_other_tabs.confirmation.none_queries_one_update.message":"<div>Vous avez 1 mise à jour en cours.</div><div>Êtes-vous sûr de vouloir fermer tous les autres onglets de requête?</div>","yasgui.tab_list.close_other_tabs.confirmation.none_queries_updates.message":"<div>Vous avez {{updatesCount}} mises à jour en cours.</div><div>Êtes-vous sûr de vouloir fermer tous les autres onglets de requête?</div>","yasgui.tab_list.close_other_tabs.confirmation.one_query_non_updates.message":"<div>Vous avez 1 requête en cours, qui sera annulée.</div><div>Êtes-vous sûr de vouloir fermer tous les autres onglets de requête?</div>","yasgui.tab_list.close_other_tabs.confirmation.one_query_one_update.message":"<div>Vous avez 1 requête et 1 mise à jour en cours. La requête sera annulée.</div><div>Êtes-vous sûr de vouloir fermer tous les autres onglets de requête?</div>","yasgui.tab_list.close_other_tabs.confirmation.one_query_updates.message":"<div>Vous avez 1 requête et {{updatesCount}} mises à jour en cours. La requête sera annulée.</div><div>Êtes-vous sûr de vouloir fermer tous les autres onglets de requête?</div>","yasgui.tab_list.close_other_tabs.confirmation.queries_non_updates.message":"<div>Vous avez {{queriesCount}} requêtes en cours. Les requêtes seront annulées.</div><div>Êtes-vous sûr de vouloir fermer tous les autres onglets de requête?</div>","yasgui.tab_list.close_other_tabs.confirmation.queries_one_update.message":"<div>Vous avez {{queriesCount}} requêtes et 1 mise à jour en cours. Les requêtes seront annulées.</div><div>Êtes-vous sûr de vouloir fermer tous les autres onglets de requête?</div>","yasgui.tab_list.close_other_tabs.confirmation.queries_updates.message":"<div>Vous avez {{queriesCount}} requêtes et {{updatesCount}} mises à jour en cours. Les requêtes seront annulées.</div><div>Êtes-vous sûr de vouloir fermer tous les autres onglets de requête?</div>","yasr.message_info.removed_statements.message":"Suppression de {{countAffectedRepositoryStatements}} déclarations.","yasr.message_info.added_statements.message":"Ajout de {{countAffectedRepositoryStatements}} déclarations.","yasr.message_info.no_changes.message":"Le nombre de déclarations n'a pas changé.","yasr.exceptions.conflict_render":'Des types de données contradictoires ont été trouvés pour la variable {{varName}}. On suppose que toutes les valeurs de cette variable sont "string". Par conséquent, plusieurs graphiques Google ne rendent pas les valeurs de cette variable particulière. Pour éviter ce problème, convertissez les valeurs de votre requête SPARQL dans le type de données xsd prévu.',"yasr.plugin_control.disabled.btn.tooltip":"Le téléchargement n'est pas pris en charge pour cette représentation de résultat","yasr.plugin_control.download_results.btn.label":"Téléchargement","yasr.plugin_control.info.count_result":"{{countResults}} résultat","yasr.plugin_control.info.count_results":"{{countResults}} résultats","yasr.plugin_control.info.result_in_second":" en {{timeInSeconds}} seconde","yasr.plugin_control.info.result_in_seconds":" en {{timeInSeconds}} secondes","yasr.plugin_control.info.see":"Voir","yasr.plugin_control.missing_help.link.tooltip":"Ce plugin n'a pas encore de référence d'aide. Veuillez contacter le responsable pour corriger cela.","yasr.plugin_control.plugin_documentation.link.label":"Documentation {{selectedPluginName}}","yasr.plugin_control.plugin_documentation.link.tooltip":"Voir la documentation de {{pluginName}}","yasr.plugin_control.plugin.name.extended_table":"Tableau","yasr.plugin_control.plugin.name.response":"Réponse brute","yasr.plugin_control.plugin.name.table":"Tableau","yasr.plugin_control.plugin.name.pivot-table-plugin":"Table de pivotement","yasr.plugin_control.plugin.name.pivot-table-plugin.available_variables":"Variables disponibles","yasr.plugin_control.plugin.name.pivot-table-plugin.columns":"Colonnes","yasr.plugin_control.plugin.name.pivot-table-plugin.cells":"Cellules","yasr.plugin_control.plugin.name.pivot-table-plugin.rows":"Lignes","yasr.plugin_control.plugin.pivot-table-plugin.charts.config.button":"Configuration du graphique","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_TABLE":"Table","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_TABLE_BARCHART":"Table avec barres","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_HEATMAP":"Carte de chaleur","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_ROW_HEATMAP":"Carte de chaleur par ligne","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_COL_HEATMAP":"Carte de chaleur par colonne","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_TREEMAP":"Carte arborescente","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_LINE_CHART":"Graphique linéaire","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_BAR_CHART":"Diagramme à barres","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_STACKED_BAR_CHART":"Diagramme à barres empilées","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_AREA_CHART":"Graphique en aires","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_SCATTER_CHART":"Diagramme de dispersion","yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_TSV_EXPORT":"Exportation TSV","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_COUNT":"Nombre","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_COUNT_UNIQUE_VALUES":"Nombre de valeurs uniques","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_LIST_UNIQUE_VALUES":"Liste de valeurs uniques","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_SUM":"Somme","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_INTEGER_SUM":"Somme en entiers","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_AVERAGE":"Moyenne","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_MEDIAN":"Médiane","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_SAMPLE_VARIANCE":"Variance d'échantillonnage","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_SAMPLE_STANDARD_DEVIATION":"Écart type d'échantillonnage","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_MINIMUM":"Minimum","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_MAXIMUM":"Maximum","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_FIRST":"Premier","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_LAST":"Dernier","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_SUM_OVER_SUM":"Ratio de sommes","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_UPPER_BOUND":"Borne supérieure 80%","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_LOWER_BOUND":"Borne inférieure 80%","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_SUM_AS_FRACTION_OF_TOTAL":"Somme en proportion du totale","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_SUM_AS_FRACTION_OF_ROWS":"Somme en proportion de la ligne","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_SUM_AS_FRACTION_OF_COLUMNS":"Somme en proportion de la colonne","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_COUNT_AS_FRACTION_OF_TOTAL":"Nombre en proportion du totale","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_COUNT_AS_FRACTION_OF_ROWS":"Nombre en proportion de la ligne","yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_COUNT_AS_FRACTION_OF_COLUMNS":"Nombre en proportion de la colonne","yasr.plugin_control.plugin.name.charts":"Graphique Google","yasr.plugin_control.plugin.charts.config.button":"Configuration du graphique","yasr.plugin_control.shows_view.btn.aria_label":"Affiche la vue {{name}}","yasr.plugin_control.table.empty_result.label":"Aucune donnée disponible dans le tableau","yasr.plugin_control.response_chip.timestamp.minutes_ago":"minutes","yasr.plugin_control.response_chip.timestamp.moments_ago":"il y a quelques instants","yasr.plugin_control.response_chip.timestamp.on_at":"au {{year}}-{{month}}-{{date}} à {{hours}}:{{minutes}}","yasr.plugin_control.response_chip.timestamp.today_at":"aujourd'hui à {{hours}}:{{minutes}}","yasr.plugin_control.response_chip.timestamp.yesterday_at":"hier à {{hours}}:{{minutes}}","yasr.plugin_control.response_chip.timestamp.warning.tooltip":"Résultat possiblement périmé (obtenu il y a {{timeAgo}}).","yasr.plugin_control.response_chip.message.day":"{{day}}d","yasr.plugin_control.response_chip.message.hours":"{{hours}}h","yasr.plugin_control.response_chip.message.minutes":"{{minutes}}m","yasr.plugin_control.response_chip.message.result_empty":"Aucun résultat.","yasr.plugin_control.response_chip.message.result_time":"La requête a pris {{seconds}}, {{timestamp}}.","yasr.plugin_control.response_chip.message.result_info":"Liste de résultats de {{from}} à {{to}}","yasr.plugin_control.response_chip.message.result_info.total_results":" pour un total de {{totalResults}}","yasr.plugin_control.response_chip.message.result_info.at_least_results":" d'au moins {{atLeastResults}}","yasr.plugin_control.response_chip.message.seconds":"{{seconds}}s","yasr.plugin_control.download_as.extended_table.dropdown.label":"Téléchargement","yasr.plugin_control.download_as.raw_response.dropdown.label":"Téléchargement","yasr.plugin_control.download_as.pivot_table.dropdown.label":"Télécharger le résultat","yasr.plugin_control.download_as.charts.dropdown.label":"Télécharger le résultat","yasr.plugin_control.download_as.sparql_results_json.label":"JSON","yasr.plugin_control.download_as.sparql_results_json_ld.label":"JSON-LD","yasr.plugin_control.download_as.sparql_results_ndjson_ld.label":"NDJSON-LD","yasr.plugin_control.download_as.x_sparqlstar_results_json.label":"JSON*","yasr.plugin_control.download_as.x_sparqlstar_results_rdf_xml.label":"RDF-XML","yasr.plugin_control.download_as.sparql_results_xml.label":"XML","yasr.plugin_control.download_as.x_sparqlstar_results_xml.label":"XML*","yasr.plugin_control.download_as.csv.label":"CSV","yasr.plugin_control.download_as.tab_separated_values.label":"TSV","yasr.plugin_control.download_as.x_tab_separated_values_star.label":"TSV*","yasr.plugin_control.download_as.n3.label":"N3","yasr.plugin_control.download_as.n_triples.label":"N-Triples","yasr.plugin_control.download_as.triple.label":"Turtle","yasr.plugin_control.download_as.triple_star.label":"Turtle*","yasr.plugin_control.download_as.tri-x.label":"TriX","yasr.plugin_control.download_as.tri-g.label":"TriG","yasr.plugin_control.download_as.tri-g_star.label":"TriG*","yasr.plugin_control.download_as.n_quads.label":"N-Quads","yasr.plugin_control.download_as.x_binary_rdf_results_table.label":"RDF binaire","yasr.plugin_control.download_as.binary.label":"RDF binaire","yasr.plugin.error.cors_enabled.link.label":"Activé CORS","yasr.plugin.error.endpoint_down.error.label":"Le point d'accès est hors service","yasr.plugin.error.endpoint_not_accessible.error.label":"Le point d'accès n'est pas accessible depuis le serveur YASGUI et le site web, et le point d'accès n'est pas","yasr.plugin.error.incorrect_endpoint.error.label":"URL de point d'accès incorrecte","yasr.plugin.error.new_window.btn.label":"Essayez la requête dans une nouvelle fenêtre du navigateur","yasr.plugin.error.no_response_possible_reason.error.label":"Unable to get response from endpoint. Possible reasons:","yasr.plugin.error.show.full.message":"Afficher le message d'exception complet","yasr.plugin.error.show.less.message":"Afficher moins de détails sur l'exception","yasr.plugin.response.download_result.btn.label":"Télécharger le résultat","yasr.plugin.response.download_result.btn.tooltip":"Télécharger le résultat","yasr.plugin.response.show_all.btn.label":"Afficher tout","yasr.plugin.table.data_tables.info.result_info":"Affichage de _START_ à _END_ sur _TOTAL_ entrées","yasr.plugin.table.data_tables.paginate.first":"Première","yasr.plugin.table.data_tables.paginate.last":"Dernière","yasr.plugin.table.data_tables.paginate.next":"Suivante","yasr.plugin.table.data_tables.paginate.previous":"Précédente","yasr.plugin.table.download_result.btn.label":"Télécharger le résultat","yasr.plugin.table.ellipse.checkbox.label":"Vue compacte","yasr.plugin.table.page_size.dropdown.label":"Taille de la page : ","yasr.plugin.table.simple_view.checkbox.label":"Masquer les numéros de lignes","yasr.plugin.table.table_filter.input.placeholder":"Filtrer les résultats des requêtes","yasr.plugin.extended_boolean.true":"OUI","yasr.plugin.extended_boolean.false":"NON","yasr.plugin.no_compatible.message":" ","yasr.plugin.extended_error.default_status.message":"Erreur","yasqe.actions.saved_query_dialog.edit.button.tooltip":"Modifier la requête","yasqe.actions.saved_query_dialog.delete.button.tooltip":"Supprimer une requête","yasqe.actions.saved_query_dialog.share.button.tooltip":"Obtenir l'URL de la requête","yasqe.actions.save_query.button.tooltip":"Créer une requête enregistrée","yasqe.actions.save_query.dialog.title":"Créer une nouvelle requête enregistrée","yasqe.actions.save_query.dialog.query.label":"Créez votre requête d'exemple","yasqe.actions.save_query.dialog.query.empty_error":"La requête ne peut pas être vide !","yasqe.actions.save_query.dialog.query_name.label":"Entrez un titre","yasqe.actions.save_query.dialog.query_name.empty_error":"Le nom de la requête ne peut pas être vide !","yasqe.actions.save_query.dialog.public_query.label":"Partager la requête avec d'autres utilisateurs","yasqe.actions.save_query.dialog.public_query.tooltip":"Si cette case est cochée, d'autres utilisateurs pourront voir la requête, mais ils ne pourront pas la supprimer ni la modifier","yasqe.actions.save_query.dialog.create.button":"Créer","yasqe.actions.save_query.dialog.cancel.button":"Annuler","yasqe.actions.show_saved_queries.button.tooltip":"Afficher les requêtes enregistrées","yasqe.actions.edit_saved_query.button.tooltip":"Modifier","yasqe.actions.delete_saved_query.button.tooltip":"Supprimer","yasqe.actions.delete_saved_query.confirm.dialog.label":"Confirmer","yasqe.actions.delete_saved_query.confirm.dialog.message":"Êtes-vous sûr de vouloir supprimer la requête enregistrée '{{query}}' ?","yasqe.actions.share_query.button.tooltip":"Obtenir l'URL de la requête en cours","yasqe.actions.include_inferred.true.button.tooltip":"Inclure les données déduites dans les résultats: AU","yasqe.actions.include_inferred.false.button.tooltip":"Inclure les données déduites dans les résultats: DÉSACTIVÉ","yasqe.actions.expand_results_same_as.true.button.tooltip":"Développer les résultats sur owl:sameAs: AU","yasqe.actions.expand_results_same_as.false.button.tooltip":"Développer les résultats sur owl:sameAs: DÉSACTIVÉ","yasqe.actions.expand_results_same_as.disable.button.tooltip":"Nécessite 'Inclure les données inférées' !","yasqe.footer_buttons.abort_query.button.label":"Abandon de la requête","yasqe.footer_buttons.abort_query.button.title":"Cliquez pour annuler la requête","yasqe.footer_buttons.abort_query_requested.button.label":"L'arrêt a été demandé","yasqe.footer_buttons.abort_query_requested.button.title":"Il a été demandé d'interrompre la requête et celle-ci sera interrompue lors de la première opération d'E/S.","yasqe.share.copy_link.dialog.title":"Copier l'URL dans le presse-papiers","yasqe.share.copy_link.dialog.copy.btn.label":"Copier dans le presse-papiers","yasqe.share.copy_link.dialog.copy.btn.title":"Copier l'URL dans le presse-papiers","yasqe.share.copy_link.dialog.copy.message.success":"URL copiée avec succès dans le presse-papiers.","yasqe.share.saved_query.dialog.copy.btn.label":"Copier dans le presse-papiers","yasqe.update_query.virtual_repository.error.message":"Les mises à jour ne sont pas prises en charge pour les dépôts virtuels.","yasqe.explain_query.virtual_repository.error.message":"Explain n'est pas pris en charge pour les dépôts virtuels."},DEFAULT_LANG="en";class TranslationService{constructor(){this.currentLang=DEFAULT_LANG,this.bundle={en,fr},this.languageChangeObservers={},this.translationChangedObservers={}}onTranslate(t,e=(()=>{}),n=[]){this.translationChangedObservers[t]=this.translationChangedObservers[t]||[];const r={parameters:n,callback:e};return this.translationChangedObservers[t].push(r),e(this.translate(t,n)),()=>{const e=this.translationChangedObservers[t].indexOf(r);-1!==e&&this.translationChangedObservers[t].splice(e,1)}}notifyTranslationsChanged(){Object.keys(this.translationChangedObservers).forEach((t=>{(this.translationChangedObservers[t]||[]).forEach((e=>e.callback(this.translate(t,e.parameters))))}))}setLanguage(t=DEFAULT_LANG){this.bundle&&this.bundle[this.currentLang]?this.currentLang=t:(console.warn(`Missing locale file for [${this.currentLang}]`),this.currentLang=DEFAULT_LANG),this.notifyLanguageChangeObservers(this.currentLang),this.notifyTranslationsChanged()}getLanguage(){return this.currentLang}subscribeForLanguageChange(t){const e=this.languageChangeObservers[t.name];return e?e.push(t):this.languageChangeObservers[t.name]=[t],()=>this.unsubscribeFromLanguageChange(t)}unsubscribeFromLanguageChange(t){const e=this.languageChangeObservers[t.name];if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}notifyLanguageChangeObservers(t){Object.values(this.languageChangeObservers).forEach((e=>{e.forEach((e=>e.notify(t)))}))}addTranslations(t){Object.keys(t).forEach((e=>{this.bundle[e]?Object.assign(this.bundle[e],t[e]):this.bundle[e]=t[e]}))}translate(t,e){return this.translateInLocale(t,this.currentLang,e)}translateInLocale(t,e,n){let r=this.bundle[e][t];return r||(r=this.bundle[DEFAULT_LANG][t]),r?(r=this.applyParameters(r,n),r):(console.warn(`Missing translation for [${t}] key in [${this.currentLang}] locale`),t)}applyParameters(t,e){return e?e.reduce(((t,e)=>TranslationService.replaceAll(t,e)),t):t}static replaceAll(t,e){return e?t.split(`{{${e.key}}}`).join(e.value):t}}const copyLinkDialogCss='@font-face{font-family:"icomoon";src:url("../css/fonts/icons.eot?z4jeba");src:url("../css/fonts/icons.eot?z4jeba#iefix") format("embedded-opentype"), url("../css/fonts/icons.ttf?z4jeba") format("truetype"), url("../css/fonts/icons.woff?z4jeba") format("woff"), url("../css/fonts/icons.svg?z4jeba#icons") format("svg");font-weight:normal;font-style:normal}.red{color:#e84e0f}.hidden{display:none !important}.scroll-hidden{overflow:hidden}[class^=icon-],[class*=" icon-"],.icon-any{font-family:"icomoon", sans-serif !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;vertical-align:middle;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-lg{font-size:1.2em}.icon-arrow-up-off:before{content:"\\e948"}.icon-collapse:before{content:"\\e949"}.icon-eye-off:before{content:"\\e94a"}.icon-expand:before{content:"\\e94c"}.icon-focus:before{content:"\\e94d"}.icon-rotate-left:before{content:"\\e94e"}.icon-rotate-right:before{content:"\\e94f"}.icon-info-alt:before{content:"\\e950"}.icon-facebook:before{content:"\\e942"}.icon-google-plus:before{content:"\\e943"}.icon-google:before{content:"\\e944"}.icon-linkedin:before{content:"\\e945"}.icon-twitter:before{content:"\\e946"}.icon-youtube:before{content:"\\e947"}.icon-play:before{content:"\\e941"}.icon-email:before{content:"\\e93e"}.icon-same-as-on:before{content:"\\e93f"}.icon-same-as-off:before{content:"\\e940"}.icon-repo-contour1:before{content:"\\e906"}.icon-repo-contour2:before{content:"\\e90b"}.icon-repo-contour3:before{content:"\\e910"}.icon-repo-master-ro-mute:before{content:"\\e913"}.icon-repo-free:before{content:"\\e936"}.icon-repo-master-mute:before{content:"\\e937"}.icon-repo-master-ro:before{content:"\\e938"}.icon-repo-master:before{content:"\\e939"}.icon-repo-se:before{content:"\\e93a"}.icon-repo-system:before{content:"\\e93b"}.icon-repo-worker:before{content:"\\e93c"}.icon-repo:before{content:"\\e93d"}.icon-copy:before{content:"\\e934"}.icon-eye:before{content:"\\e935"}.icon-connection-off:before{content:"\\e931"}.icon-connection-on:before{content:"\\e932"}.icon-key:before{content:"\\e933"}.icon-comment:before{content:"\\e930"}.icon-arrow-down:before{content:"\\e900"}.icon-arrow-left:before{content:"\\e901"}.icon-arrow-right:before{content:"\\e902"}.icon-arrow-up:before{content:"\\e903"}.icon-exchange:before{content:"\\e904"}.icon-columns:before{content:"\\e905"}.icon-inferred-off:before{content:"\\e907"}.icon-inferred-on:before{content:"\\e908"}.icon-save:before{content:"\\e909"}.icon-tag:before{content:"\\e90a"}.icon-file:before{content:"\\e90c"}.icon-folder:before{content:"\\e90d"}.icon-heartbeat:before{content:"\\e90e"}.icon-pin:before{content:"\\e90f"}.icon-zoom-in:before{content:"\\e911"}.icon-zoom-out:before{content:"\\e912"}.icon-check:before{content:"\\e914"}.icon-download:before{content:"\\e915"}.icon-external:before{content:"\\e916"}.icon-lock:before{content:"\\e917"}.icon-search:before{content:"\\e918"}.icon-upload:before{content:"\\e919"}.icon-caret-left:before{content:"\\e91a"}.icon-caret-right:before{content:"\\e91b"}.icon-caret-up:before{content:"\\e91c"}.icon-caret-up-after:after{content:"\\e91c"}.icon-minus:before{content:"\\e91d"}.icon-reload:before{content:"\\e91e"}.icon-trash:before{content:"\\e91f"}.icon-warning:before{content:"\\e920"}.icon-caret-down:before{content:"\\e921"}.icon-caret-down-after:after{content:"\\e921"}.icon-close:before{content:"\\e922"}.icon-edit:before{content:"\\e923"}.icon-info:before{content:"\\e924"}.icon-link:before{content:"\\e925"}.icon-more:before{content:"\\e926"}.icon-plus:before{content:"\\e927"}.icon-data:before{content:"\\e928"}.icon-help:before{content:"\\e929"}.icon-monitoring:before{content:"\\e92a"}.icon-settings:before{content:"\\e92b"}.icon-sparql:before{content:"\\e92c"}.icon-user-alt:before{content:"\\e92d"}.icon-export-alt:before{content:"\\e92e"}.icon-import:before{content:"\\e92f"}.icon-tick:before{content:"\\e956"}.icon-repo-ontop-alt:before{content:"\\e958"}.icon-repo-fedx-alt:before{content:"\\e959"}.icon-repo-graphdb-alt:before{content:"\\e95a"}.icon-export:before{content:"\\e95b"}.icon-readonly:before{content:"\\e95c"}.icon-repo-fedx:before{content:"\\e95d"}.icon-repo-graphdb:before{content:"\\e95e"}.icon-repo-ontop:before{content:"\\e95f"}.icon-repo-unknown:before{content:"\\e960"}.icon-translation:before{content:"\\e961"}.icon-user:before{content:"\\e962"}.icon-follower:before{content:"\\e962"}.alert{border-radius:0;border:1px solid transparent;position:relative;padding:1em}.alert-warning,.alert-info,.alert-help,.alert-danger,.alert-success{color:#000000A8}.alert-warning{background-color:#f9e6c0}.alert-info{background-color:#cfefec}.alert-help{background-color:#e7f7f5}.alert-success{background-color:#dff0d8}.alert-danger{background-color:#fbdbd5}.alert-info,.alert-warning,.alert-help,.alert-danger,.alert-success{padding-left:3em}.alert-info:before,.alert-warning:before,.alert-help:before,.alert-danger:before,.alert-success:before{font-family:"icomoon", sans-serif !important;font-size:1.6em;vertical-align:middle;line-height:1;position:absolute;left:0.6em;top:0.6em;color:#00000080}.alert-info:before{content:"\\e924"}.alert-warning:before{content:"\\e930"}.alert-help:before{content:"\\e929"}.alert-danger:before{content:"\\e920"}.alert-success:before{content:"\\e914"}.no-icon{padding-left:1em}.no-icon:before{display:none}.alert .alert{background-color:transparent}.icon-rotate-quarter:before{display:inline-block;-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}:host{display:block}.copy-link-dialog .dialog{min-width:40vw}.copy-link-dialog .copy-link-form .form-field{display:flex;flex-direction:column;justify-content:space-between}.copy-link-dialog .copy-link-form .form-field input[type=text],.copy-link-dialog .copy-link-form .form-field textarea{padding:0.5rem 0.75rem;border:1px solid rgba(0, 0, 0, 0.15);font-size:1rem;color:#55595c}.copy-link-dialog .copy-link-form .form-field input[type=text]:focus,.copy-link-dialog .copy-link-form .form-field textarea:focus{border-color:rgba(0, 54, 99, 0.5);outline:none}.copy-link-dialog .copy-link-form .form-field input[type=text].invalid{border-color:#fa787e}.copy-link-dialog .copy-link-form .form-field textarea{resize:vertical}.copy-link-dialog .copy-link-form .form-field textarea.invalid{border-color:#fa787e}.copy-link-dialog .copy-button{margin-right:0 !important}.copy-link-dialog .cancel-button{margin-right:10px}.copy-link-dialog .copy-button,.copy-link-dialog .cancel-button{display:inline-block;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;border:1px solid transparent;outline:none;padding:0.5rem 1rem;font-size:1rem;border-radius:0}.copy-link-dialog .primary-button{background-color:#e84e0f;border-color:#e84e0f;color:#fff;margin-right:10px}.copy-link-dialog .primary-button:hover,.copy-link-dialog .primary-button:focus{background-color:#d0460d;border-color:#d0460d}.copy-link-dialog .secondary-button{color:#003663}.copy-link-dialog .secondary-button:hover,.copy-link-dialog .secondary-button:focus{background-color:#d4d4d4;border-color:#d4d4d4}',CopyLinkDialog=class{constructor(t){registerInstance(this,t),this.config=void 0,this.serviceFactory=void 0,this.copyLinkEventsObserver=void 0,this.classes=void 0}buildDialogConfig(){return{dialogTitle:this.config.dialogTitle||this.translationService.translate("yasqe.share.copy_link.dialog.title"),onClose:this.onClose.bind(this)}}onCopy(t){t.stopPropagation(),this.copyToClipboard().then((()=>{this.copyLinkEventsObserver&&this.copyLinkEventsObserver.onLinkCopied()}))}onClose(t){const e=t.target;t.stopPropagation();const n=e.classList.contains("dialog-overlay"),r=e.classList.contains("close-button"),i=e.classList.contains("cancel-button");(n||r||i)&&this.copyLinkEventsObserver&&this.copyLinkEventsObserver.onDialogClosed()}componentWillLoad(){this.translationService=this.serviceFactory.get(TranslationService)}componentDidLoad(){setTimeout((()=>{this.shareLink.select()}),100)}static fallbackCopyTextToClipboard(t){const e=document.createElement("textarea");e.value=t,e.style.top="0",e.style.left="0",e.style.position="fixed",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch(t){console.error("Unable to copy",t)}document.body.removeChild(e)}copyToClipboard(){return navigator.clipboard?navigator.clipboard.writeText(this.config.copyLink).then((()=>{}),(t=>{console.error("Could not copy share link: ",t)})):(CopyLinkDialog.fallbackCopyTextToClipboard(this.config.copyLink),Promise.resolve())}render(){return h("ontotext-dialog-web-component",{class:`copy-link-dialog ${this.classes}`,config:this.buildDialogConfig()},h("div",{slot:"body"},h("div",{class:"copy-link-form"},h("div",{class:"form-field copy-link-field"},h("input",{type:"text",name:"shareLink",readonly:!0,ref:t=>this.shareLink=t,value:this.config.copyLink})))),h("div",{slot:"footer"},h("button",{class:"secondary-button cancel-button",onClick:t=>this.onClose(t)},this.translationService.translate("confirmation.btn.cancel.label")),h("button",{class:"primary-button copy-button",onClick:t=>this.onCopy(t)},this.translationService.translate("yasqe.share.copy_link.dialog.copy.btn.label"))))}get hostElement(){return getElement(this)}};CopyLinkDialog.style=copyLinkDialogCss;const copyResourceLinkDialogCss="",CopyResourceLinkDialog=class{constructor(t){registerInstance(this,t),this.internalResourceLinkDialogClosedEvent=createEvent(this,"internalResourceLinkDialogClosedEvent",7),this.internalResourceLinkCopiedEvent=createEvent(this,"internalResourceLinkCopiedEvent",7),this.serviceFactory=void 0,this.resourceLink=void 0}onDialogClosed(){this.internalResourceLinkDialogClosedEvent.emit()}onLinkCopied(){this.internalResourceLinkCopiedEvent.emit()}render(){return h("copy-link-dialog",{config:{copyLink:this.resourceLink},classes:"copy-resource-link-dialog",serviceFactory:this.serviceFactory,copyLinkEventsObserver:this})}};CopyResourceLinkDialog.style=copyResourceLinkDialogCss;const ontotextDialogWebComponentCss='.dialog-overlay{position:fixed;top:0;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;z-index:9998;margin-left:-10px;background-color:rgba(0, 0, 0, 0.5);font-family:"Roboto", "Helvetica Neue", Arial, sans-serif;font-weight:300;color:#373a3c}.dialog{z-index:1001;max-width:90vw;max-height:90vh;background-color:#FFF;box-shadow:0 5px 15px rgba(0, 0, 0, 0.5);font-family:inherit;font-weight:inherit;display:flex;flex-direction:column;position:unset}.dialog .dialog-header{display:flex;justify-content:space-between;padding:15px;border-bottom:1px solid #e5e5e5;font-size:20px}.dialog .dialog-header .dialog-title{margin:0.5rem 0;font-weight:400}.dialog .dialog-header .close-button{background-color:#fff;border:none;outline:none;cursor:pointer}.dialog .dialog-header .close-button:hover,.dialog .dialog-header .close-button:focus{font-weight:bold}.dialog .dialog-body{padding:15px;overflow:auto}.dialog .dialog-footer{display:flex;justify-content:flex-end;padding:15px;border-top:1px solid #e5e5e5}',OntotextDialogWebComponent=class{constructor(t){registerInstance(this,t),this.config=void 0}keydownListener(t){"Escape"===t.key&&this.closeButton.click()}componentDidLoad(){this.documentOverflow=HtmlUtil.hideDocumentBodyOverflow(),this.hostElement.addEventListener("keydown",this.preventLeavingDialog.bind(this)),this.closeButton.focus()}disconnectedCallback(){this.hostElement.removeEventListener("keydown",this.preventLeavingDialog.bind(this)),HtmlUtil.setDocumentBodyOverflow(this.documentOverflow)}preventLeavingDialog(t){HtmlUtil.preventLeavingDialog(this.hostElement,t)}render(){return h(Host,{tabindex:"-1"},h("div",{class:"dialog-overlay",onClick:t=>this.config.onClose(t)},h("div",{class:"dialog"},h("div",{class:"dialog-header"},h("h3",{class:"dialog-title"},this.config.dialogTitle),h("button",{class:"close-button icon-close",onClick:t=>this.config.onClose(t),ref:t=>this.closeButton=t})),h("div",{class:"dialog-body"},h("slot",{name:"body"})),h("div",{class:"dialog-footer"},h("slot",{name:"footer"})))))}get hostElement(){return getElement(this)}};var RenderingMode,Orientation;OntotextDialogWebComponent.style=ontotextDialogWebComponentCss,function(t){t.YASGUI="mode-yasgui",t.YASQE="mode-yasqe",t.YASR="mode-yasr"}(RenderingMode||(RenderingMode={})),function(t){t.VERTICAL="orientation-vertical",t.HORIZONTAL="orientation-horizontal"}(Orientation||(Orientation={}));const defaultOntotextYasguiConfig={render:RenderingMode.YASGUI,orientation:Orientation.VERTICAL,showEditorTabs:!0,showResultTabs:!0,showResultInfo:!0,showToolbar:!1,showControlBar:!1},defaultYasguiConfig={copyEndpointOnNewTab:!0,populateFromUrl:!1,persistenceLabelConfig:"ontotext-yasgui-config",endpoint:"",method:"POST",infer:!0,immutableInfer:!1,sameAs:!0,immutableSameAs:!1,pageSize:10,paginationOn:!0,keyboardShortcutConfiguration:{execute_explain_plan_for_query:!1,execute_chat_gpt_explain_plan_for_query:!1},getRepositoryStatementsCount:()=>Promise.resolve(),beforeUpdateQuery:()=>Promise.resolve({}),headers:()=>({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/sparql-results+json","X-GraphDB-Local-Consistency":"updating"})},defaultYasqeConfig={query:"select * where {\n ?s ?p ?o .\n} limit 100",initialQuery:"",createShareableLink:null,yasqeActionButtons:[{name:"createSavedQuery",visible:!0},{name:"showSavedQueries",visible:!0},{name:"shareQuery",visible:!0},{name:"includeInferredStatements",visible:!0}],prefixes:{},isVirtualRepository:!1,showQueryButton:!0,resizeable:!0,readOnly:!1},defaultYasrConfig={defaultPlugin:"extended_table",pluginOrder:["extended_table","extended_response","pivot-table-plugin","charts"],showQueryLoader:!0};var e,t;e=window,t=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=178)}([function(t,e,n){n.d(e,"d",(function(){return b})),n.d(e,"i",(function(){return g})),n.d(e,"h",(function(){return m})),n.d(e,"k",(function(){return y})),n.d(e,"g",(function(){return E})),n.d(e,"l",(function(){return x})),n.d(e,"j",(function(){return T})),n.d(e,"f",(function(){return S})),n.d(e,"e",(function(){return w})),n.d(e,"b",(function(){return A})),n.d(e,"a",(function(){return N})),n.d(e,"c",(function(){return I}));var r=n(8),i=n.n(r),o=n(11),a=n.n(o),s=n(3),u=n.n(s),l=n(81),c=n.n(l),f=n(1),d=n.n(f),h=n(2),p=n.n(h),v=n(111),b=function(){function t(e){d()(this,t),this.namespace=e}return p()(t,[{key:"set",value:function(t,e,n,r){if(v.enabled&&(this.removeExpiredKeys(),t&&void 0!==e)){e.documentElement&&(e=(new XMLSerializer).serializeToString(e.documentElement));try{v.set(t,{namespace:this.namespace,val:e,exp:n,time:(new Date).getTime()/1e3})}catch(t){if(t instanceof Error){var i=t;if(i.quotaExceeded=function(t){var e=!1;if(t)if(t.code)switch(t.code){case 22:e=!0;break;case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===t.name&&(e=!0)}else-2147024882===t.number&&(e=!0);return e}(t),!i.quotaExceeded||!r)throw i;r(t)}throw t}}}},{key:"remove",value:function(t){v.enabled&&t&&v.remove(t)}},{key:"removeExpiredKeys",value:function(){var t=this;v.enabled&&v.each((function(e,n){e&&e.exp&&(new Date).getTime()/1e3-e.time>e.exp&&t.remove(n)}))}},{key:"removeAll",value:function(){}},{key:"removeNamespace",value:function(){var t=this;v.each((function(e,n){e&&e.namespace&&e.namespace===t.namespace&&t.remove(n)}))}},{key:"get",value:function(t){if(v.enabled&&t&&(this.removeExpiredKeys(),t)){var e=v.get(t);if(!e)return;return e.val}}}]),t}();function g(t){if(t&&0==t.trim().indexOf("<svg")){var e=(new DOMParser).parseFromString(t,"text/xml").documentElement;e.setAttribute("aria-hidden","true");var n=document.createElement("div");return n.className="svgImg",n.appendChild(e),n}throw new Error("No svg string given. Cannot draw")}function m(t){return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 '.concat(t.width," ").concat(t.height,'" aria-hidden="true"><path fill="currentColor" d="').concat(t.svgPathData,'"></path></svg>')}function y(t,e){if(t)return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function E(t){if(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];t.classList?t.classList.add(a):y(t,a)||(t.className+=" "+a)}}}function x(t,e){if(t)if(t.classList)t.classList.remove(e);else if(y(t,e)){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ")}}function T(t,e){return"function"==typeof t?t(e):t}var _,S=function(){function t(){d()(this,t)}return p()(t,[{key:"translate",value:function(t){return t}},{key:"onTranslate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return e(t),function(){}}},{key:"subscribeForLanguageChange",value:function(){return function(){}}}],[{key:"INSTANCE",get:function(){return t._INSTANCE||(t._INSTANCE=new t),t._INSTANCE}}]),t}(),w=function(){function t(){d()(this,t)}return p()(t,[{key:"getHumanReadableSeconds",value:function(){throw new Error('Method "getHumanReadableSeconds" is not implemented!')}},{key:"getHumanReadableTimestamp",value:function(){throw new Error('Method "getHumanReadableSeconds" is not implemented!')}}],[{key:"INSTANCE",get:function(){return t._INSTANCE||(t._INSTANCE=new t),t._INSTANCE}}]),t}(),A=function(){function t(){d()(this,t)}return p()(t,[{key:"info",value:function(){}},{key:"success",value:function(){}},{key:"warning",value:function(){}},{key:"error",value:function(){}}],[{key:"INSTANCE",get:function(){return t._INSTANCE||(t._INSTANCE=new t),t._INSTANCE}}]),t}(),N=function(){function t(){d()(this,t)}return p()(t,[{key:"emitEvent",value:function(){}}],[{key:"INSTANCE",get:function(){return t._INSTANCE||(t._INSTANCE=new t),t._INSTANCE}}]),t}(),I=function(t){i()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u()(t);if(e){var i=u()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a()(this,n)}}(n);function n(){return d()(this,n),e.apply(this,arguments)}return n}(c()(Error));!function(t){t.EXPLAIN="explain",t.CHAT_GPT_EXPLAIN="gpt"}(_||(_={}))},function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t){function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}},function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e(n)}t.exports=e},function(t){t.exports=function(){var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),u=!o&&/WebKit\//.test(t),l=u&&/Qt\/\d+\.\d+/.test(t),c=!o&&/Chrome\//.test(t),f=/Opera\//.test(t),d=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),p=/PhantomJS/.test(t),v=!o&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),b=/Android/.test(t),g=v||b||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),m=v||/Mac/.test(e),y=/\bCrOS\b/.test(t),E=/win/i.test(e),x=f&&t.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(f=!1,u=!0);var T=m&&(l||f&&(null==x||x<12.11)),_=n||a&&s>=9;function S(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var w,A=function(t,e){var n=t.className,r=S(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function N(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function I(t,e){return N(t).appendChild(e)}function C(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var o=0;o<e.length;++o)i.appendChild(e[o]);return i}function L(t,e,n,r){var i=C(t,e,n,r);return i.setAttribute("role","presentation"),i}function R(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function O(){var t;try{t=document.activeElement}catch(e){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function k(t,e){var n=t.className;S(e).test(n)||(t.className+=(n?" ":"")+e)}function P(t,e){for(var n=t.split(" "),r=0;r<n.length;r++)n[r]&&!S(n[r]).test(e)&&(e+=" "+n[r]);return e}w=document.createRange?function(t,e,n,r){var i=document.createRange();return i.setEnd(r||t,n),i.setStart(t,e),i}:function(t,e,n){var r=document.body.createTextRange();try{r.moveToElementText(t.parentNode)}catch(t){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",e),r};var D=function(t){t.select()};function M(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function j(t,e,n){for(var r in e||(e={}),t)!t.hasOwnProperty(r)||!1===n&&e.hasOwnProperty(r)||(e[r]=t[r]);return e}function q(t,e,n,r,i){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var o=r||0,a=i||0;;){var s=t.indexOf("\t",o);if(s<0||s>=e)return a+(e-o);a+=s-o,a+=n-a%n,o=s+1}}v?D=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:a&&(D=function(t){try{t.select()}catch(t){}});var F=function(){this.id=null,this.f=null,this.time=0,this.handler=M(this.onTimeout,this)};function U(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}F.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},F.prototype.set=function(t,e){this.f=e;var n=+new Date+t;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=n)};var G={toString:function(){return"CodeMirror.Pass"}},B={scroll:!1},V={origin:"*mouse"},H={origin:"+move"};function z(t,e,n){for(var r=0,i=0;;){var o=t.indexOf("\t",r);-1==o&&(o=t.length);var a=o-r;if(o==t.length||i+a>=e)return r+Math.min(a,e-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=e)return r}}var $=[""];function Y(t){for(;$.length<=t;)$.push(W($)+" ");return $[t]}function W(t){return t[t.length-1]}function Q(t,e){for(var n=[],r=0;r<t.length;r++)n[r]=e(t[r],r);return n}function K(){}function X(t,e){var n;return Object.create?n=Object.create(t):(K.prototype=t,n=new K),e&&j(e,n),n}var Z=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function J(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||Z.test(t))}function tt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&J(t))||e.test(t):J(t)}function et(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function rt(t){return t.charCodeAt(0)>=768&&nt.test(t)}function it(t,e,n){for(;(n<0?e>0:e<t.length)&&rt(t.charAt(e));)e+=n;return e}function ot(t,e,n){for(var r=e>n?-1:1;;){if(e==n)return e;var i=(e+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+r}}var at=null;function st(t,e,n){var r;at=null;for(var i=0;i<t.length;++i){var o=t[i];if(o.from<e&&o.to>e)return i;o.to==e&&(o.from!=o.to&&"before"==n?r=i:at=i),o.from==e&&(o.from!=o.to&&"before"!=n?r=i:at=i)}return null!=r?r:at}var ut=function(){var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,e=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(t,e,n){this.level=t,this.from=e,this.to=n}return function(a,s){var u="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!t.test(a))return!1;for(var l,c=a.length,f=[],d=0;d<c;++d)f.push((l=a.charCodeAt(d))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(l):1424<=l&&l<=1524?"R":1536<=l&&l<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(l-1536):1774<=l&&l<=2220?"r":8192<=l&&l<=8203?"w":8204==l?"b":"L");for(var h=0,p=u;h<c;++h){var v=f[h];"m"==v?f[h]=p:p=v}for(var b=0,g=u;b<c;++b){var m=f[b];"1"==m&&"r"==g?f[b]="n":n.test(m)&&(g=m,"r"==m&&(f[b]="R"))}for(var y=1,E=f[0];y<c-1;++y){var x=f[y];"+"==x&&"1"==E&&"1"==f[y+1]?f[y]="1":","!=x||E!=f[y+1]||"1"!=E&&"n"!=E||(f[y]=E),E=x}for(var T=0;T<c;++T){var _=f[T];if(","==_)f[T]="N";else if("%"==_){var S=void 0;for(S=T+1;S<c&&"%"==f[S];++S);for(var w=T&&"!"==f[T-1]||S<c&&"1"==f[S]?"1":"N",A=T;A<S;++A)f[A]=w;T=S-1}}for(var N=0,I=u;N<c;++N){var C=f[N];"L"==I&&"1"==C?f[N]="L":n.test(C)&&(I=C)}for(var L=0;L<c;++L)if(e.test(f[L])){var R=void 0;for(R=L+1;R<c&&e.test(f[R]);++R);for(var O="L"==(L?f[L-1]:u),k=O==("L"==(R<c?f[R]:u))?O?"L":"R":u,P=L;P<R;++P)f[P]=k;L=R-1}for(var D,M=[],j=0;j<c;)if(r.test(f[j])){var q=j;for(++j;j<c&&r.test(f[j]);++j);M.push(new o(0,q,j))}else{var F=j,U=M.length,G="rtl"==s?1:0;for(++j;j<c&&"L"!=f[j];++j);for(var B=F;B<j;)if(i.test(f[B])){F<B&&(M.splice(U,0,new o(1,F,B)),U+=G);var V=B;for(++B;B<j&&i.test(f[B]);++B);M.splice(U,0,new o(2,V,B)),U+=G,F=B}else++B;F<j&&M.splice(U,0,new o(1,F,j))}return"ltr"==s&&(1==M[0].level&&(D=a.match(/^\s+/))&&(M[0].from=D[0].length,M.unshift(new o(0,0,D[0].length))),1==W(M).level&&(D=a.match(/\s+$/))&&(W(M).to-=D[0].length,M.push(new o(0,c-D[0].length,c)))),"rtl"==s?M.reverse():M}}();function lt(t,e){var n=t.order;return null==n&&(n=t.order=ut(t.text,e)),n}var ct=[],ft=function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent)t.attachEvent("on"+e,n);else{var r=t._handlers||(t._handlers={});r[e]=(r[e]||ct).concat(n)}};function dt(t,e){return t._handlers&&t._handlers[e]||ct}function ht(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var r=t._handlers,i=r&&r[e];if(i){var o=U(i,n);o>-1&&(r[e]=i.slice(0,o).concat(i.slice(o+1)))}}}function pt(t,e){var n=dt(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function vt(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),pt(t,n||e.type,t,e),xt(e)||e.codemirrorIgnore}function bt(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),r=0;r<e.length;++r)-1==U(n,e[r])&&n.push(e[r])}function gt(t,e){return dt(t,e).length>0}function mt(t){t.prototype.on=function(t,e){ft(this,t,e)},t.prototype.off=function(t,e){ht(this,t,e)}}function yt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Et(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function xt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function Tt(t){yt(t),Et(t)}function _t(t){return t.target||t.srcElement}function St(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),m&&t.ctrlKey&&1==e&&(e=3),e}var wt,At,Nt=function(){if(a&&s<9)return!1;var t=C("div");return"draggable"in t||"dragDrop"in t}();function It(t){if(null==wt){var e=C("span","​");I(t,C("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(wt=e.offsetWidth<=1&&e.offsetHeight>2&&!(a&&s<8))}var n=wt?C("span","​"):C("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ct(t){if(null!=At)return At;var e=I(t,document.createTextNode("AخA")),n=w(e,0,1).getBoundingClientRect(),r=w(e,1,2).getBoundingClientRect();return N(t),!(!n||n.left==n.right)&&(At=r.right-n.right<3)}var Lt,Rt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],r=t.length;e<=r;){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var o=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),e+=a+1):(n.push(o),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Ot=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},kt="oncopy"in(Lt=C("div"))||(Lt.setAttribute("oncopy","return;"),"function"==typeof Lt.oncopy),Pt=null,Dt={},Mt={};function jt(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Dt[t]=e}function qt(t){if("string"==typeof t&&Mt.hasOwnProperty(t))t=Mt[t];else if(t&&"string"==typeof t.name&&Mt.hasOwnProperty(t.name)){var e=Mt[t.name];"string"==typeof e&&(e={name:e}),(t=X(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return qt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return qt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Ft(t,e){e=qt(e);var n=Dt[e.name];if(!n)return Ft(t,"text/plain");var r=n(t,e);if(Ut.hasOwnProperty(e.name)){var i=Ut[e.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var a in e.modeProps)r[a]=e.modeProps[a];return r}var Ut={};function Gt(t,e){j(e,Ut.hasOwnProperty(t)?Ut[t]:Ut[t]={})}function Bt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Vt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Ht(t,e,n){return!t.startState||t.startState(e,n)}var zt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function $t(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(e<o){n=i;break}e-=o}return n.lines[e]}function Yt(t,e,n){var r=[],i=e.line;return t.iter(e.line,n.line+1,(function(t){var o=t.text;i==n.line&&(o=o.slice(0,n.ch)),i==e.line&&(o=o.slice(e.ch)),r.push(o),++i})),r}function Wt(t,e,n){var r=[];return t.iter(e,n,(function(t){r.push(t.text)})),r}function Qt(t,e){var n=e-t.height;if(n)for(var r=t;r;r=r.parent)r.height+=n}function Kt(t){if(null==t.parent)return null;for(var e=t.parent,n=U(e.lines,t),r=e.parent;r;e=r,r=r.parent)for(var i=0;r.children[i]!=e;++i)n+=r.children[i].chunkSize();return n+e.first}function Xt(t,e){var n=t.first;t:do{for(var r=0;r<t.children.length;++r){var i=t.children[r],o=i.height;if(e<o){t=i;continue t}e-=o,n+=i.chunkSize()}return n}while(!t.lines);for(var a=0;a<t.lines.length;++a){var s=t.lines[a].height;if(e<s)break;e-=s}return n+a}function Zt(t,e){return e>=t.first&&e<t.first+t.size}function Jt(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function te(t,e,n){if(void 0===n&&(n=null),!(this instanceof te))return new te(t,e,n);this.line=t,this.ch=e,this.sticky=n}function ee(t,e){return t.line-e.line||t.ch-e.ch}function ne(t,e){return t.sticky==e.sticky&&0==ee(t,e)}function re(t){return te(t.line,t.ch)}function ie(t,e){return ee(t,e)<0?e:t}function oe(t,e){return ee(t,e)<0?t:e}function ae(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function se(t,e){if(e.line<t.first)return te(t.first,0);var n=t.first+t.size-1;return e.line>n?te(n,$t(t,n).text.length):function(t,e){var n=t.ch;return null==n||n>e?te(t.line,e):n<0?te(t.line,0):t}(e,$t(t,e.line).text.length)}function ue(t,e){for(var n=[],r=0;r<e.length;r++)n[r]=se(t,e[r]);return n}zt.prototype.eol=function(){return this.pos>=this.string.length},zt.prototype.sol=function(){return this.pos==this.lineStart},zt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},zt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},zt.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},zt.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},zt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},zt.prototype.skipToEnd=function(){this.pos=this.string.length},zt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},zt.prototype.backUp=function(t){this.pos-=t},zt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=q(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?q(this.string,this.lineStart,this.tabSize):0)},zt.prototype.indentation=function(){return q(this.string,null,this.tabSize)-(this.lineStart?q(this.string,this.lineStart,this.tabSize):0)},zt.prototype.match=function(t,e,n){if("string"!=typeof t){var r=this.string.slice(this.pos).match(t);return r&&r.index>0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==e&&(this.pos+=t.length),!0},zt.prototype.current=function(){return this.string.slice(this.start,this.pos)},zt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},zt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},zt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var le=function(t,e){this.state=t,this.lookAhead=e},ce=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function fe(t,e,n,r){var i=[t.state.modeGen],o={};Ee(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=t.state.overlays[r],u=1,l=0;n.state=!0,Ee(t,e.text,s.mode,n,(function(t,e){for(var n=u;l<t;){var r=i[u];r>t&&i.splice(u,1,t,i[u+1],r),u+=2,l=Math.min(t,r)}if(e)if(s.opaque)i.splice(n,u-n,t,"overlay "+e),u=n+2;else for(;n<u;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+e}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},u=0;u<t.state.overlays.length;++u)s(u);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function de(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var r=he(t,Kt(e)),i=e.text.length>t.options.maxHighlightLength&&Bt(t.doc.mode,r.state),o=fe(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function he(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new ce(r,!0,e);var o=function(t,e,n){for(var r,i,o=t.doc,a=n?-1:e-(t.doc.mode.innerMode?1e3:100),s=e;s>a;--s){if(s<=o.first)return o.first;var u=$t(o,s-1),l=u.stateAfter;if(l&&(!n||s+(l instanceof le?l.lookAhead:0)<=o.modeFrontier))return s;var c=q(u.text,null,t.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(t,e,n),a=o>r.first&&$t(r,o-1).stateAfter,s=a?ce.fromSaved(r,a,o):new ce(r,Ht(r.mode),o);return r.iter(o,e,(function(n){pe(t,n.text,s);var r=s.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function pe(t,e,n,r){var i=t.doc.mode,o=new zt(e,t.options.tabSize,n);for(o.start=o.pos=r||0,""==e&&ve(i,n.state);!o.eol();)be(i,o,n.state),o.start=o.pos}function ve(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=Vt(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function be(t,e,n,r){for(var i=0;i<10;i++){r&&(r[0]=Vt(t,n).mode);var o=t.token(e,n);if(e.pos>e.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}ce.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},ce.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},ce.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ce.fromSaved=function(t,e,n){return e instanceof le?new ce(t,Bt(t.mode,e.state),n,e.lookAhead):new ce(t,Bt(t.mode,e),n)},ce.prototype.save=function(t){var e=!1!==t?Bt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new le(e,this.maxLookAhead):e};var ge=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function me(t,e,n,r){var i,o,a=t.doc,s=a.mode,u=$t(a,(e=se(a,e)).line),l=he(t,e.line,n),c=new zt(u.text,t.options.tabSize,l);for(r&&(o=[]);(r||c.pos<e.ch)&&!c.eol();)c.start=c.pos,i=be(s,c,l.state),r&&o.push(new ge(c,i,Bt(a.mode,l.state)));return r?o:new ge(c,i,l.state)}function ye(t,e){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==e[r]?e[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(e[r])||(e[r]+=" "+n[2])}return t}function Ee(t,e,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=t.options.flattenSpans);var u,l=0,c=null,f=new zt(e,t.options.tabSize,r),d=t.options.addModeClass&&[null];for(""==e&&ye(ve(n,r.state),o);!f.eol();){if(f.pos>t.options.maxHighlightLength?(s=!1,a&&pe(t,e,r,f.pos),f.pos=e.length,u=null):u=ye(be(n,f,r.state,d),o),d){var h=d[0].name;h&&(u="m-"+(u?h+" "+u:h))}if(!s||c!=u){for(;l<f.start;)i(l=Math.min(f.start,l+5e3),c);c=u}f.start=f.pos}for(;l<f.pos;){var p=Math.min(f.pos,l+5e3);i(p,c),l=p}}var xe=!1,Te=!1;function _e(t,e,n){this.marker=t,this.from=e,this.to=n}function Se(t,e){if(t)for(var n=0;n<t.length;++n){var r=t[n];if(r.marker==e)return r}}function we(t,e){for(var n,r=0;r<t.length;++r)t[r]!=e&&(n||(n=[])).push(t[r]);return n}function Ae(t,e){if(e.full)return null;var n=Zt(t,e.from.line)&&$t(t,e.from.line).markedSpans,r=Zt(t,e.to.line)&&$t(t,e.to.line).markedSpans;if(!n&&!r)return null;var i=e.from.ch,o=e.to.ch,a=0==ee(e.from,e.to),s=function(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var o=t[i],a=o.marker;null!=o.from&&!(a.inclusiveLeft?o.from<=e:o.from<e)&&(o.from!=e||"bookmark"!=a.type||n&&o.marker.insertLeft)||(r||(r=[])).push(new _e(a,o.from,null==o.to||(a.inclusiveRight?o.to>=e:o.to>e)?null:o.to))}return r}(n,i,a),u=function(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var o=t[i],a=o.marker;(null==o.to||(a.inclusiveRight?o.to>=e:o.to>e)||o.from==e&&"bookmark"==a.type&&(!n||o.marker.insertLeft))&&(r||(r=[])).push(new _e(a,null==o.from||(a.inclusiveLeft?o.from<=e:o.from<e)?null:o.from-e,null==o.to?null:o.to-e))}return r}(r,o,a),l=1==e.text.length,c=W(e.text).length+(l?i:0);if(s)for(var f=0;f<s.length;++f){var d=s[f];if(null==d.to){var h=Se(u,d.marker);h?l&&(d.to=null==h.to?null:h.to+c):d.to=i}}if(u)for(var p=0;p<u.length;++p){var v=u[p];null!=v.to&&(v.to+=c),null==v.from?Se(s,v.marker)||(v.from=c,l&&(s||(s=[])).push(v)):(v.from+=c,l&&(s||(s=[])).push(v))}s&&(s=Ne(s)),u&&u!=s&&(u=Ne(u));var b=[s];if(!l){var g,m=e.text.length-2;if(m>0&&s)for(var y=0;y<s.length;++y)null==s[y].to&&(g||(g=[])).push(new _e(s[y].marker,null,null));for(var E=0;E<m;++E)b.push(g);b.push(u)}return b}function Ne(t){for(var e=0;e<t.length;++e){var n=t[e];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function Ie(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function Ce(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function Le(t){return t.inclusiveLeft?-1:0}function Re(t){return t.inclusiveRight?1:0}function Oe(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var r=t.find(),i=e.find(),o=ee(r.from,i.from)||Le(t)-Le(e);return o?-o:ee(r.to,i.to)||Re(t)-Re(e)||e.id-t.id}function ke(t,e){var n,r=Te&&t.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(e?i.from:i.to)&&(!n||Oe(n,i.marker)<0)&&(n=i.marker);return n}function Pe(t){return ke(t,!0)}function De(t){return ke(t,!1)}function Me(t,e){var n,r=Te&&t.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<e)&&(null==o.to||o.to>e)&&(!n||Oe(n,o.marker)<0)&&(n=o.marker)}return n}function je(t,e,n,r,i){var o=$t(t,e),a=Te&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var u=a[s];if(u.marker.collapsed){var l=u.marker.find(0),c=ee(l.from,n)||Le(u.marker)-Le(i),f=ee(l.to,r)||Re(u.marker)-Re(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?ee(l.to,n)>=0:ee(l.to,n)>0)||c>=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?ee(l.from,r)<=0:ee(l.from,r)<0)))return!0}}}function qe(t){for(var e;e=Pe(t);)t=e.find(-1,!0).line;return t}function Fe(t,e){var n=$t(t,e),r=qe(n);return n==r?e:Kt(r)}function Ue(t,e){if(e>t.lastLine())return e;var n,r=$t(t,e);if(!Ge(t,r))return e;for(;n=De(r);)r=n.find(1,!0).line;return Kt(r)+1}function Ge(t,e){var n=Te&&e.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Be(t,e,r))return!0}}function Be(t,e,n){if(null==n.to){var r=n.marker.find(1,!0);return Be(t,r.line,Se(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var i=void 0,o=0;o<e.markedSpans.length;++o)if((i=e.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Be(t,e,i))return!0}function Ve(t){for(var e=0,n=(t=qe(t)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==t)break;e+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;e+=s.height}return e}function He(t){if(0==t.height)return 0;for(var e,n=t.text.length,r=t;e=Pe(r);){var i=e.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=t;e=De(r);){var o=e.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function ze(t){var e=t.display,n=t.doc;e.maxLine=$t(n,n.first),e.maxLineLength=He(e.maxLine),e.maxLineChanged=!0,n.iter((function(t){var n=He(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var $e=function(t,e,n){this.text=t,Ce(this,e),this.height=n?n(this):1};function Ye(t){t.parent=null,Ie(t)}$e.prototype.lineNo=function(){return Kt(this)},mt($e);var We={},Qe={};function Ke(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?Qe:We;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function Xe(t,e){var n=L("span",null,null,u?"padding-right: .1px":null),r={pre:L("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var o=i?e.rest[i-1]:e.line,a=void 0;r.pos=0,r.addToken=Je,Ct(t.display.measure)&&(a=lt(o,t.doc.direction))&&(r.addToken=tn(r.addToken,a)),r.map=[],nn(o,r,de(t,o,e!=t.display.externalMeasured&&Kt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=P(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=P(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(It(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(u){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return pt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=P(r.pre.className,r.textClass||"")),r}function Ze(t){var e=C("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function Je(t,e,n,r,i,o,u){if(e){var l,c=t.splitSpaces?function(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;i<t.length;i++){var o=t.charAt(i);" "!=o||!n||i!=t.length-1&&32!=t.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(e,t.trailingSpace):e,f=t.cm.state.specialChars,d=!1;if(f.test(e)){l=document.createDocumentFragment();for(var h=0;;){f.lastIndex=h;var p=f.exec(e),v=p?p.index-h:e.length-h;if(v){var b=document.createTextNode(c.slice(h,h+v));l.appendChild(a&&s<9?C("span",[b]):b),t.map.push(t.pos,t.pos+v,b),t.col+=v,t.pos+=v}if(!p)break;h+=v+1;var g=void 0;if("\t"==p[0]){var m=t.cm.options.tabSize,y=m-t.col%m;(g=l.appendChild(C("span",Y(y),"cm-tab"))).setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),t.col+=y}else"\r"==p[0]||"\n"==p[0]?((g=l.appendChild(C("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),t.col+=1):((g=t.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),l.appendChild(a&&s<9?C("span",[g]):g),t.col+=1);t.map.push(t.pos,t.pos+1,g),t.pos++}}else t.col+=e.length,l=document.createTextNode(c),t.map.push(t.pos,t.pos+e.length,l),a&&s<9&&(d=!0),t.pos+=e.length;if(t.trailingSpace=32==c.charCodeAt(e.length-1),n||r||i||d||o){var E=n||"";r&&(E+=r),i&&(E+=i);var x=C("span",[l],E,o);if(u)for(var T in u)u.hasOwnProperty(T)&&"style"!=T&&"class"!=T&&x.setAttribute(T,u[T]);return t.content.appendChild(x)}t.content.appendChild(l)}}function tn(t,e){return function(n,r,i,o,a,s,u){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,c=l+r.length;;){for(var f=void 0,d=0;d<e.length&&!((f=e[d]).to>l&&f.from<=l);d++);if(f.to>=c)return t(n,r,i,o,a,s,u);t(n,r.slice(0,f.to-l),i,o,null,s,u),o=null,r=r.slice(f.to-l),l=f.to}}}function en(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function nn(t,e,n){var r=t.markedSpans,i=t.text,o=0;if(r)for(var a,s,u,l,c,f,d,h=i.length,p=0,v=1,b="",g=0;;){if(g==p){u=l=c=s="",d=null,f=null,g=1/0;for(var m=[],y=void 0,E=0;E<r.length;++E){var x=r[E],T=x.marker;if("bookmark"==T.type&&x.from==p&&T.widgetNode)m.push(T);else if(x.from<=p&&(null==x.to||x.to>p||T.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&g>x.to&&(g=x.to,l=""),T.className&&(u+=" "+T.className),T.css&&(s=(s?s+";":"")+T.css),T.startStyle&&x.from==p&&(c+=" "+T.startStyle),T.endStyle&&x.to==g&&(y||(y=[])).push(T.endStyle,x.to),T.title&&((d||(d={})).title=T.title),T.attributes)for(var _ in T.attributes)(d||(d={}))[_]=T.attributes[_];T.collapsed&&(!f||Oe(f.marker,T)<0)&&(f=x)}else x.from>p&&g>x.from&&(g=x.from)}if(y)for(var S=0;S<y.length;S+=2)y[S+1]==g&&(l+=" "+y[S]);if(!f||f.from==p)for(var w=0;w<m.length;++w)en(e,0,m[w]);if(f&&(f.from||0)==p){if(en(e,(null==f.to?h+1:f.to)-p,f.marker,null==f.from),null==f.to)return;f.to==p&&(f=!1)}}if(p>=h)break;for(var A=Math.min(h,g);;){if(b){var N=p+b.length;if(!f){var I=N>A?b.slice(0,A-p):b;e.addToken(e,I,a?a+u:u,c,p+I.length==g?l:"",s,d)}if(N>=A){b=b.slice(A-p),p=A;break}p=N,c=""}b=i.slice(o,o=n[v++]),a=Ke(n[v++],e.cm.options)}}else for(var C=1;C<n.length;C+=2)e.addToken(e,i.slice(o,o=n[C]),Ke(n[C+1],e.cm.options))}function rn(t,e,n){this.line=e,this.rest=function(t){for(var e,n;e=De(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}(e),this.size=this.rest?Kt(W(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ge(t,e)}function on(t,e,n){for(var r,i=[],o=e;o<n;o=r){var a=new rn(t.doc,$t(t.doc,o),o);r=o+a.size,i.push(a)}return i}var an=null,sn=null;function un(t,e){var n=dt(t,e);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);an?r=an.delayedCallbacks:sn?r=sn:(r=sn=[],setTimeout(ln,0));for(var o=function(t){r.push((function(){return n[t].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function ln(){var t=sn;sn=null;for(var e=0;e<t.length;++e)t[e]()}function cn(t,e,n,r){for(var i=0;i<e.changes.length;i++){var o=e.changes[i];"text"==o?hn(t,e):"gutter"==o?vn(t,e,n,r):"class"==o?pn(t,e):"widget"==o&&bn(t,e,r)}e.changes=null}function fn(t){return t.node==t.text&&(t.node=C("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),a&&s<8&&(t.node.style.zIndex=2)),t.node}function dn(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):Xe(t,e)}function hn(t,e){var n=e.text.className,r=dn(t,e);e.text==e.node&&(e.node=r.pre),e.text.parentNode.replaceChild(r.pre,e.text),e.text=r.pre,r.bgClass!=e.bgClass||r.textClass!=e.textClass?(e.bgClass=r.bgClass,e.textClass=r.textClass,pn(t,e)):n&&(e.text.className=n)}function pn(t,e){!function(t,e){var n=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),e.background)n?e.background.className=n:(e.background.parentNode.removeChild(e.background),e.background=null);else if(n){var r=fn(e);e.background=r.insertBefore(C("div",null,n),r.firstChild),t.display.input.setUneditable(e.background)}}(t,e),e.line.wrapClass?fn(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className=""),e.text.className=(e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass)||""}function vn(t,e,n,r){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var i=fn(e);e.gutterBackground=C("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),i.insertBefore(e.gutterBackground,e.text)}var o=e.line.gutterMarkers;if(t.options.lineNumbers||o){var a=fn(e),s=e.gutter=C("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(t.display.input.setUneditable(s),a.insertBefore(s,e.text),e.line.gutterClass&&(s.className+=" "+e.line.gutterClass),!t.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(e.lineNumber=s.appendChild(C("div",Jt(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),o)for(var u=0;u<t.display.gutterSpecs.length;++u){var l=t.display.gutterSpecs[u].className,c=o.hasOwnProperty(l)&&o[l];c&&s.appendChild(C("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function bn(t,e,n){e.alignable&&(e.alignable=null);for(var r=S("CodeMirror-linewidget"),i=e.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&e.node.removeChild(i);mn(t,e,n)}function gn(t,e,n,r){var i=dn(t,e);return e.text=e.node=i.pre,i.bgClass&&(e.bgClass=i.bgClass),i.textClass&&(e.textClass=i.textClass),pn(t,e),vn(t,e,n,r),mn(t,e,r),e.node}function mn(t,e,n){if(yn(t,e.line,e,n,!0),e.rest)for(var r=0;r<e.rest.length;r++)yn(t,e.rest[r],e,n,!1)}function yn(t,e,n,r,i){if(e.widgets)for(var o=fn(n),a=0,s=e.widgets;a<s.length;++a){var u=s[a],l=C("div",[u.node],"CodeMirror-linewidget"+(u.className?" "+u.className:""));u.handleMouseEvents||l.setAttribute("cm-ignore-events","true"),En(u,l,n,r),t.display.input.setUneditable(l),i&&u.above?o.insertBefore(l,n.gutter||n.text):o.appendChild(l),un(u,"redraw")}}function En(t,e,n,r){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(e);var i=r.wrapperWidth;e.style.left=r.fixedPos+"px",t.coverGutter||(i-=r.gutterTotalWidth,e.style.paddingLeft=r.gutterTotalWidth+"px"),e.style.width=i+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-r.gutterTotalWidth+"px"))}function xn(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!R(document.body,t.node)){var n="position: relative;";t.coverGutter&&(n+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(n+="width: "+e.display.wrapper.clientWidth+"px;"),I(e.display.measure,C("div",[t.node],null,n))}return t.height=t.node.parentNode.offsetHeight}function Tn(t,e){for(var n=_t(e);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function _n(t){return t.lineSpace.offsetTop}function Sn(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function wn(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=I(t.measure,C("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(t.cachedPaddingH=r),r}function An(t){return 50-t.display.nativeBarWidth}function Nn(t){return t.display.scroller.clientWidth-An(t)-t.display.barWidth}function In(t){return t.display.scroller.clientHeight-An(t)-t.display.barHeight}function Cn(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var r=0;r<t.rest.length;r++)if(t.rest[r]==e)return{map:t.measure.maps[r],cache:t.measure.caches[r]};for(var i=0;i<t.rest.length;i++)if(Kt(t.rest[i])>n)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function Ln(t,e,n,r){return kn(t,On(t,e),n,r)}function Rn(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[cr(t,e)];var n=t.display.externalMeasured;return n&&e>=n.lineN&&e<n.lineN+n.size?n:void 0}function On(t,e){var n=Kt(e),r=Rn(t,n);r&&!r.text?r=null:r&&r.changes&&(cn(t,r,n,or(t)),t.curOp.forceUpdate=!0),r||(r=function(t,e){var n=Kt(e=qe(e)),r=t.display.externalMeasured=new rn(t.doc,e,n);r.lineN=n;var i=r.built=Xe(t,r);return r.text=i.pre,I(t.display.lineMeasure,i.pre),r}(t,e));var i=Cn(r,e,n);return{line:e,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function kn(t,e,n,r,i){e.before&&(n=-1);var o,u=n+(r||"");return e.cache.hasOwnProperty(u)?o=e.cache[u]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(function(t,e,n){var r=t.options.lineWrapping,i=r&&Nn(t);if(!e.measure.heights||r&&e.measure.width!=i){var o=e.measure.heights=[];if(r){e.measure.width=i;for(var a=e.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var u=a[s],l=a[s+1];Math.abs(u.bottom-l.bottom)>2&&o.push((u.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}(t,e.view,e.rect),e.hasHeights=!0),(o=function(t,e,n,r){var i,o=Mn(e.map,n,r),u=o.node,l=o.start,c=o.end,f=o.collapse;if(3==u.nodeType){for(var d=0;d<4;d++){for(;l&&rt(e.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+c<o.coverEnd&&rt(e.line.text.charAt(o.coverStart+c));)++c;if((i=a&&s<9&&0==l&&c==o.coverEnd-o.coverStart?u.parentNode.getBoundingClientRect():jn(w(u,l,c).getClientRects(),r)).left||i.right||0==l)break;c=l,l-=1,f="right"}a&&s<11&&(i=function(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(t){if(null!=Pt)return Pt;var e=I(t,C("span","x")),n=e.getBoundingClientRect(),r=w(e,0,1).getBoundingClientRect();return Pt=Math.abs(n.left-r.left)>1}(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*r,bottom:e.bottom*r}}(t.display.measure,i))}else{var h;l>0&&(f=r="right"),i=t.options.lineWrapping&&(h=u.getClientRects()).length>1?h["right"==r?h.length-1:0]:u.getBoundingClientRect()}if(a&&s<9&&!l&&(!i||!i.left&&!i.right)){var p=u.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+ir(t.display),top:p.top,bottom:p.bottom}:Dn}for(var v=i.top-e.rect.top,b=i.bottom-e.rect.top,g=(v+b)/2,m=e.view.measure.heights,y=0;y<m.length-1&&!(g<m[y]);y++);var E={left:("right"==f?i.right:i.left)-e.rect.left,right:("left"==f?i.left:i.right)-e.rect.left,top:y?m[y-1]:0,bottom:m[y]};return i.left||i.right||(E.bogus=!0),t.options.singleCursorHeightPerLine||(E.rtop=v,E.rbottom=b),E}(t,e,n,r)).bogus||(e.cache[u]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Pn,Dn={left:0,right:0,top:0,bottom:0};function Mn(t,e,n){for(var r,i,o,a,s,u,l=0;l<t.length;l+=3)if(u=t[l+1],e<(s=t[l])?(i=0,o=1,a="left"):e<u?o=1+(i=e-s):(l==t.length-3||e==u&&t[l+3]>e)&&(i=(o=u-s)-1,e>=u&&(a="right")),null!=i){if(r=t[l+2],s==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;l&&t[l-2]==t[l-3]&&t[l-1].insertLeft;)r=t[2+(l-=3)],a="left";if("right"==n&&i==u-s)for(;l<t.length-3&&t[l+3]==t[l+4]&&!t[l+5].insertLeft;)r=t[(l+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:u}}function jn(t,e){var n=Dn;if("left"==e)for(var r=0;r<t.length&&(n=t[r]).left==n.right;r++);else for(var i=t.length-1;i>=0&&(n=t[i]).left==n.right;i--);return n}function qn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function Fn(t){t.display.externalMeasure=null,N(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)qn(t.display.view[e])}function Un(t){Fn(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Gn(){return c&&b?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Bn(){return c&&b?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Vn(t){var e=0;if(t.widgets)for(var n=0;n<t.widgets.length;++n)t.widgets[n].above&&(e+=xn(t.widgets[n]));return e}function Hn(t,e,n,r,i){if(!i){var o=Vn(e);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Ve(e);if("local"==r?a+=_n(t.display):a-=t.display.viewOffset,"page"==r||"window"==r){var s=t.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:Bn());var u=s.left+("window"==r?0:Gn());n.left+=u,n.right+=u}return n.top+=a,n.bottom+=a,n}function zn(t,e,n){if("div"==n)return e;var r=e.left,i=e.top;if("page"==n)r-=Gn(),i-=Bn();else if("local"==n||!n){var o=t.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=t.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function $n(t,e,n,r,i){return r||(r=$t(t.doc,e.line)),Hn(t,r,Ln(t,r,e.ch,i),n)}function Yn(t,e,n,r,i,o){function a(e,a){var s=kn(t,i,e,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Hn(t,r,s,n)}r=r||$t(t.doc,e.line),i||(i=On(t,r));var s=lt(r,t.doc.direction),u=e.ch,l=e.sticky;if(u>=r.text.length?(u=r.text.length,l="before"):u<=0&&(u=0,l="after"),!s)return a("before"==l?u-1:u,"before"==l);function c(t,e,n){return a(n?t-1:t,1==s[e].level!=n)}var f=st(s,u,l),d=at,h=c(u,f,"before"==l);return null!=d&&(h.other=c(u,d,"before"!=l)),h}function Wn(t,e){var n=0;e=se(t.doc,e),t.options.lineWrapping||(n=ir(t.display)*e.ch);var r=$t(t.doc,e.line),i=Ve(r)+_n(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Qn(t,e,n,r,i){var o=te(t,e,n);return o.xRel=i,r&&(o.outside=r),o}function Kn(t,e,n){var r=t.doc;if((n+=t.display.viewOffset)<0)return Qn(r.first,0,null,-1,-1);var i=Xt(r,n),o=r.first+r.size-1;if(i>o)return Qn(r.first+r.size-1,$t(r,o).text.length,null,1,1);e<0&&(e=0);for(var a=$t(r,i);;){var s=tr(t,a,i,e,n),u=Me(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!u)return s;var l=u.find(1);if(l.line==i)return l;a=$t(r,i=l.line)}}function Xn(t,e,n,r){r-=Vn(e);var i=e.text.length,o=ot((function(e){return kn(t,n,e-1).bottom<=r}),i,0);return{begin:o,end:i=ot((function(e){return kn(t,n,e).top>r}),o,i)}}function Zn(t,e,n,r){return n||(n=On(t,e)),Xn(t,e,n,Hn(t,e,kn(t,n,r),"line").top)}function Jn(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function tr(t,e,n,r,i){i-=Ve(e);var o=On(t,e),a=Vn(e),s=0,u=e.text.length,l=!0,c=lt(e,t.doc.direction);if(c){var f=(t.options.lineWrapping?nr:er)(t,e,n,o,c,r,i);s=(l=1!=f.level)?f.from:f.to-1,u=l?f.to:f.from-1}var d,h,p=null,v=null,b=ot((function(e){var n=kn(t,o,e);return n.top+=a,n.bottom+=a,!!Jn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=e,v=n),!0)}),s,u),g=!1;if(v){var m=r-v.left<v.right-r,y=m==l;b=p+(y?0:1),h=y?"after":"before",d=m?v.left:v.right}else{l||b!=u&&b!=s||b++,h=0==b?"after":b==e.text.length?"before":kn(t,o,b-(l?1:0)).bottom+a<=i==l?"after":"before";var E=Yn(t,te(n,b,h),"line",e,o);d=E.left,g=i<E.top?-1:i>=E.bottom?1:0}return Qn(n,b=it(e.text,b,1),h,g,r-d)}function er(t,e,n,r,i,o,a){var s=ot((function(s){var u=i[s],l=1!=u.level;return Jn(Yn(t,te(n,l?u.to:u.from,l?"before":"after"),"line",e,r),o,a,!0)}),0,i.length-1),u=i[s];if(s>0){var l=1!=u.level,c=Yn(t,te(n,l?u.from:u.to,l?"after":"before"),"line",e,r);Jn(c,o,a,!0)&&c.top>a&&(u=i[s-1])}return u}function nr(t,e,n,r,i,o,a){var s=Xn(t,e,r,a),u=s.begin,l=s.end;/\s/.test(e.text.charAt(l-1))&&l--;for(var c=null,f=null,d=0;d<i.length;d++){var h=i[d];if(!(h.from>=l||h.to<=u)){var p=kn(t,r,1!=h.level?Math.min(l,h.to)-1:Math.max(u,h.from)).right,v=p<o?o-p+1e9:p-o;(!c||f>v)&&(c=h,f=v)}}return c||(c=i[i.length-1]),c.from<u&&(c={from:u,to:c.to,level:c.level}),c.to>l&&(c={from:c.from,to:l,level:c.level}),c}function rr(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==Pn){Pn=C("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)Pn.appendChild(document.createTextNode("x")),Pn.appendChild(C("br"));Pn.appendChild(document.createTextNode("x"))}I(t.measure,Pn);var n=Pn.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),N(t.measure),n||1}function ir(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=C("span","xxxxxxxxxx"),n=C("pre",[e],"CodeMirror-line-like");I(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function or(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,o=e.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=t.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:ar(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function ar(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function sr(t){var e=rr(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/ir(t.display)-3);return function(i){if(Ge(t.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*e:o+e}}function ur(t){var e=t.doc,n=sr(t);e.iter((function(t){var e=n(t);e!=t.height&&Qt(t,e)}))}function lr(t,e,n,r){var i=t.display;if(!n&&"true"==_t(e).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=e.clientX-s.left,a=e.clientY-s.top}catch(t){return null}var u,l=Kn(t,o,a);if(r&&l.xRel>0&&(u=$t(t.doc,l.line).text).length==l.ch){var c=q(u,u.length,t.options.tabSize)-u.length;l=te(l.line,Math.max(0,Math.round((o-wn(t.display).left)/ir(t.display))-c))}return l}function cr(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,r=0;r<n.length;r++)if((e-=n[r].size)<0)return r}function fr(t,e,n,r){null==e&&(e=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),r||(r=0);var i=t.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>e)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)Te&&Fe(t.doc,e)<i.viewTo&&hr(t);else if(n<=i.viewFrom)Te&&Ue(t.doc,n+r)>i.viewFrom?hr(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)hr(t);else if(e<=i.viewFrom){var o=pr(t,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):hr(t)}else if(n>=i.viewTo){var a=pr(t,e,e,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):hr(t)}else{var s=pr(t,e,e,-1),u=pr(t,n,n+r,1);s&&u?(i.view=i.view.slice(0,s.index).concat(on(t,s.lineN,u.lineN)).concat(i.view.slice(u.index)),i.viewTo+=r):hr(t)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:e<l.lineN+l.size&&(i.externalMeasured=null))}function dr(t,e,n){t.curOp.viewChanged=!0;var r=t.display,i=t.display.externalMeasured;if(i&&e>=i.lineN&&e<i.lineN+i.size&&(r.externalMeasured=null),!(e<r.viewFrom||e>=r.viewTo)){var o=r.view[cr(t,e)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==U(a,n)&&a.push(n)}}}function hr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function pr(t,e,n,r){var i,o=cr(t,e),a=t.display.view;if(!Te||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var s=t.display.viewFrom,u=0;u<o;u++)s+=a[u].size;if(s!=e){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-e,o++}else i=s-e;e+=i,n+=i}for(;Fe(t.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function vr(t){for(var e=t.display.view,n=0,r=0;r<e.length;r++){var i=e[r];i.hidden||i.node&&!i.changes||++n}return n}function br(t){t.display.input.showSelection(t.display.input.prepareSelection())}function gr(t,e){void 0===e&&(e=!0);for(var n=t.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(e||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=t.display.viewTo||s.to().line<t.display.viewFrom)){var u=s.empty();(u||t.options.showCursorWhenSelecting)&&mr(t,s.head,i),u||Er(t,s,o)}}return r}function mr(t,e,n){var r=Yn(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),i=n.appendChild(C("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*t.options.cursorHeight+"px",r.other){var o=n.appendChild(C("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function yr(t,e){return t.top-e.top||t.left-e.left}function Er(t,e,n){var r=t.display,i=t.doc,o=document.createDocumentFragment(),a=wn(t.display),s=a.left,u=Math.max(r.sizerWidth,Nn(t)-r.sizer.offsetLeft)-a.right,l="ltr"==i.direction;function c(t,e,n,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),o.appendChild(C("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+e+"px; width: "+(null==n?u-t:n)+"px;\n height: "+(r-e)+"px"))}function f(e,n,r){var o,a,f=$t(i,e),d=f.text.length;function h(n,r){return $n(t,te(e,n),"div",f,r)}function p(e,n,r){var i=Zn(t,f,null,e),o="ltr"==n==("after"==r)?"left":"right";return h("after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}var v=lt(f,i.direction);return function(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var i=!1,o=0;o<t.length;++o){var a=t[o];(a.from<n&&a.to>e||e==n&&a.to==e)&&(r(Math.max(a.from,e),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(e,n,"ltr")}(v,n||0,null==r?d:r,(function(t,e,i,f){var b="ltr"==i,g=h(t,b?"left":"right"),m=h(e-1,b?"right":"left"),y=null==n&&0==t,E=null==r&&e==d,x=0==f,T=!v||f==v.length-1;if(m.top-g.top<=3){var _=(l?y:E)&&x?s:(b?g:m).left;c(_,g.top,((l?E:y)&&T?u:(b?m:g).right)-_,g.bottom)}else{var S,w,A,N;b?(S=l&&y&&x?s:g.left,w=l?u:p(t,i,"before"),A=l?s:p(e,i,"after"),N=l&&E&&T?u:m.right):(S=l?p(t,i,"before"):s,w=!l&&y&&x?u:g.right,A=!l&&E&&T?s:m.left,N=l?p(e,i,"after"):u),c(S,g.top,w-S,g.bottom),g.bottom<m.top&&c(s,g.bottom,null,m.top),c(A,m.top,N-A,m.bottom)}(!o||yr(g,o)<0)&&(o=g),yr(m,o)<0&&(o=m),(!a||yr(g,a)<0)&&(a=g),yr(m,a)<0&&(a=m)})),{start:o,end:a}}var d=e.from(),h=e.to();if(d.line==h.line)f(d.line,d.ch,h.ch);else{var p=$t(i,d.line),v=$t(i,h.line),b=qe(p)==qe(v),g=f(d.line,d.ch,b?p.text.length+1:null).end,m=f(h.line,b?0:null,h.ch).start;b&&(g.top<m.top-2?(c(g.right,g.top,null,g.bottom),c(s,m.top,m.left,m.bottom)):c(g.right,g.top,m.left-g.right,g.bottom)),g.bottom<m.top&&c(s,g.bottom,null,m.top)}n.appendChild(o)}function xr(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var n=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval((function(){return e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Tr(t){t.state.focused||(t.display.input.focus(),Sr(t))}function _r(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,wr(t))}),100)}function Sr(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(pt(t,"focus",t,e),t.state.focused=!0,k(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),u&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),xr(t))}function wr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(pt(t,"blur",t,e),t.state.focused=!1,A(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Ar(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=0;r<e.view.length;r++){var i=e.view[r],o=t.options.lineWrapping,u=void 0,l=0;if(!i.hidden){if(a&&s<8){var c=i.node.offsetTop+i.node.offsetHeight;u=c-n,n=c}else{var f=i.node.getBoundingClientRect();u=f.bottom-f.top,!o&&i.text.firstChild&&(l=i.text.firstChild.getBoundingClientRect().right-f.left-1)}var d=i.line.height-u;if((d>.005||d<-.005)&&(Qt(i.line,u),Nr(i.line),i.rest))for(var h=0;h<i.rest.length;h++)Nr(i.rest[h]);if(l>t.display.sizerWidth){var p=Math.ceil(l/ir(t.display));p>t.display.maxLineLength&&(t.display.maxLineLength=p,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function Nr(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var n=t.widgets[e],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Ir(t,e,n){var r=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;r=Math.floor(r-_n(t));var i=n&&null!=n.bottom?n.bottom:r+t.wrapper.clientHeight,o=Xt(e,r),a=Xt(e,i);if(n&&n.ensure){var s=n.ensure.from.line,u=n.ensure.to.line;s<o?(o=s,a=Xt(e,Ve($t(e,s))+t.wrapper.clientHeight)):Math.min(u,e.lastLine())>=a&&(o=Xt(e,Ve($t(e,u))-t.wrapper.clientHeight),a=u)}return{from:o,to:Math.max(a,o+1)}}function Cr(t,e){var n=t.display,r=rr(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=In(t),a={};e.bottom-e.top>o&&(e.bottom=e.top+o);var s=t.doc.height+Sn(n),u=e.bottom>s-r;if(e.top<i)a.scrollTop=e.top<r?0:e.top;else if(e.bottom>i+o){var l=Math.min(e.top,(u?s:e.bottom)-o);l!=i&&(a.scrollTop=l)}var c=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft,f=Nn(t)-(t.options.fixedGutter?n.gutters.offsetWidth:0),d=e.right-e.left>f;return d&&(e.right=e.left+f),e.left<10?a.scrollLeft=0:e.left<c?a.scrollLeft=Math.max(0,e.left-(d?0:10)):e.right>f+c-3&&(a.scrollLeft=e.right+(d?0:10)-f),a}function Lr(t,e){null!=e&&(kr(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Rr(t){kr(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Or(t,e,n){null==e&&null==n||kr(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function kr(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,Pr(t,Wn(t,e.from),Wn(t,e.to),e.margin))}function Pr(t,e,n,r){var i=Cr(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});Or(t,i.scrollLeft,i.scrollTop)}function Dr(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||ui(t,{top:e}),Mr(t,e,!0),n&&ui(t),ri(t,100))}function Mr(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function jr(t,e,n,r){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,fi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function qr(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+Sn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+An(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var Fr=function(t,e,n){this.cm=n;var r=this.vert=C("div",[C("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=C("div",[C("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),ft(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),ft(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Fr.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;return n?(this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0",this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+(t.viewHeight-(e?r:0)))+"px"):(this.vert.style.display="",this.vert.firstChild.style.height="0"),e?(this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px",this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+(t.viewWidth-t.barLeft-(n?r:0)))+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0"),!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},Fr.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Fr.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Fr.prototype.zeroWidthHack=function(){this.horiz.style.height=this.vert.style.width=m&&!h?"12px":"18px",this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new F,this.disableVert=new F},Fr.prototype.enableZeroWidthBar=function(t,e,n){t.style.pointerEvents="auto",e.set(1e3,(function r(){var i=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,r)}))},Fr.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Ur=function(){};function Gr(t,e){e||(e=qr(t));var n=t.display.barWidth,r=t.display.barHeight;Br(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Ar(t),Br(t,qr(t)),n=t.display.barWidth,r=t.display.barHeight}function Br(t,e){var n=t.display,r=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}Ur.prototype.update=function(){return{bottom:0,right:0}},Ur.prototype.setScrollLeft=function(){},Ur.prototype.setScrollTop=function(){},Ur.prototype.clear=function(){};var Vr={native:Fr,null:Ur};function Hr(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&A(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Vr[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),ft(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?jr(t,e):Dr(t,e)}),t),t.display.scrollbars.addClass&&k(t.display.wrapper,t.display.scrollbars.addClass)}var zr=0;function $r(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++zr},e=t.curOp,an?an.ops.push(e):e.ownsGroup=an={ops:[e],delayedCallbacks:[]}}function Yr(t){var e=t.curOp;e&&function(t){var e=t.ownsGroup;if(e)try{!function(t){var e=t.delayedCallbacks,n=0;do{for(;n<e.length;n++)e[n].call(null);for(var r=0;r<t.ops.length;r++){var i=t.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<e.length)}(e)}finally{an=null,function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;!function(t){for(var e=t.ops,n=0;n<e.length;n++)Wr(e[n]);for(var r=0;r<e.length;r++)Qr(e[r]);for(var i=0;i<e.length;i++)Kr(e[i]);for(var o=0;o<e.length;o++)Xr(e[o]);for(var a=0;a<e.length;a++)Zr(e[a])}(t)}(e)}}(e)}function Wr(t){var e=t.cm,n=e.display;!function(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=An(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=An(t)+"px",e.scrollbarsClipped=!0)}(e),t.updateMaxLine&&ze(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new oi(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Qr(t){t.updatedDisplay=t.mustUpdate&&ai(t.cm,t.update)}function Kr(t){var e=t.cm,n=e.display;t.updatedDisplay&&Ar(e),t.barMeasure=qr(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Ln(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+An(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Nn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Xr(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&jr(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==O();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&Gr(e,t.barMeasure),t.updatedDisplay&&ci(e,t.barMeasure),t.selectionChanged&&xr(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&Tr(t.cm)}function Zr(t){var e=t.cm,n=e.display,r=e.doc;t.updatedDisplay&&si(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&Mr(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&jr(e,t.scrollLeft,!0,!0),t.scrollToPos&&function(t,e){if(!vt(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),i=null;if(e.top+r.top<0?i=!0:e.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=C("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-_n(t.display))+"px;\n height: "+(e.bottom-e.top+An(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(i),t.display.lineSpace.removeChild(o)}}}(e,function(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==(e=e.ch?te(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?te(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var a=!1,s=Yn(t,e),u=n&&n!=e?Yn(t,n):s,l=Cr(t,i={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-r,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+r}),c=t.doc.scrollTop,f=t.doc.scrollLeft;if(null!=l.scrollTop&&(Dr(t,l.scrollTop),Math.abs(t.doc.scrollTop-c)>1&&(a=!0)),null!=l.scrollLeft&&(jr(t,l.scrollLeft),Math.abs(t.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(e,se(r,t.scrollToPos.from),se(r,t.scrollToPos.to),t.scrollToPos.margin));var i=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||pt(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&pt(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&pt(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function Jr(t,e){if(t.curOp)return e();$r(t);try{return e()}finally{Yr(t)}}function ti(t,e){return function(){if(t.curOp)return e.apply(t,arguments);$r(t);try{return e.apply(t,arguments)}finally{Yr(t)}}}function ei(t){return function(){if(this.curOp)return t.apply(this,arguments);$r(this);try{return t.apply(this,arguments)}finally{Yr(this)}}}function ni(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);$r(e);try{return t.apply(this,arguments)}finally{Yr(e)}}}function ri(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,M(ii,t))}function ii(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,r=he(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(o){if(r.line>=t.display.viewFrom){var a=o.styles,s=o.text.length>t.options.maxHighlightLength?Bt(e.mode,r.state):null,u=fe(t,o,r,!0);s&&(r.state=s),o.styles=u.styles;var l=o.styleClasses,c=u.classes;c?o.styleClasses=c:l&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),d=0;!f&&d<a.length;++d)f=a[d]!=o.styles[d];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=t.options.maxHighlightLength&&pe(t,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ri(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&Jr(t,(function(){for(var e=0;e<i.length;e++)dr(t,i[e],"text")}))}}var oi=function(t,e,n){var r=t.display;this.viewport=e,this.visible=Ir(r,t.doc,e),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Nn(t),this.force=n,this.dims=or(t),this.events=[]};function ai(t,e){var n=t.display,r=t.doc;if(e.editorIsHidden)return hr(t),!1;if(!e.force&&e.visible.from>=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==vr(t))return!1;di(t)&&(hr(t),e.dims=or(t));var i=r.first+r.size,o=Math.max(e.visible.from-t.options.viewportMargin,r.first),a=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Te&&(o=Fe(t.doc,o),a=Ue(t.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;!function(t,e,n){var r=t.display;0==r.view.length||e>=r.viewTo||n<=r.viewFrom?(r.view=on(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=on(t,e,r.viewFrom).concat(r.view):r.viewFrom<e&&(r.view=r.view.slice(cr(t,e))),r.viewFrom=e,r.viewTo<n?r.view=r.view.concat(on(t,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,cr(t,n)))),r.viewTo=n}(t,o,a),n.viewOffset=Ve($t(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var l=vr(t);if(!s&&0==l&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(t){if(t.hasFocus())return null;var e=O();if(!e||!R(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&R(t.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(t);return l>4&&(n.lineDiv.style.display="none"),function(t,e,n){var r=t.display,i=t.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(e){var n=e.nextSibling;return u&&m&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var l=r.view,c=r.viewFrom,f=0;f<l.length;f++){var d=l[f];if(d.hidden);else if(d.node&&d.node.parentNode==o){for(;a!=d.node;)a=s(a);var h=i&&null!=e&&e<=c&&d.lineNumber;d.changes&&(U(d.changes,"gutter")>-1&&(h=!1),cn(t,d,c,n)),h&&(N(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(Jt(t.options,c)))),a=d.node.nextSibling}else{var p=gn(t,d,c,n);o.insertBefore(p,a)}c+=d.size}for(;a;)a=s(a)}(t,n.updateLineNumbers,e.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(t){if(t&&t.activeElt&&t.activeElt!=O()&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&R(document.body,t.anchorNode)&&R(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}(c),N(n.cursorDiv),N(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,ri(t,400)),n.updateLineNumbers=null,!0}function si(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Nn(t))r&&(e.visible=Ir(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+Sn(t.display)-In(t),n.top)}),e.visible=Ir(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!ai(t,e))break;Ar(t);var i=qr(t);br(t),Gr(t,i),ci(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function ui(t,e){var n=new oi(t,e);if(ai(t,n)){Ar(t),si(t,n);var r=qr(t);br(t),Gr(t,r),ci(t,r),n.finish()}}function li(t){t.sizer.style.marginLeft=t.gutters.offsetWidth+"px"}function ci(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+An(t)+"px"}function fi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=ar(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){t.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var u=0;u<s.length;u++)s[u].style.left=o}t.options.fixedGutter&&(e.gutters.style.left=r+i+"px")}}function di(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=Jt(t.options,e.first+e.size-1),r=t.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(C("div",[C("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",li(t.display),!0}return!1}function hi(t,e){for(var n=[],r=!1,i=0;i<t.length;i++){var o=t[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!e)continue;r=!0}n.push({className:o,style:a})}return e&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function pi(t){var e=t.gutters,n=t.gutterSpecs;N(e),t.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=e.appendChild(C("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(t.lineGutter=s,s.style.width=(t.lineNumWidth||1)+"px")}e.style.display=n.length?"":"none",li(t)}function vi(t){pi(t.display),fr(t),fi(t)}function bi(t,e,r,i){var o=this;this.input=r,o.scrollbarFiller=C("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=C("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=L("div",null,"CodeMirror-code"),o.selectionDiv=C("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=C("div",null,"CodeMirror-cursors"),o.measure=C("div",null,"CodeMirror-measure"),o.lineMeasure=C("div",null,"CodeMirror-measure"),o.lineSpace=L("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var l=L("div",[o.lineSpace],"CodeMirror-lines");o.mover=C("div",[l],null,"position: relative"),o.sizer=C("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=C("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=C("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=C("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=C("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),u||n&&g||(o.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(o.wrapper):t(o.wrapper)),o.viewFrom=o.viewTo=e.first,o.reportedViewFrom=o.reportedViewTo=e.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=hi(i.gutters,i.lineNumbers),pi(o),r.init(o)}oi.prototype.signal=function(t,e){gt(t,e)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var t=0;t<this.events.length;t++)pt.apply(null,this.events[t])};var gi=0,mi=null;function yi(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function Ei(t){var e=yi(t);return e.x*=mi,e.y*=mi,e}function xi(t,e){var r=yi(e),i=r.x,o=r.y,a=t.display,s=a.scroller,l=s.scrollHeight>s.clientHeight;if(i&&s.scrollWidth>s.clientWidth||o&&l){if(o&&m&&u)t:for(var c=e.target,d=a.view;c!=s;c=c.parentNode)for(var h=0;h<d.length;h++)if(d[h].node==c){t.display.currentWheelTarget=c;break t}if(i&&!n&&!f&&null!=mi)return o&&l&&Dr(t,Math.max(0,s.scrollTop+o*mi)),jr(t,Math.max(0,s.scrollLeft+i*mi)),(!o||o&&l)&&yt(e),void(a.wheelStartX=null);if(o&&null!=mi){var p=o*mi,v=t.doc.scrollTop,b=v+a.wrapper.clientHeight;p<0?v=Math.max(0,v+p-50):b=Math.min(t.doc.height,b+p+50),ui(t,{top:v,bottom:b})}gi<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var t=s.scrollLeft-a.wheelStartX,e=s.scrollTop-a.wheelStartY,n=e&&a.wheelDY&&e/a.wheelDY||t&&a.wheelDX&&t/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(mi=(mi*gi+n)/(gi+1),++gi)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?mi=-.53:n?mi=15:c?mi=-.7:d&&(mi=-1/3);var Ti=function(t,e){this.ranges=t,this.primIndex=e};Ti.prototype.primary=function(){return this.ranges[this.primIndex]},Ti.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var n=this.ranges[e],r=t.ranges[e];if(!ne(n.anchor,r.anchor)||!ne(n.head,r.head))return!1}return!0},Ti.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new _i(re(this.ranges[e].anchor),re(this.ranges[e].head));return new Ti(t,this.primIndex)},Ti.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},Ti.prototype.contains=function(t,e){e||(e=t);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ee(e,r.from())>=0&&ee(t,r.to())<=0)return n}return-1};var _i=function(t,e){this.anchor=t,this.head=e};function Si(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return ee(t.from(),e.from())})),n=U(e,i);for(var o=1;o<e.length;o++){var a=e[o],s=e[o-1],u=ee(s.to(),a.from());if(r&&!a.empty()?u>0:u>=0){var l=oe(s.from(),a.from()),c=ie(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,e.splice(--o,2,new _i(f?c:l,f?l:c))}}return new Ti(e,n)}function wi(t,e){return new Ti([new _i(t,e||t)],0)}function Ai(t){return t.text?te(t.from.line+t.text.length-1,W(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function Ni(t,e){if(ee(t,e.from)<0)return t;if(ee(t,e.to)<=0)return Ai(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=Ai(e).ch-e.to.ch),te(n,r)}function Ii(t,e){for(var n=[],r=0;r<t.sel.ranges.length;r++){var i=t.sel.ranges[r];n.push(new _i(Ni(i.anchor,e),Ni(i.head,e)))}return Si(t.cm,n,t.sel.primIndex)}function Ci(t,e,n){return t.line==e.line?te(n.line,t.ch-e.ch+n.ch):te(n.line+(t.line-e.line),t.ch)}function Li(t){t.doc.mode=Ft(t.options,t.doc.modeOption),Ri(t)}function Ri(t){t.doc.iter((function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)})),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,ri(t,100),t.state.modeGen++,t.curOp&&fr(t)}function Oi(t,e){return 0==e.from.ch&&0==e.to.ch&&""==W(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function ki(t,e,n,r){function i(t){return n?n[t]:null}function o(t,n,i){!function(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),Ie(t),Ce(t,n);var i=r?r(t):1;i!=t.height&&Qt(t,i)}(t,n,i,r),un(t,"change",t,e)}function a(t,e){for(var n=[],o=t;o<e;++o)n.push(new $e(l[o],i(o),r));return n}var s=e.from,u=e.to,l=e.text,c=$t(t,s.line),f=$t(t,u.line),d=W(l),h=i(l.length-1),p=u.line-s.line;if(e.full)t.insert(0,a(0,l.length)),t.remove(l.length,t.size-l.length);else if(Oi(t,e)){var v=a(0,l.length-1);o(f,f.text,h),p&&t.remove(s.line,p),v.length&&t.insert(s.line,v)}else if(c==f)if(1==l.length)o(c,c.text.slice(0,s.ch)+d+c.text.slice(u.ch),h);else{var b=a(1,l.length-1);b.push(new $e(d+c.text.slice(u.ch),h,r)),o(c,c.text.slice(0,s.ch)+l[0],i(0)),t.insert(s.line+1,b)}else if(1==l.length)o(c,c.text.slice(0,s.ch)+l[0]+f.text.slice(u.ch),i(0)),t.remove(s.line+1,p);else{o(c,c.text.slice(0,s.ch)+l[0],i(0)),o(f,d+f.text.slice(u.ch),h);var g=a(1,l.length-1);p>1&&t.remove(s.line+1,p-1),t.insert(s.line+1,g)}un(t,"change",t,e)}function Pi(t,e,n){!function t(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var u=o&&s.sharedHist;n&&!u||(e(s.doc,u),t(s.doc,r,u))}}}(t,null,!0)}function Di(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,ur(t),Li(t),Mi(t),t.options.lineWrapping||ze(t),t.options.mode=e.modeOption,fr(t)}function Mi(t){("rtl"==t.doc.direction?k:A)(t.display.lineDiv,"CodeMirror-rtl")}function ji(t){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t||1}function qi(t,e){var n={from:re(e.from),to:Ai(e),text:Yt(t,e.from,e.to)};return Bi(t,n,e.from.line,e.to.line+1),Pi(t,(function(t){return Bi(t,n,e.from.line,e.to.line+1)}),!0),n}function Fi(t){for(;t.length&&W(t).ranges;)t.pop()}function Ui(t,e,n,r){var i=t.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&i.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=function(t,e){return e?(Fi(t.done),W(t.done)):t.done.length&&!W(t.done).ranges?W(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),W(t.done)):void 0}(i,i.lastOp==r)))a=W(o.changes),0==ee(e.from,e.to)&&0==ee(e.from,a.to)?a.to=Ai(e):o.changes.push(qi(t,e));else{var u=W(i.done);for(u&&u.ranges||Gi(t.sel,i.done),o={changes:[qi(t,e)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,a||pt(t,"historyAdded")}function Gi(t,e){var n=W(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Bi(t,e,n,r){var i=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[o]=n.markedSpans),++o}))}function Vi(t){if(!t)return null;for(var e,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?e||(e=t.slice(0,n)):e&&e.push(t[n]);return e?e.length?e:null:t}function Hi(t,e){var n=function(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var r=[],i=0;i<e.text.length;++i)r.push(Vi(n[i]));return r}(t,e),r=Ae(t,e);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)t:for(var s=0;s<a.length;++s){for(var u=a[s],l=0;l<o.length;++l)if(o[l].marker==u.marker)continue t;o.push(u)}else a&&(n[i]=a)}return n}function zi(t,e,n){for(var r=[],i=0;i<t.length;++i){var o=t[i];if(o.ranges)r.push(n?Ti.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var u=0;u<a.length;++u){var l=a[u],c=void 0;if(s.push({from:l.from,to:l.to,text:l.text}),e)for(var f in l)(c=f.match(/^spans_(\d+)$/))&&U(e,Number(c[1]))>-1&&(W(s)[f]=l[f],delete l[f])}}}return r}function $i(t,e,n,r){if(r){var i=t.anchor;if(n){var o=ee(e,i)<0;o!=ee(n,i)<0?(i=e,e=n):o!=ee(e,n)<0&&(e=n)}return new _i(i,e)}return new _i(n||e,e)}function Yi(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),Zi(t,new Ti([$i(t.sel.primary(),e,n,i)],0),r)}function Wi(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),o=0;o<t.sel.ranges.length;o++)r[o]=$i(t.sel.ranges[o],e[o],null,i);Zi(t,Si(t.cm,r,t.sel.primIndex),n)}function Qi(t,e,n,r){var i=t.sel.ranges.slice(0);i[e]=n,Zi(t,Si(t.cm,i,t.sel.primIndex),r)}function Ki(t,e,n,r){Zi(t,wi(e,n),r)}function Xi(t,e,n){var r=t.history.done,i=W(r);i&&i.ranges?(r[r.length-1]=e,Ji(t,e,n)):Zi(t,e,n)}function Zi(t,e,n){Ji(t,e,n),function(t,e,n,r){var i=t.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,o,W(i.done),e))?i.done[i.done.length-1]=e:Gi(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Fi(i.undone)}(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function Ji(t,e,n){(gt(t,"beforeSelectionChange")||t.cm&&gt(t.cm,"beforeSelectionChange"))&&(e=function(t,e,n){var r={ranges:e.ranges,update:function(e){this.ranges=[];for(var n=0;n<e.length;n++)this.ranges[n]=new _i(se(t,e[n].anchor),se(t,e[n].head))},origin:n&&n.origin};return pt(t,"beforeSelectionChange",t,r),t.cm&&pt(t.cm,"beforeSelectionChange",t.cm,r),r.ranges!=e.ranges?Si(t.cm,r.ranges,r.ranges.length-1):e}(t,e,n));var r=n&&n.bias||(ee(e.primary().head,t.sel.primary().head)<0?-1:1);to(t,no(t,e,r,!0)),n&&!1===n.scroll||!t.cm||Rr(t.cm)}function to(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,bt(t.cm)),un(t,"cursorActivity",t))}function eo(t){to(t,no(t,t.sel,null,!1))}function no(t,e,n,r){for(var i,o=0;o<e.ranges.length;o++){var a=e.ranges[o],s=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[o],u=io(t,a.anchor,s&&s.anchor,n,r),l=io(t,a.head,s&&s.head,n,r);(i||u!=a.anchor||l!=a.head)&&(i||(i=e.ranges.slice(0,o)),i[o]=new _i(u,l))}return i?Si(t.cm,i,e.primIndex):e}function ro(t,e,n,r,i){var o=$t(t,e.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],u=s.marker,l="selectLeft"in u?!u.selectLeft:u.inclusiveLeft,c="selectRight"in u?!u.selectRight:u.inclusiveRight;if((null==s.from||(l?s.from<=e.ch:s.from<e.ch))&&(null==s.to||(c?s.to>=e.ch:s.to>e.ch))){if(i&&(pt(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var f=u.find(r<0?1:-1),d=void 0;if((r<0?c:l)&&(f=oo(t,f,-r,f&&f.line==e.line?o:null)),f&&f.line==e.line&&(d=ee(f,n))&&(r<0?d<0:d>0))return ro(t,f,e,r,i)}var h=u.find(r<0?-1:1);return(r<0?l:c)&&(h=oo(t,h,r,h.line==e.line?o:null)),h?ro(t,h,e,r,i):null}}return e}function io(t,e,n,r,i){var o=r||1;return ro(t,e,n,o,i)||!i&&ro(t,e,n,o,!0)||ro(t,e,n,-o,i)||!i&&ro(t,e,n,-o,!0)||(t.cantEdit=!0,te(t.first,0))}function oo(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?se(t,te(e.line-1)):null:n>0&&e.ch==(r||$t(t,e.line)).text.length?e.line<t.first+t.size-1?te(e.line+1,0):null:new te(e.line,e.ch+n)}function ao(t){t.setSelection(te(t.firstLine(),0),te(t.lastLine()),B)}function so(t,e,n){var r={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(e,n,i,o){e&&(r.from=se(t,e)),n&&(r.to=se(t,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),pt(t,"beforeChange",t,r),t.cm&&pt(t.cm,"beforeChange",t.cm,r),r.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function uo(t,e,n){if(t.cm){if(!t.cm.curOp)return ti(t.cm,uo)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(gt(t,"beforeChange")||t.cm&&gt(t.cm,"beforeChange"))||(e=so(t,e,!0))){var r=xe&&!n&&function(t,e,n){var r=null;if(t.iter(e.line,n.line+1,(function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var n=t.markedSpans[e].marker;!n.readOnly||r&&-1!=U(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:e,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),u=0;u<i.length;++u){var l=i[u];if(!(ee(l.to,s.from)<0||ee(l.from,s.to)>0)){var c=[u,1],f=ee(l.from,s.from),d=ee(l.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:l.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:l.to}),i.splice.apply(i,c),u+=c.length-3}}return i}(t,e.from,e.to);if(r)for(var i=r.length-1;i>=0;--i)lo(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else lo(t,e)}}function lo(t,e){if(1!=e.text.length||""!=e.text[0]||0!=ee(e.from,e.to)){var n=Ii(t,e);Ui(t,e,n,t.cm?t.cm.curOp.id:NaN),ho(t,e,n,Ae(t,e));var r=[];Pi(t,(function(t,n){n||-1!=U(r,t.history)||(go(t.history,e),r.push(t.history)),ho(t,e,null,Ae(t,e))}))}}function co(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,o=t.history,a=t.sel,s="undo"==e?o.done:o.undone,u="undo"==e?o.undone:o.done,l=0;l<s.length&&(i=s[l],n?!i.ranges||i.equals(t.sel):i.ranges);l++);if(l!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Gi(i,u),n&&!i.equals(t.sel))return void Zi(t,i,{clearRedo:!1});a=i}var c=[];Gi(a,u),u.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=gt(t,"beforeChange")||t.cm&&gt(t.cm,"beforeChange"),d=function(n){var r=i.changes[n];if(r.origin=e,f&&!so(t,r,!1))return s.length=0,{};c.push(qi(t,r));var o=n?Ii(t,r):W(s);ho(t,r,o,Hi(t,r)),!n&&t.cm&&t.cm.scrollIntoView({from:r.from,to:Ai(r)});var a=[];Pi(t,(function(t,e){e||-1!=U(a,t.history)||(go(t.history,r),a.push(t.history)),ho(t,r,null,Hi(t,r))}))},h=i.changes.length-1;h>=0;--h){var p=d(h);if(p)return p.v}}}}function fo(t,e){if(0!=e&&(t.first+=e,t.sel=new Ti(Q(t.sel.ranges,(function(t){return new _i(te(t.anchor.line+e,t.anchor.ch),te(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){fr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;r<n.viewTo;r++)dr(t.cm,r,"gutter")}}function ho(t,e,n,r){if(t.cm&&!t.cm.curOp)return ti(t.cm,ho)(t,e,n,r);if(e.to.line<t.first)fo(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var i=e.text.length-1-(t.first-e.from.line);fo(t,i),e={from:te(t.first,0),to:te(e.to.line+i,e.to.ch),text:[W(e.text)],origin:e.origin}}var o=t.lastLine();e.to.line>o&&(e={from:e.from,to:te(o,$t(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Yt(t,e.from,e.to),n||(n=Ii(t,e)),t.cm?function(t,e,n){var r=t.doc,i=t.display,o=e.from,a=e.to,s=!1,u=o.line;t.options.lineWrapping||(u=Kt(qe($t(r,o.line))),r.iter(u,a.line+1,(function(t){if(t==i.maxLine)return s=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&bt(t),ki(r,e,n,sr(t)),t.options.lineWrapping||(r.iter(u,o.line+e.text.length,(function(t){var e=He(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var n=t.first,r=e-1;r>n;r--){var i=$t(t,r).stateAfter;if(i&&(!(i instanceof le)||r+i.lookAhead<e)){n=r+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}(r,o.line),ri(t,400);var l=e.text.length-(a.line-o.line)-1;e.full?fr(t):o.line!=a.line||1!=e.text.length||Oi(t.doc,e)?fr(t,o.line,a.line+1,l):dr(t,o.line,"text");var c=gt(t,"changes"),f=gt(t,"change");if(f||c){var d={from:o,to:a,text:e.text,removed:e.removed,origin:e.origin};f&&un(t,"change",t,d),c&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(d)}t.display.selForContextMenu=null}(t.cm,e,r):ki(t,e,r),Ji(t,n,B),t.cantEdit&&io(t,te(t.firstLine(),0))&&(t.cantEdit=!1)}}function po(t,e,n,r,i){var o;r||(r=n),ee(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof e&&(e=t.splitLines(e)),uo(t,{from:n,to:r,text:e,origin:i})}function vo(t,e,n,r){n<t.line?t.line+=r:e<t.line&&(t.line=e,t.ch=0)}function bo(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i],a=!0;if(o.ranges){o.copied||((o=t[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)vo(o.ranges[s].anchor,e,n,r),vo(o.ranges[s].head,e,n,r)}else{for(var u=0;u<o.changes.length;++u){var l=o.changes[u];if(n<l.from.line)l.from=te(l.from.line+r,l.from.ch),l.to=te(l.to.line+r,l.to.ch);else if(e<=l.to.line){a=!1;break}}a||(t.splice(0,i+1),i=0)}}}function go(t,e){var n=e.from.line,r=e.to.line,i=e.text.length-(r-n)-1;bo(t.done,n,r,i),bo(t.undone,n,r,i)}function mo(t,e,n,r){var i=e,o=e;return"number"==typeof e?o=$t(t,ae(t,e)):i=Kt(e),null==i?null:(r(o,i)&&t.cm&&dr(t.cm,i,n),o)}function yo(t){this.lines=t,this.parent=null;for(var e=0,n=0;n<t.length;++n)t[n].parent=this,e+=t[n].height;this.height=e}function Eo(t){this.children=t;for(var e=0,n=0,r=0;r<t.length;++r){var i=t[r];e+=i.chunkSize(),n+=i.height,i.parent=this}this.size=e,this.height=n,this.parent=null}_i.prototype.from=function(){return oe(this.anchor,this.head)},_i.prototype.to=function(){return ie(this.anchor,this.head)},_i.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},yo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=t,r=t+e;n<r;++n){var i=this.lines[n];this.height-=i.height,Ye(i),un(i,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var r=0;r<e.length;++r)e[r].parent=this},iterN:function(t,e,n){for(var r=t+e;t<r;++t)if(n(this.lines[t]))return!0}},Eo.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(t<i){var o=Math.min(e,i-t),a=r.height;if(r.removeInner(t,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(e-=o))break;t=0}else t-=i}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof yo))){var s=[];this.collapse(s),this.children=[new yo(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,n){this.size+=e.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(t<=o){if(i.insertInner(t,e,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var u=new yo(i.lines.slice(s,s+=25));i.height-=u.height,this.children.splice(++r,0,u),u.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}t-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=new Eo(t.children.splice(t.children.length-5,5));if(t.parent){t.size-=e.size,t.height-=e.height;var n=U(t.parent.children,t);t.parent.children.splice(n+1,0,e)}else{var r=new Eo(t.children);r.parent=t,t.children=[r,e],t=r}e.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(t<o){var a=Math.min(e,o-t);if(i.iterN(t,a,n))return!0;if(0==(e-=a))break;t=0}else t-=o}}};var xo=function(t,e,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=t,this.node=e};function To(t,e,n){Ve(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Lr(t,n)}xo.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,n=this.line,r=Kt(n);if(null!=r&&e){for(var i=0;i<e.length;++i)e[i]==this&&e.splice(i--,1);e.length||(n.widgets=null);var o=xn(this);Qt(n,Math.max(0,n.height-o)),t&&(Jr(t,(function(){To(t,n,-o),dr(t,r,"widget")})),un(t,"lineWidgetCleared",t,this,r))}},xo.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=xn(this)-e;i&&(Ge(this.doc,r)||Qt(r,r.height+i),n&&Jr(n,(function(){n.curOp.forceUpdate=!0,To(n,r,i),un(n,"lineWidgetChanged",n,t,Kt(r))})))},mt(xo);var _o=0,So=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++_o};function wo(t,e,n,r,i){if(r&&r.shared)return function(t,e,n,r,i){(r=j(r)).shared=!1;var o=[wo(t,e,n,r,i)],a=o[0],s=r.widgetNode;return Pi(t,(function(t){s&&(r.widgetNode=s.cloneNode(!0)),o.push(wo(t,se(t,e),se(t,n),r,i));for(var u=0;u<t.linked.length;++u)if(t.linked[u].isParent)return;a=W(o)})),new Ao(o,a)}(t,e,n,r,i);if(t.cm&&!t.cm.curOp)return ti(t.cm,wo)(t,e,n,r,i);var o=new So(t,i),a=ee(e,n);if(r&&j(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=L("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(je(t,e.line,e,n,o)||e.line!=n.line&&je(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Te=!0}o.addToHistory&&Ui(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,u=e.line,l=t.cm;if(t.iter(u,n.line+1,(function(t){l&&o.collapsed&&!l.options.lineWrapping&&qe(t)==l.display.maxLine&&(s=!0),o.collapsed&&u!=e.line&&Qt(t,0),function(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}(t,new _e(o,u==e.line?e.ch:null,u==n.line?n.ch:null)),++u})),o.collapsed&&t.iter(e.line,n.line+1,(function(e){Ge(t,e)&&Qt(e,0)})),o.clearOnEnter&&ft(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(xe=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++_o,o.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),o.collapsed)fr(l,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=e.line;c<=n.line;c++)dr(l,c,"text");o.atomic&&eo(l.doc),un(l,"markerAdded",l,o)}return o}So.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&$r(t),gt(this,"clear")){var n=this.find();n&&un(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Se(a.markedSpans,this);t&&!this.collapsed?dr(t,Kt(a),"text"):t&&(null!=s.to&&(i=Kt(a)),null!=s.from&&(r=Kt(a))),a.markedSpans=we(a.markedSpans,s),null==s.from&&this.collapsed&&!Ge(this.doc,a)&&t&&Qt(a,rr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var u=0;u<this.lines.length;++u){var l=qe(this.lines[u]),c=He(l);c>t.display.maxLineLength&&(t.display.maxLine=l,t.display.maxLineLength=c,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&fr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&eo(t.doc)),t&&un(t,"markerCleared",t,this,r,i),e&&Yr(t),this.parent&&this.parent.clear()}},So.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Se(o.markedSpans,this);if(null!=a.from&&(n=te(e?o:Kt(o),a.from),-1==t))return n;if(null!=a.to&&(r=te(e?o:Kt(o),a.to),1==t))return r}return n&&{from:n,to:r}},So.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,r=this.doc.cm;e&&r&&Jr(r,(function(){var i=e.line,o=Kt(e.line),a=Rn(r,o);if(a&&(qn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ge(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var u=xn(n)-s;u&&Qt(i,i.height+u)}un(r,"markerChanged",r,t)}))},So.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=U(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},So.prototype.detachLine=function(t){if(this.lines.splice(U(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},mt(So);var Ao=function(t,e){this.markers=t,this.primary=e;for(var n=0;n<t.length;++n)t[n].parent=this};function No(t){return t.findMarks(te(t.first,0),t.clipPos(te(t.lastLine())),(function(t){return t.parent}))}function Io(t){for(var e=function(e){var n=t[e],r=[n.primary.doc];Pi(n.primary.doc,(function(t){return r.push(t)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==U(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<t.length;n++)e(n)}Ao.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();un(this,"clear")}},Ao.prototype.find=function(t,e){return this.primary.find(t,e)},mt(Ao);var Co=0,Lo=function(t,e,n,r,i){if(!(this instanceof Lo))return new Lo(t,e,n,r,i);null==n&&(n=0),Eo.call(this,[new yo([new $e("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=te(n,0);this.sel=wi(o),this.history=new ji(null),this.id=++Co,this.modeOption=e,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),ki(this,{from:o,to:o,text:t}),Zi(this,wi(o),B)};Lo.prototype=X(Eo.prototype,{constructor:Lo,iter:function(t,e,n){n?this.iterN(t-this.first,e-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var n=0,r=0;r<e.length;++r)n+=e[r].height;this.insertInner(t-this.first,e,n)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=Wt(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:ni((function(t){var e=te(this.first,0),n=this.first+this.size-1;uo(this,{from:e,to:te(n,$t(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Or(this.cm,0,0),Zi(this,wi(e),B)})),replaceRange:function(t,e,n,r){po(this,t,e=se(this,e),n=n?se(this,n):e,r)},getRange:function(t,e,n){var r=Yt(this,se(this,t),se(this,e));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(Zt(this,t))return $t(this,t)},getLineNumber:function(t){return Kt(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=$t(this,t)),qe(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return se(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ni((function(t,e,n){Ki(this,se(this,"number"==typeof t?te(t,e||0):t),null,n)})),setSelection:ni((function(t,e,n){Ki(this,se(this,t),se(this,e||t),n)})),extendSelection:ni((function(t,e,n){Yi(this,se(this,t),e&&se(this,e),n)})),extendSelections:ni((function(t,e){Wi(this,ue(this,t),e)})),extendSelectionsBy:ni((function(t,e){Wi(this,ue(this,Q(this.sel.ranges,t)),e)})),setSelections:ni((function(t,e,n){if(t.length){for(var r=[],i=0;i<t.length;i++)r[i]=new _i(se(this,t[i].anchor),se(this,t[i].head));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),Zi(this,Si(this.cm,r,e),n)}})),addSelection:ni((function(t,e,n){var r=this.sel.ranges.slice(0);r.push(new _i(se(this,t),se(this,e||t))),Zi(this,Si(this.cm,r,r.length-1),n)})),getSelection:function(t){for(var e,n=this.sel.ranges,r=0;r<n.length;r++){var i=Yt(this,n[r].from(),n[r].to());e=e?e.concat(i):i}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Yt(this,n[r].from(),n[r].to());!1!==t&&(i=i.join(t||this.lineSeparator())),e[r]=i}return e},replaceSelection:function(t,e,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=t;this.replaceSelections(r,e,n||"+input")},replaceSelections:ni((function(t,e,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(t[o]),origin:n}}for(var s=e&&"end"!=e&&function(t,e,n){for(var r=[],i=te(t.first,0),o=i,a=0;a<e.length;a++){var s=e[a],u=Ci(s.from,i,o),l=Ci(Ai(s),i,o);if(i=s.to,o=l,"around"==n){var c=t.sel.ranges[a],f=ee(c.head,c.anchor)<0;r[a]=new _i(f?l:u,f?u:l)}else r[a]=new _i(u,u)}return new Ti(r,t.sel.primIndex)}(this,r,e),u=r.length-1;u>=0;u--)uo(this,r[u]);s?Xi(this,s):this.cm&&Rr(this.cm)})),undo:ni((function(){co(this,"undo")})),redo:ni((function(){co(this,"redo")})),undoSelection:ni((function(){co(this,"undo",!0)})),redoSelection:ni((function(){co(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r<t.done.length;r++)t.done[r].ranges||++e;for(var i=0;i<t.undone.length;i++)t.undone[i].ranges||++n;return{undo:e,redo:n}},clearHistory:function(){var t=this;this.history=new ji(this.history.maxGeneration),Pi(this,(function(e){return e.history=t.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:zi(this.history.done),undone:zi(this.history.undone)}},setHistory:function(t){var e=this.history=new ji(this.history.maxGeneration);e.done=zi(t.done.slice(0),null,!0),e.undone=zi(t.undone.slice(0),null,!0)},setGutterMarker:ni((function(t,e,n){return mo(this,t,"gutter",(function(t){var r=t.gutterMarkers||(t.gutterMarkers={});return r[e]=n,!n&&et(r)&&(t.gutterMarkers=null),!0}))})),clearGutter:ni((function(t){var e=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[t]&&mo(e,n,"gutter",(function(){return n.gutterMarkers[t]=null,et(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(t){var e;if("number"==typeof t){if(!Zt(this,t))return null;if(e=t,!(t=$t(this,t)))return null}else if(null==(e=Kt(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:ni((function(t,e,n){return mo(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass";if(t[r]){if(S(n).test(t[r]))return!1;t[r]+=" "+n}else t[r]=n;return!0}))})),removeLineClass:ni((function(t,e,n){return mo(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass",i=t[r];if(!i)return!1;if(null==n)t[r]=null;else{var o=i.match(S(n));if(!o)return!1;var a=o.index+o[0].length;t[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:ni((function(t,e,n){return function(t,e,n,r){var i=new xo(t,n,r),o=t.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),mo(t,e,"widget",(function(e){var n=e.widgets||(e.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=e,o&&!Ge(t,e)){var r=Ve(e)<t.scrollTop;Qt(e,e.height+xn(i)),r&&Lr(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&un(o,"lineWidgetAdded",o,i,"number"==typeof e?e:Kt(e)),i}(this,t,e,n)})),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return wo(this,se(this,t),se(this,e),n,n&&n.type||"range")},setBookmark:function(t,e){var n={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return wo(this,t=se(this,t),t,n,"bookmark")},findMarksAt:function(t){var e=[],n=$t(this,(t=se(this,t)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=t.ch)&&(null==i.to||i.to>=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=se(this,t),e=se(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var u=a[s];null!=u.to&&i==t.line&&t.ch>=u.to||null==u.from&&i!=t.line||null!=u.from&&i==e.line&&u.from>=e.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&t.push(n[r].marker)})),t},posFromIndex:function(t){var e,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>t)return e=t,!0;t-=o,++n})),se(this,te(n,e))},indexFromPos:function(t){var e=(t=se(this,t)).ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,(function(t){e+=t.text.length+n})),e},copy:function(t){var e=new Lo(Wt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,n=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<n&&(n=t.to);var r=new Lo(Wt(this,e,n),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:t.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n],i=r.find(),o=t.clipPos(i.from),a=t.clipPos(i.to);if(ee(o,a)){var s=wo(t,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,No(this)),r},unlinkDoc:function(t){if(t instanceof wa&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e)if(this.linked[e].doc==t){this.linked.splice(e,1),t.unlinkDoc(this),Io(No(this));break}if(t.history==this.history){var n=[t.id];Pi(t,(function(t){return n.push(t.id)}),!0),t.history=new ji(null),t.history.done=zi(this.history.done,n),t.history.undone=zi(this.history.undone,n)}},iterLinkedDocs:function(t){Pi(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Rt(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ni((function(t){var e;"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter((function(t){return t.order=null})),this.cm&&Jr(e=this.cm,(function(){Mi(e),fr(e)})))}))}),Lo.prototype.eachLine=Lo.prototype.iter;var Ro=0;function Oo(t){var e=this;if(ko(e),!vt(e,t)&&!Tn(e.display,t)){yt(t),a&&(Ro=+new Date);var n=lr(e,t,!0),r=t.dataTransfer.files;if(n&&!e.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,u=function(){++s==i&&ti(e,(function(){var t={from:n=se(e.doc,n),to:n,text:e.doc.splitLines(o.filter((function(t){return null!=t})).join(e.doc.lineSeparator())),origin:"paste"};uo(e.doc,t),Xi(e.doc,wi(se(e.doc,n),se(e.doc,Ai(t))))}))()},l=function(t,n){if(e.options.allowDropFileTypes&&-1==U(e.options.allowDropFileTypes,t.type))u();else{var r=new FileReader;r.onerror=function(){return u()},r.onload=function(){var t=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(t)||(o[n]=t),u()},r.readAsText(t)}},c=0;c<r.length;c++)l(r[c],c);else{if(e.state.draggingText&&e.doc.sel.contains(n)>-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var f=t.dataTransfer.getData("Text");if(f){var d;if(e.state.draggingText&&!e.state.draggingText.copy&&(d=e.listSelections()),Ji(e.doc,wi(n,n)),d)for(var h=0;h<d.length;++h)po(e.doc,"",d[h].anchor,d[h].head,"drag");e.replaceSelection(f,"around","paste"),e.display.input.focus()}}catch(t){}}}}function ko(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Po(t){if(document.getElementsByClassName){for(var e=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<e.length;r++){var i=e[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var e=0;e<n.length;e++)t(n[e])}))}}var Do=!1;function Mo(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var jo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},qo=0;qo<10;qo++)jo[qo+48]=jo[qo+96]=String(qo);for(var Fo=65;Fo<=90;Fo++)jo[Fo]=String.fromCharCode(Fo);for(var Uo=1;Uo<=12;Uo++)jo[Uo+111]=jo[Uo+63235]="F"+Uo;var Go={};function Bo(t){var e,n,r,i,o=t.split(/-(?!$)/);t=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))e=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return e&&(t="Alt-"+t),n&&(t="Ctrl-"+t),i&&(t="Cmd-"+t),r&&(t="Shift-"+t),t}function Vo(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete t[n];continue}for(var i=Q(n.split(" "),Bo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var u=e[s];if(u){if(u!=a)throw new Error("Inconsistent bindings for "+s)}else e[s]=a}delete t[n]}for(var l in e)t[l]=e[l];return t}function Ho(t,e,n,r){var i=(e=Wo(e)).call?e.call(t,r):e[t];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return Ho(t,e.fallthrough,n,r);for(var o=0;o<e.fallthrough.length;o++){var a=Ho(t,e.fallthrough[o],n,r);if(a)return a}}}function zo(t){var e="string"==typeof t?t:jo[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function $o(t,e,n){var r=t;return e.altKey&&"Alt"!=r&&(t="Alt-"+t),(T?e.metaKey:e.ctrlKey)&&"Ctrl"!=r&&(t="Ctrl-"+t),(T?e.ctrlKey:e.metaKey)&&"Cmd"!=r&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=r&&(t="Shift-"+t),t}function Yo(t,e){if(f&&34==t.keyCode&&t.char)return!1;var n=jo[t.keyCode];return null!=n&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(n=t.code),$o(n,t,e))}function Wo(t){return"string"==typeof t?Go[t]:t}function Qo(t,e){for(var n=t.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=e(n[i]);r.length&&ee(o.from,W(r).to)<=0;){var a=r.pop();if(ee(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Jr(t,(function(){for(var e=r.length-1;e>=0;e--)po(t.doc,"",r[e].from,r[e].to,"+delete");Rr(t)}))}function Ko(t,e,n){var r=it(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Xo(t,e,n){var r=Ko(t,e.ch,n);return null==r?null:new te(e.line,r,n<0?"after":"before")}function Zo(t,e,n,r,i){if(t){"rtl"==e.doc.direction&&(i=-i);var o=lt(n,e.doc.direction);if(o){var a,s=i<0?W(o):o[0],u=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var l=On(e,n),c=kn(e,l,a=i<0?n.text.length-1:0).top;a=ot((function(t){return kn(e,l,t).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==u&&(a=Ko(n,a,1))}else a=i<0?s.to:s.from;return new te(r,a,u)}}return new te(r,i<0?n.text.length:0,i<0?"before":"after")}Go.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Go.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Go.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Go.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Go.default=m?Go.macDefault:Go.pcDefault;var Jo={selectAll:ao,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),B)},killLine:function(t){return Qo(t,(function(e){if(e.empty()){var n=$t(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:te(e.head.line+1,0)}:{from:e.head,to:te(e.head.line,n)}}return{from:e.from(),to:e.to()}}))},deleteLine:function(t){return Qo(t,(function(e){return{from:te(e.from().line,0),to:se(t.doc,te(e.to().line+1,0))}}))},delLineLeft:function(t){return Qo(t,(function(t){return{from:te(t.from().line,0),to:t.from()}}))},delWrappedLineLeft:function(t){return Qo(t,(function(e){var n=t.charCoords(e.head,"div").top+5;return{from:t.coordsChar({left:0,top:n},"div"),to:e.from()}}))},delWrappedLineRight:function(t){return Qo(t,(function(e){var n=t.charCoords(e.head,"div").top+5,r=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:e.from(),to:r}}))},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(te(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(te(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy((function(e){return ta(t,e.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy((function(e){return ea(t,e.head)}),{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy((function(e){return function(t,e){var n=$t(t.doc,e),r=function(t){for(var e;e=De(t);)t=e.find(1,!0).line;return t}(n);return r!=n&&(e=Kt(r)),Zo(!0,t,n,e,-1)}(t,e.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")}),H)},goLineLeft:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")}),H)},goLineLeftSmart:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5,r=t.coordsChar({left:0,top:n},"div");return r.ch<t.getLine(r.line).search(/\S/)?ea(t,e.head):r}),H)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"char")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],n=t.listSelections(),r=t.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=q(t.getLine(o.line),o.ch,r);e.push(Y(r-a%r))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Jr(t,(function(){for(var e=t.listSelections(),n=[],r=0;r<e.length;r++)if(e[r].empty()){var i=e[r].head,o=$t(t.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new te(i.line,i.ch-1)),i.ch>0)i=new te(i.line,i.ch+1),t.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),te(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var a=$t(t.doc,i.line-1).text;a&&(i=new te(i.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+a.charAt(a.length-1),te(i.line-1,a.length-1),i,"+transpose"))}n.push(new _i(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return Jr(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r<e.length;r++)t.indentLine(e[r].from().line,null,!0);Rr(t)}))},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function ta(t,e){var n=$t(t.doc,e),r=qe(n);return r!=n&&(e=Kt(r)),Zo(!0,t,r,e,1)}function ea(t,e){var n=ta(t,e.line),r=$t(t.doc,n.line),i=lt(r,t.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/));return te(n.line,e.line==n.line&&e.ch<=o&&e.ch?0:o,n.sticky)}return n}function na(t,e,n){if("string"==typeof e&&!(e=Jo[e]))return!1;t.display.input.ensurePolled();var r=t.display.shift,i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),i=e(t)!=G}finally{t.display.shift=r,t.state.suppressEdits=!1}return i}var ra=new F;function ia(t,e,n,r){var i=t.state.keySeq;if(i){if(zo(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:ra.set(50,(function(){t.state.keySeq==i&&(t.state.keySeq=null,t.display.input.reset())})),oa(t,i+" "+e,n,r))return!0}return oa(t,e,n,r)}function oa(t,e,n,r){var i=function(t,e,n){for(var r=0;r<t.state.keyMaps.length;r++){var i=Ho(e,t.state.keyMaps[r],n,t);if(i)return i}return t.options.extraKeys&&Ho(e,t.options.extraKeys,n,t)||Ho(e,t.options.keyMap,n,t)}(t,e,r);return"multi"==i&&(t.state.keySeq=e),"handled"==i&&un(t,"keyHandled",t,e,n),"handled"!=i&&"multi"!=i||(yt(n),xr(t)),!!i}function aa(t,e){var n=Yo(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?ia(t,"Shift-"+n,e,(function(e){return na(t,e,!0)}))||ia(t,n,e,(function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return na(t,e)})):ia(t,n,e,(function(e){return na(t,e)})))}var sa=null;function ua(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||(e.curOp.focus=O(),vt(e,t)))){a&&s<11&&27==t.keyCode&&(t.returnValue=!1);var r=t.keyCode;e.display.shift=16==r||t.shiftKey;var i=aa(e,t);f&&(sa=i?r:null,i||88!=r||kt||!(m?t.metaKey:t.ctrlKey)||e.replaceSelection("",null,"cut")),n&&!m&&!i&&46==r&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||function(t){var e=t.display.lineDiv;function n(t){18!=t.keyCode&&t.altKey||(A(e,"CodeMirror-crosshair"),ht(document,"keyup",n),ht(document,"mouseover",n))}k(e,"CodeMirror-crosshair"),ft(document,"keyup",n),ft(document,"mouseover",n)}(e)}}function la(t){16==t.keyCode&&(this.doc.sel.shift=!1),vt(this,t)}function ca(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||Tn(e.display,t)||vt(e,t)||t.ctrlKey&&!t.altKey||m&&t.metaKey)){var n=t.keyCode,r=t.charCode;if(f&&n==sa)return sa=null,void yt(t);if(!f||t.which&&!(t.which<10)||!aa(e,t)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(t,e,n){return ia(t,"'"+n+"'",e,(function(e){return na(t,e,!0)}))}(e,t,i)||e.display.input.onKeyPress(t))}}}var fa,da,ha=function(t,e,n){this.time=t,this.pos=e,this.button=n};function pa(t){var e=this,n=e.display;if(!(vt(e,t)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=t.shiftKey,Tn(n,t))u||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!ga(e,t)){var r=lr(e,t),i=St(t),o=r?function(t,e){var n=+new Date;return da&&da.compare(n,t,e)?(fa=da=null,"triple"):fa&&fa.compare(n,t,e)?(da=new ha(n,t,e),fa=null,"double"):(fa=new ha(n,t,e),da=null,"single")}(r,i):"single";window.focus(),1==i&&e.state.selectingText&&e.state.selectingText(t),r&&function(t,e,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),ia(t,$o(o=(1==e?"Left":2==e?"Middle":"Right")+o,i),i,(function(e){if("string"==typeof e&&(e=Jo[e]),!e)return!1;var r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),r=e(t,n)!=G}finally{t.state.suppressEdits=!1}return r}))}(e,i,r,o,t)||(1==i?r?function(t,e,n,r){a?setTimeout(M(Tr,t),0):t.curOp.focus=O();var i,o=function(t,e,n){var r=t.getOption("configureMouse"),i=r?r(t,e,n):{};return null==i.unit&&(i.unit=(y?n.shiftKey&&n.metaKey:n.altKey)?"rectangle":"single"==e?"char":"double"==e?"word":"line"),(null==i.extend||t.doc.extend)&&(i.extend=t.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=m?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(m?n.altKey:n.ctrlKey)),i}(t,n,r),l=t.doc.sel;t.options.dragDrop&&Nt&&!t.isReadOnly()&&"single"==n&&(i=l.contains(e))>-1&&(ee((i=l.ranges[i]).from(),e)<0||e.xRel>0)&&(ee(i.to(),e)>0||e.xRel<0)?function(t,e,n,r){var i=t.display,o=!1,l=ti(t,(function(e){u&&(i.scroller.draggable=!1),t.state.draggingText=!1,ht(i.wrapper.ownerDocument,"mouseup",l),ht(i.wrapper.ownerDocument,"mousemove",c),ht(i.scroller,"dragstart",f),ht(i.scroller,"drop",l),o||(yt(e),r.addNew||Yi(t.doc,n,null,null,r.extend),u&&!d||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},f=function(){return o=!0};u&&(i.scroller.draggable=!0),t.state.draggingText=l,l.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),ft(i.wrapper.ownerDocument,"mouseup",l),ft(i.wrapper.ownerDocument,"mousemove",c),ft(i.scroller,"dragstart",f),ft(i.scroller,"drop",l),_r(t),setTimeout((function(){return i.input.focus()}),20)}(t,r,e,o):function(t,e,n,r){var i=t.display,o=t.doc;yt(e);var a,s,u=o.sel,l=u.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?l[s]:new _i(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new _i(n,n)),n=lr(t,e,!0,!0),s=-1;else{var c=va(t,n,r.unit);a=r.extend?$i(a,c.anchor,c.head,r.extend):c}r.addNew?-1==s?(s=l.length,Zi(o,Si(t,l.concat([a]),s),{scroll:!1,origin:"*mouse"})):l.length>1&&l[s].empty()&&"char"==r.unit&&!r.extend?(Zi(o,Si(t,l.slice(0,s).concat(l.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Qi(o,s,a,V):(s=0,Zi(o,new Ti([a],0),V),u=o.sel);var f=n;function d(e){if(0!=ee(f,e))if(f=e,"rectangle"==r.unit){for(var i=[],l=t.options.tabSize,c=q($t(o,n.line).text,n.ch,l),d=q($t(o,e.line).text,e.ch,l),h=Math.min(c,d),p=Math.max(c,d),v=Math.min(n.line,e.line),b=Math.min(t.lastLine(),Math.max(n.line,e.line));v<=b;v++){var g=$t(o,v).text,m=z(g,h,l);h==p?i.push(new _i(te(v,m),te(v,m))):g.length>m&&i.push(new _i(te(v,m),te(v,z(g,p,l))))}i.length||i.push(new _i(n,n)),Zi(o,Si(t,u.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var y,E=a,x=va(t,e,r.unit),T=E.anchor;ee(x.anchor,T)>0?(y=x.head,T=oe(E.from(),x.anchor)):(y=x.anchor,T=ie(E.to(),x.head));var _=u.ranges.slice(0);_[s]=function(t,e){var n=e.anchor,r=e.head,i=$t(t.doc,n.line);if(0==ee(n,r)&&n.sticky==r.sticky)return e;var o=lt(i);if(!o)return e;var a=st(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return e;var u,l=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==o.length)return e;if(r.line!=n.line)u=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var c=st(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==s.level?-1:1);u=c==l-1||c==l?f<0:f>0}var d=o[l+(u?-1:0)],h=u==(1==d.level),p=h?d.from:d.to,v=h?"after":"before";return n.ch==p&&n.sticky==v?e:new _i(new te(n.line,p,v),r)}(t,new _i(se(o,T),y)),Zi(o,Si(t,_,s),V)}}var h=i.wrapper.getBoundingClientRect(),p=0;function v(e){t.state.selectingText=!1,p=1/0,e&&(yt(e),i.input.focus()),ht(i.wrapper.ownerDocument,"mousemove",b),ht(i.wrapper.ownerDocument,"mouseup",g),o.history.lastSelOrigin=null}var b=ti(t,(function(e){0!==e.buttons&&St(e)?function e(n){var a=++p,s=lr(t,n,!0,"rectangle"==r.unit);if(s)if(0!=ee(s,f)){t.curOp.focus=O(),d(s);var u=Ir(i,o);(s.line>=u.to||s.line<u.from)&&setTimeout(ti(t,(function(){p==a&&e(n)})),150)}else{var l=n.clientY<h.top?-20:n.clientY>h.bottom?20:0;l&&setTimeout(ti(t,(function(){p==a&&(i.scroller.scrollTop+=l,e(n))})),50)}}(e):v(e)})),g=ti(t,v);t.state.selectingText=g,ft(i.wrapper.ownerDocument,"mousemove",b),ft(i.wrapper.ownerDocument,"mouseup",g)}(t,r,e,o)}(e,r,o,t):_t(t)==n.scroller&&yt(t):2==i?(r&&Yi(e.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(_?e.display.input.onContextMenu(t):_r(e)))}}function va(t,e,n){if("char"==n)return new _i(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new _i(te(e.line,0),se(t.doc,te(e.line+1,0)));var r=n(t,e);return new _i(r.from,r.to)}function ba(t,e,n,r){var i,o;if(e.touches)i=e.touches[0].clientX,o=e.touches[0].clientY;else try{i=e.clientX,o=e.clientY}catch(t){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&yt(e);var a=t.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!gt(t,n))return xt(e);o-=s.top-a.viewOffset;for(var u=0;u<t.display.gutterSpecs.length;++u){var l=a.gutters.childNodes[u];if(l&&l.getBoundingClientRect().right>=i)return pt(t,n,t,Xt(t.doc,o),t.display.gutterSpecs[u].className,e),xt(e)}}function ga(t,e){return ba(t,e,"gutterClick",!0)}function ma(t,e){Tn(t.display,e)||function(t,e){return!!gt(t,"gutterContextMenu")&&ba(t,e,"gutterContextMenu",!1)}(t,e)||vt(t,e,"contextmenu")||_||t.display.input.onContextMenu(e)}function ya(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Un(t)}ha.prototype.compare=function(t,e,n){return this.time+400>t&&0==ee(e,this.pos)&&n==this.button};var Ea={toString:function(){return"CodeMirror.Init"}},xa={},Ta={};function _a(t,e,n){if(!e!=!(n&&n!=Ea)){var r=t.display.dragFunctions,i=e?ft:ht;i(t.display.scroller,"dragstart",r.start),i(t.display.scroller,"dragenter",r.enter),i(t.display.scroller,"dragover",r.over),i(t.display.scroller,"dragleave",r.leave),i(t.display.scroller,"drop",r.drop)}}function Sa(t){t.options.lineWrapping?(k(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(A(t.display.wrapper,"CodeMirror-wrap"),ze(t)),ur(t),fr(t),Un(t),setTimeout((function(){return Gr(t)}),100)}function wa(t,e){var n=this;if(!(this instanceof wa))return new wa(t,e);this.options=e=e?j(e):{},j(xa,e,!1);var r=e.value;"string"==typeof r?r=new Lo(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new wa.inputStyles[e.inputStyle](this),o=this.display=new bi(t,r,i,e);for(var l in o.wrapper.CodeMirror=this,ya(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Hr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new F,keySeq:null,specialChars:null},e.autofocus&&!g&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(t){var e=t.display;ft(e.scroller,"mousedown",ti(t,pa)),ft(e.scroller,"dblclick",a&&s<11?ti(t,(function(e){if(!vt(t,e)){var n=lr(t,e);if(n&&!ga(t,e)&&!Tn(t.display,e)){yt(e);var r=t.findWordAt(n);Yi(t.doc,r.anchor,r.head)}}})):function(e){return vt(t,e)||yt(e)}),ft(e.scroller,"contextmenu",(function(e){return ma(t,e)})),ft(e.input.getField(),"contextmenu",(function(n){e.scroller.contains(n.target)||ma(t,n)}));var n,r={end:0};function i(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),(r=e.activeTouch).end=+new Date)}function o(t,e){if(null==e.left)return!0;var n=e.left-t.left,r=e.top-t.top;return n*n+r*r>400}ft(e.scroller,"touchstart",(function(i){if(!vt(t,i)&&!function(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}(i)&&!ga(t,i)){e.input.ensurePolled(),clearTimeout(n);var o=+new Date;e.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),ft(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),ft(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!Tn(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=t.coordsChar(e.activeTouch,"page");a=!r.prev||o(r,r.prev)?new _i(s,s):!r.prev.prev||o(r,r.prev.prev)?t.findWordAt(s):new _i(te(s.line,0),se(t.doc,te(s.line+1,0))),t.setSelection(a.anchor,a.head),t.focus(),yt(n)}i()})),ft(e.scroller,"touchcancel",i),ft(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(Dr(t,e.scroller.scrollTop),jr(t,e.scroller.scrollLeft,!0),pt(t,"scroll",t))})),ft(e.scroller,"mousewheel",(function(e){return xi(t,e)})),ft(e.scroller,"DOMMouseScroll",(function(e){return xi(t,e)})),ft(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){vt(t,e)||Tt(e)},over:function(e){vt(t,e)||(function(t,e){var n=lr(t,e);if(n){var r=document.createDocumentFragment();mr(t,n,r),t.display.dragCursor||(t.display.dragCursor=C("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),I(t.display.dragCursor,r)}}(t,e),Tt(e))},start:function(e){return function(t,e){if(a&&(!t.state.draggingText||+new Date-Ro<100))Tt(e);else if(!vt(t,e)&&!Tn(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!d)){var n=C("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(t,e)},drop:ti(t,Oo),leave:function(e){vt(t,e)||ko(t)}};var u=e.input.getField();ft(u,"keyup",(function(e){return la.call(t,e)})),ft(u,"keydown",ti(t,ua)),ft(u,"keypress",ti(t,ca)),ft(u,"focus",(function(e){return Sr(t,e)})),ft(u,"blur",(function(e){return wr(t,e)}))}(this),function(){var t;Do||(ft(window,"resize",(function(){null==t&&(t=setTimeout((function(){t=null,Po(Mo)}),100))})),ft(window,"blur",(function(){return Po(wr)})),Do=!0)}(),$r(this),this.curOp.forceUpdate=!0,Di(this,r),e.autofocus&&!g||this.hasFocus()?setTimeout(M(Sr,this),20):wr(this),Ta)Ta.hasOwnProperty(l)&&Ta[l](this,e[l],Ea);di(this),e.finishInit&&e.finishInit(this);for(var c=0;c<Aa.length;++c)Aa[c](this);Yr(this),u&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}wa.defaults=xa,wa.optionHandlers=Ta;var Aa=[];function Na(t,e,n,r){var i,o=t.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=he(t,e).state:n="prev");var a=t.options.tabSize,s=$t(o,e),u=q(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var l,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((l=o.mode.indent(i,s.text.slice(c.length),s.text))==G||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=e>o.first?q($t(o,e-1).text,null,a):0:"add"==n?l=u+t.options.indentUnit:"subtract"==n?l=u-t.options.indentUnit:"number"==typeof n&&(l=u+n),l=Math.max(0,l);var f="",d=0;if(t.options.indentWithTabs)for(var h=Math.floor(l/a);h;--h)d+=a,f+="\t";if(d<l&&(f+=Y(l-d)),f!=c)return po(o,f,te(e,0),te(e,c.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var v=o.sel.ranges[p];if(v.head.line==e&&v.head.ch<c.length){var b=te(e,c.length);Qi(o,p,new _i(b,b));break}}}wa.defineInitHook=function(t){return Aa.push(t)};var Ia=null;function Ca(t){Ia=t}function La(t,e,n,r,i){var o=t.doc;t.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||t.state.pasteIncoming>a,u=Rt(e),l=null;if(s&&r.ranges.length>1)if(Ia&&Ia.text.join("\n")==e){if(r.ranges.length%Ia.text.length==0){l=[];for(var c=0;c<Ia.text.length;c++)l.push(o.splitLines(Ia.text[c]))}}else u.length==r.ranges.length&&t.options.pasteLinesPerSelection&&(l=Q(u,(function(t){return[t]})));for(var f=t.curOp.updateInput,d=r.ranges.length-1;d>=0;d--){var h=r.ranges[d],p=h.from(),v=h.to();h.empty()&&(n&&n>0?p=te(p.line,p.ch-n):t.state.overwrite&&!s?v=te(v.line,Math.min($t(o,v.line).text.length,v.ch+W(u).length)):s&&Ia&&Ia.lineWise&&Ia.text.join("\n")==e&&(p=v=te(p.line,0)));var b={from:p,to:v,text:l?l[d%l.length]:u,origin:i||(s?"paste":t.state.cutIncoming>a?"cut":"+input")};uo(t.doc,b),un(t,"inputRead",t,b)}e&&!s&&Oa(t,e),Rr(t),t.curOp.updateInput<2&&(t.curOp.updateInput=f),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ra(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Jr(e,(function(){return La(e,n,0,null,"paste")})),!0}function Oa(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=t.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(e.indexOf(o.electricChars.charAt(s))>-1){a=Na(t,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test($t(t.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Na(t,i.head.line,"smart"));a&&un(t,"electricInput",t,i.head.line)}}}function ka(t){for(var e=[],n=[],r=0;r<t.doc.sel.ranges.length;r++){var i=t.doc.sel.ranges[r].head.line,o={anchor:te(i,0),head:te(i+1,0)};n.push(o),e.push(t.getRange(o.anchor,o.head))}return{text:e,ranges:n}}function Pa(t,e,n,r){t.setAttribute("autocorrect",n?"":"off"),t.setAttribute("autocapitalize",r?"":"off"),t.setAttribute("spellcheck",!!e)}function Da(){var t=C("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),e=C("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return u?t.style.width="1000px":t.setAttribute("wrap","off"),v&&(t.style.border="1px solid black"),Pa(t),e}function Ma(t,e,n,r,i){var o=e,a=n,s=$t(t,e.line),u=i&&"rtl"==t.direction?-n:n;function l(r){var o,a;if(null==(o=i?function(t,e,n,r){var i=lt(e,t.doc.direction);if(!i)return Xo(e,n,r);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=st(i,n.ch,n.sticky),a=i[o];if("ltr"==t.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Xo(e,n,r);var s,u=function(t,n){return Ko(e,t instanceof te?t.ch:t,n)},l=function(n){return t.options.lineWrapping?(s=s||On(t,e),Zn(t,e,s,n)):{begin:0,end:e.text.length}},c=l("before"==n.sticky?u(n,-1):n.ch);if("rtl"==t.doc.direction||1==a.level){var f=1==a.level==r<0,d=u(n,f?1:-1);if(null!=d&&(f?d<=a.to&&d<=c.end:d>=a.from&&d>=c.begin))return new te(n.line,d,f?"before":"after")}var h=function(t,e,r){for(var o=function(t,e){return e?new te(n.line,u(t,1),"before"):new te(n.line,t,"after")};t>=0&&t<i.length;t+=e){var a=i[t],s=e>0==(1!=a.level),l=s?r.begin:u(r.end,-1);if(a.from<=l&&l<a.to)return o(l,s);if(l=s?a.from:u(a.to,-1),r.begin<=l&&l<r.end)return o(l,s)}},p=h(o+r,r,c);if(p)return p;var v=r>0?c.end:u(c.begin,-1);return null==v||r>0&&v==e.text.length||!(p=h(r>0?0:i.length-1,r,l(v)))?null:p}(t.cm,s,e,n):Xo(s,e,n))){if(r||(a=e.line+u)<t.first||a>=t.first+t.size||(e=new te(a,e.ch,e.sticky),!(s=$t(t,a))))return!1;e=Zo(i,t.cm,s,e.line,u)}else e=o;return!0}if("char"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var c=null,f="group"==r,d=t.cm&&t.cm.getHelper(e,"wordChars"),h=!0;!(n<0)||l(!h);h=!1){var p=s.text.charAt(e.ch)||"\n",v=tt(p,d)?"w":f&&"\n"==p?"n":!f||/\s/.test(p)?null:"p";if(!f||h||v||(v="s"),c&&c!=v){n<0&&(n=1,l(),e.sticky="after");break}if(v&&(c=v),n>0&&!l(!h))break}var b=io(t,e,o,a,!0);return ne(o,b)&&(b.hitSide=!0),b}function ja(t,e,n,r){var i,o,a=t.doc,s=e.left;if("page"==r){var u=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(u-.5*rr(t.display),3);i=(n>0?e.bottom:e.top)+n*l}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;(o=Kn(t,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var qa=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new F,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Fa(t,e){var n=Rn(t,e.line);if(!n||n.hidden)return null;var r=$t(t.doc,e.line),i=Cn(n,r,e.line),o=lt(r,t.doc.direction),a="left";o&&(a=st(o,e.ch)%2?"right":"left");var s=Mn(i.map,e.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Ua(t,e){return e&&(t.bad=!0),t}function Ga(t,e,n){var r;if(e==t.display.lineDiv){if(!(r=t.display.lineDiv.childNodes[n]))return Ua(t.clipPos(te(t.display.viewTo-1)),!0);e=null,n=0}else for(r=e;;r=r.parentNode){if(!r||r==t.display.lineDiv)return null;if(r.parentNode&&r.parentNode==t.display.lineDiv)break}for(var i=0;i<t.display.view.length;i++){var o=t.display.view[i];if(o.node==r)return Ba(o,e,n)}}function Ba(t,e,n){var r=t.text.firstChild,i=!1;if(!e||!R(r,e))return Ua(te(Kt(t.line),0),!0);if(e==r&&(i=!0,e=r.childNodes[n],n=0,!e)){var o=t.rest?W(t.rest):t.line;return Ua(te(Kt(o),o.text.length),i)}var a=3==e.nodeType?e:null,s=e;for(a||1!=e.childNodes.length||3!=e.firstChild.nodeType||(a=e.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var u=t.measure,l=u.maps;function c(e,n,r){for(var i=-1;i<(l?l.length:0);i++)for(var o=i<0?u.map:l[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==e||s==n){var c=Kt(i<0?t.line:t.rest[i]),f=o[a]+r;return(r<0||s!=e)&&(f=o[a+(r?1:0)]),te(c,f)}}}var f=c(a,s,n);if(f)return Ua(f,i);for(var d=s.nextSibling,h=a?a.nodeValue.length-n:0;d;d=d.nextSibling){if(f=c(d,d.firstChild,0))return Ua(te(f.line,f.ch-h),i);h+=d.textContent.length}for(var p=s.previousSibling,v=n;p;p=p.previousSibling){if(f=c(p,p.firstChild,-1))return Ua(te(f.line,f.ch+v),i);v+=p.textContent.length}}qa.prototype.init=function(t){var e=this,n=this,r=n.cm,i=n.div=t.lineDiv;function o(t){for(var e=t.target;e;e=e.parentNode){if(e==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(e.className))break}return!1}function a(t){if(o(t)&&!vt(r,t)){if(r.somethingSelected())Ca({lineWise:!1,text:r.getSelections()}),"cut"==t.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var e=ka(r);Ca({lineWise:!0,text:e.text}),"cut"==t.type&&r.operation((function(){r.setSelections(e.ranges,0,B),r.replaceSelection("",null,"cut")}))}if(t.clipboardData){t.clipboardData.clearData();var a=Ia.text.join("\n");if(t.clipboardData.setData("Text",a),t.clipboardData.getData("Text")==a)return void t.preventDefault()}var s=Da(),u=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),u.value=Ia.text.join("\n");var l=document.activeElement;D(u),setTimeout((function(){r.display.lineSpace.removeChild(s),l.focus(),l==i&&n.showPrimarySelection()}),50)}}Pa(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ft(i,"paste",(function(t){!o(t)||vt(r,t)||Ra(t,r)||s<=11&&setTimeout(ti(r,(function(){return e.updateFromDOM()})),20)})),ft(i,"compositionstart",(function(t){e.composing={data:t.data,done:!1}})),ft(i,"compositionupdate",(function(t){e.composing||(e.composing={data:t.data,done:!1})})),ft(i,"compositionend",(function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)})),ft(i,"touchstart",(function(){return n.forceCompositionEnd()})),ft(i,"input",(function(){e.composing||e.readFromDOMSoon()})),ft(i,"copy",a),ft(i,"cut",a)},qa.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},qa.prototype.prepareSelection=function(){var t=gr(this.cm,!1);return t.focus=document.activeElement==this.div,t},qa.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},qa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},qa.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,r=e.doc.sel.primary(),i=r.from(),o=r.to();if(e.display.viewTo==e.display.viewFrom||i.line>=e.display.viewTo||o.line<e.display.viewFrom)t.removeAllRanges();else{var a=Ga(e,t.anchorNode,t.anchorOffset),s=Ga(e,t.focusNode,t.focusOffset);if(!a||a.bad||!s||s.bad||0!=ee(oe(a,s),i)||0!=ee(ie(a,s),o)){var u=e.display.view,l=i.line>=e.display.viewFrom&&Fa(e,i)||{node:u[0].measure.map[2],offset:0},c=o.line<e.display.viewTo&&Fa(e,o);if(!c){var f=u[u.length-1].measure,d=f.maps?f.maps[f.maps.length-1]:f.map;c={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(l&&c){var h,p=t.rangeCount&&t.getRangeAt(0);try{h=w(l.node,l.offset,c.offset,c.node)}catch(t){}h&&(!n&&e.state.focused?(t.collapse(l.node,l.offset),h.collapsed||(t.removeAllRanges(),t.addRange(h))):(t.removeAllRanges(),t.addRange(h)),p&&null==t.anchorNode?t.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},qa.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation((function(){return t.cm.curOp.selectionChanged=!0}))}),20)},qa.prototype.showMultipleSelections=function(t){I(this.cm.display.cursorDiv,t.cursors),I(this.cm.display.selectionDiv,t.selection)},qa.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},qa.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return R(this.div,e)},qa.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},qa.prototype.blur=function(){this.div.blur()},qa.prototype.getField=function(){return this.div},qa.prototype.supportsTouch=function(){return!0},qa.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():Jr(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}))},qa.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},qa.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(b&&c&&this.cm.display.gutterSpecs.length&&function(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Ga(e,t.anchorNode,t.anchorOffset),r=Ga(e,t.focusNode,t.focusOffset);n&&r&&Jr(e,(function(){Zi(e.doc,wi(n,r),B),(n.bad||r.bad)&&(e.curOp.selectionChanged=!0)}))}}},qa.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=te(a.line-1,$t(r.doc,a.line-1).length)),s.ch==$t(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=te(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(t=cr(r,a.line))?(e=Kt(i.view[0].line),n=i.view[0].node):(e=Kt(i.view[t].line),n=i.view[t-1].node.nextSibling);var u,l,c=cr(r,s.line);if(c==i.view.length-1?(u=i.viewTo-1,l=i.lineDiv.lastChild):(u=Kt(i.view[c+1].line)-1,l=i.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(t,e,n,r,i){var o="",a=!1,s=t.doc.lineSeparator(),u=!1;function l(){a&&(o+=s,u&&(o+=s),a=u=!1)}function c(t){t&&(l(),o+=t)}function f(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void c(n);var o,d=e.getAttribute("cm-marker");if(d){var h=t.findMarks(te(r,0),te(i+1,0),(b=+d,function(t){return t.id==b}));return void(h.length&&(o=h[0].find(0))&&c(Yt(t.doc,o.from,o.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;p&&l();for(var v=0;v<e.childNodes.length;v++)f(e.childNodes[v]);/^(pre|p)$/i.test(e.nodeName)&&(u=!0),p&&(a=!0)}else 3==e.nodeType&&c(e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var b}for(;f(e),e!=n;)e=e.nextSibling,u=!1;return o}(r,n,l,e,u)),d=Yt(r.doc,te(e,0),te(u,$t(r.doc,u).text.length));f.length>1&&d.length>1;)if(W(f)==W(d))f.pop(),d.pop(),u--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),e++}for(var h=0,p=0,v=f[0],b=d[0],g=Math.min(v.length,b.length);h<g&&v.charCodeAt(h)==b.charCodeAt(h);)++h;for(var m=W(f),y=W(d),E=Math.min(m.length-(1==f.length?h:0),y.length-(1==d.length?h:0));p<E&&m.charCodeAt(m.length-p-1)==y.charCodeAt(y.length-p-1);)++p;if(1==f.length&&1==d.length&&e==a.line)for(;h&&h>a.ch&&m.charCodeAt(m.length-p-1)==y.charCodeAt(y.length-p-1);)h--,p++;f[f.length-1]=m.slice(0,m.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(h).replace(/\u200b+$/,"");var x=te(e,h),T=te(u,d.length?W(d).length-p:0);return f.length>1||f[0]||ee(x,T)?(po(r.doc,f,x,T,"+input"),!0):void 0},qa.prototype.ensurePolled=function(){this.forceCompositionEnd()},qa.prototype.reset=function(){this.forceCompositionEnd()},qa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},qa.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},qa.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Jr(this.cm,(function(){return fr(t.cm)}))},qa.prototype.setUneditable=function(t){t.contentEditable="false"},qa.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||ti(this.cm,La)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},qa.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},qa.prototype.onContextMenu=function(){},qa.prototype.resetPosition=function(){},qa.prototype.needsContentAttribute=!0;var Va=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null};Va.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function o(t){if(!vt(r,t)){if(r.somethingSelected())Ca({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=ka(r);Ca({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,B):(n.prevInput="",i.value=e.text.join("\n"),D(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),v&&(i.style.width="0px"),ft(i,"input",(function(){a&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),ft(i,"paste",(function(t){vt(r,t)||Ra(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ft(i,"cut",o),ft(i,"copy",o),ft(t.scroller,"paste",(function(e){if(!Tn(t,e)&&!vt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,i.dispatchEvent(o)}})),ft(t.lineSpace,"selectstart",(function(e){Tn(t,e)||yt(e)})),ft(i,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),ft(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Va.prototype.createField=function(){this.wrapper=Da(),this.textarea=this.wrapper.firstChild},Va.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Va.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=gr(t);if(t.options.moveInputWithCursor){var i=Yn(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),a=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Va.prototype.showSelection=function(t){var e=this.cm.display;I(e.cursorDiv,t.cursors),I(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Va.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&D(this.textarea),a&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Va.prototype.getField=function(){return this.textarea},Va.prototype.supportsTouch=function(){return!1},Va.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||O()!=this.textarea))try{this.textarea.focus()}catch(t){}},Va.prototype.blur=function(){this.textarea.blur()},Va.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Va.prototype.receivedFocus=function(){this.slowPoll()},Va.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},Va.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,(function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}))},Va.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||Ot(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||m&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var u=0,l=Math.min(r.length,i.length);u<l&&r.charCodeAt(u)==i.charCodeAt(u);)++u;return Jr(e,(function(){La(e,i.slice(u),r.length-u,null,t.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Va.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Va.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Va.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=lr(n,t),l=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ti(n,Zi)(n.doc,wi(o),B);var c,d=i.style.cssText,h=e.wrapper.style.cssText,p=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-p.top-5)+"px; left: "+(t.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",u&&(c=window.scrollY),r.input.focus(),u&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&b(),_){Tt(t);var v=function(){ht(window,"mouseup",v),setTimeout(g,20)};ft(window,"mouseup",v)}else setTimeout(g,50)}function b(){if(null!=i.selectionStart){var t=n.somethingSelected(),o="​"+(t?i.value:"");i.value="⇚",i.value=o,e.prevInput=t?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function g(){if(e.contextMenuPending==g&&(e.contextMenuPending=!1,e.wrapper.style.cssText=h,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!a||a&&s<9)&&b();var t=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==e.prevInput?ti(n,ao)(n):t++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Va.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},Va.prototype.setUneditable=function(){},Va.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function n(n,r,i,o){t.defaults[n]=r,i&&(e[n]=o?function(t,e,n){n!=Ea&&i(t,e,n)}:i)}t.defineOption=n,t.Init=Ea,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,Li(t)}),!0),n("indentUnit",2,Li,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){Ri(t),Un(t),fr(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var o=t.text.indexOf(e,i);if(-1==o)break;i=o+e.length,n.push(te(r,o))}r++}));for(var i=n.length-1;i>=0;i--)po(t.doc,e,n[i],te(n[i].line,n[i].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Ea&&t.refresh()})),n("specialCharPlaceholder",Ze,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!E),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){ya(t),vi(t)}),!0),n("keyMap","default",(function(t,e,n){var r=Wo(e),i=n!=Ea&&Wo(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Sa,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=hi(e,t.options.lineNumbers),vi(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?ar(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return Gr(t)}),!0),n("scrollbarStyle","native",(function(t){Hr(t),Gr(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=hi(t.options.gutters,e),vi(t)}),!0),n("firstLineNumber",1,vi,!0),n("lineNumberFormatter",(function(t){return t}),vi,!0),n("showCursorWhenSelecting",!1,br,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(wr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){t.display.input.screenReaderLabelChanged(e=""===e?null:e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,_a),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,br,!0),n("singleCursorHeightPerLine",!0,br,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ri,!0),n("addModeClass",!1,Ri,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,Ri,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}(wa),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var r=this.options,i=r[t];r[t]==n&&"mode"!=t||(r[t]=n,e.hasOwnProperty(t)&&ti(this,e[t])(this,n,i),pt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](Wo(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;n<e.length;++n)if(e[n]==t||e[n].name==t)return e.splice(n,1),!0},addOverlay:ei((function(e,n){var r=e.token?e:t.getMode(this.options,e);if(r.startState)throw new Error("Overlays may not be stateful.");!function(t,e,n){for(var r=0,i=n(e);r<t.length&&n(t[r])<=i;)r++;t.splice(r,0,e)}(this.state.overlays,{mode:r,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(t){return t.priority})),this.state.modeGen++,fr(this)})),removeOverlay:ei((function(t){for(var e=this.state.overlays,n=0;n<e.length;++n){var r=e[n].modeSpec;if(r==t||"string"==typeof t&&r.name==t)return e.splice(n,1),this.state.modeGen++,void fr(this)}})),indentLine:ei((function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),Zt(this.doc,t)&&Na(this,t,e,n)})),indentSelection:ei((function(t){for(var e=this.doc.sel.ranges,n=-1,r=0;r<e.length;r++){var i=e[r];if(i.empty())i.head.line>n&&(Na(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&Rr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var u=s;u<n;++u)Na(this,u,t);var l=this.doc.sel.ranges;0==o.ch&&e.length==l.length&&l[r].from().ch>0&&Qi(this.doc,r,new _i(o,l[r].to()),B)}}})),getTokenAt:function(t,e){return me(this,t,e)},getLineTokens:function(t,e){return me(this,te(t),e,!0)},getTokenTypeAt:function(t){t=se(this.doc,t);var e,n=de(this,$t(this.doc,t.line)),r=0,i=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){e=n[2*a+2];break}r=a+1}}var s=e?e.indexOf("overlay "):-1;return s<0?e:0==s?null:e.slice(0,s-1)},getModeAt:function(e){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(e).state).mode:n},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var r=[];if(!n.hasOwnProperty(e))return r;var i=n[e],o=this.getModeAt(t);if("string"==typeof o[e])i[o[e]]&&r.push(i[o[e]]);else if(o[e])for(var a=0;a<o[e].length;a++){var s=i[o[e][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var u=0;u<i._global.length;u++){var l=i._global[u];l.pred(o,this)&&-1==U(r,l.val)&&r.push(l.val)}return r},getStateAfter:function(t,e){var n=this.doc;return he(this,(t=ae(n,null==t?n.first+n.size-1:t))+1,e).state},cursorCoords:function(t,e){var n=this.doc.sel.primary();return Yn(this,null==t?n.head:"object"==typeof t?se(this.doc,t):t?n.from():n.to(),e||"page")},charCoords:function(t,e){return $n(this,se(this.doc,t),e||"page")},coordsChar:function(t,e){return Kn(this,(t=zn(this,t,e||"page")).left,t.top)},lineAtHeight:function(t,e){return t=zn(this,{top:t,left:0},e||"page").top,Xt(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var r,i=!1;if("number"==typeof t){var o=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>o&&(t=o,i=!0),r=$t(this.doc,t)}else r=t;return Hn(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-Ve(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var o,a=this.display,s=(t=Yn(this,se(this.doc,t))).bottom,u=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),a.sizer.appendChild(e),"over"==r)s=t.top;else if("above"==r||"near"==r){var l=Math.max(a.wrapper.clientHeight,this.doc.height),c=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>l)&&t.top>e.offsetHeight?s=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=l&&(s=t.bottom),u+e.offsetWidth>c&&(u=c-e.offsetWidth)}e.style.top=s+"px",e.style.left=e.style.right="","right"==i?(u=a.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(a.sizer.clientWidth-e.offsetWidth)/2),e.style.left=u+"px"),n&&(null!=(o=Cr(this,{left:u,top:s,right:u+e.offsetWidth,bottom:s+e.offsetHeight})).scrollTop&&Dr(this,o.scrollTop),null!=o.scrollLeft&&jr(this,o.scrollLeft))},triggerOnKeyDown:ei(ua),triggerOnKeyPress:ei(ca),triggerOnKeyUp:la,triggerOnMouseDown:ei(pa),execCommand:function(t){if(Jo.hasOwnProperty(t))return Jo[t].call(null,this)},triggerElectric:ei((function(t){Oa(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var o=se(this.doc,t),a=0;a<e&&!(o=Ma(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:ei((function(t,e){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ma(n.doc,r.head,t,e,n.options.rtlMoveVisually):t<0?r.from():r.to()}),H)})),deleteH:ei((function(t,e){var n=this.doc;this.doc.sel.somethingSelected()?n.replaceSelection("",null,"+delete"):Qo(this,(function(r){var i=Ma(n,r.head,t,e,!1);return t<0?{from:i,to:r.head}:{from:r.head,to:i}}))})),findPosV:function(t,e,n,r){var i=1,o=r;e<0&&(i=-1,e=-e);for(var a=se(this.doc,t),s=0;s<e;++s){var u=Yn(this,a,"div");if(null==o?o=u.left:u.left=o,(a=ja(this,u,i,n)).hitSide)break}return a},moveV:ei((function(t,e){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return t<0?a.from():a.to();var s=Yn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var u=ja(n,s,t,e);return"page"==e&&a==r.sel.primary()&&Lr(n,$n(n,u,"div").top-s.top),u}),H),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(t){var e=$t(this.doc,t.line).text,n=t.ch,r=t.ch;if(e){var i=this.getHelper(t,"wordChars");"before"!=t.sticky&&r!=e.length||!n?++r:--n;for(var o=e.charAt(n),a=tt(o,i)?function(t){return tt(t,i)}:/\s/.test(o)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!tt(t)};n>0&&a(e.charAt(n-1));)--n;for(;r<e.length&&a(e.charAt(r));)++r}return new _i(te(t.line,n),te(t.line,r))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?k(this.display.cursorDiv,"CodeMirror-overwrite"):A(this.display.cursorDiv,"CodeMirror-overwrite"),pt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==O()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ei((function(t,e){Or(this,t,e)})),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-An(this)-this.display.barHeight,width:t.scrollWidth-An(this)-this.display.barWidth,clientHeight:In(this),clientWidth:Nn(this)}},scrollIntoView:ei((function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:te(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?function(t,e){kr(t),t.curOp.scrollToPos=e}(this,t):Pr(this,t.from,t.to,t.margin)})),setSize:ei((function(t,e){var n=this,r=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=r(t)),null!=e&&(this.display.wrapper.style.height=r(e)),this.options.lineWrapping&&Fn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){dr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,pt(this,"refresh",this)})),operation:function(t){return Jr(this,t)},startOperation:function(){return $r(this)},endOperation:function(){return Yr(this)},refresh:ei((function(){var t=this.display.cachedTextHeight;fr(this),this.curOp.forceUpdate=!0,Un(this),Or(this,this.doc.scrollLeft,this.doc.scrollTop),li(this.display),(null==t||Math.abs(t-rr(this.display))>.5||this.options.lineWrapping)&&ur(this),pt(this,"refresh",this)})),swapDoc:ei((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),Di(this,t),Un(this),this.display.input.reset(),Or(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,un(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},mt(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,o){t.registerHelper(e,r,o),n[e]._global.push({pred:i,val:o})}}(wa);var Ha="iter insert remove copy getEditor constructor".split(" ");for(var za in Lo.prototype)Lo.prototype.hasOwnProperty(za)&&U(Ha,za)<0&&(wa.prototype[za]=function(t){return function(){return t.apply(this.doc,arguments)}}(Lo.prototype[za]));return mt(Lo),wa.inputStyles={textarea:Va,contenteditable:qa},wa.defineMode=function(t){wa.defaults.mode||"null"==t||(wa.defaults.mode=t),jt.apply(this,arguments)},wa.defineMIME=function(t,e){Mt[t]=e},wa.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),wa.defineMIME("text/plain","null"),wa.defineExtension=function(t,e){wa.prototype[t]=e},wa.defineDocExtension=function(t,e){Lo.prototype[t]=e},wa.fromTextArea=function(t,e){if((e=e?j(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=O();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=s.getValue()}var i;if(t.form&&(ft(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var o=t.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(t){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(ht(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=wa((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s},function(t){t.off=ht,t.on=ft,t.wheelEventPixels=Ei,t.Doc=Lo,t.splitLines=Rt,t.countColumn=q,t.findColumn=z,t.isWordChar=J,t.Pass=G,t.signal=pt,t.Line=$e,t.changeEnd=Ai,t.scrollbarModel=Vr,t.Pos=te,t.cmpPos=ee,t.modes=Dt,t.mimeModes=Mt,t.resolveMode=qt,t.getMode=Ft,t.modeExtensions=Ut,t.extendMode=Gt,t.copyState=Bt,t.startState=Ht,t.innerMode=Vt,t.commands=Jo,t.keyMap=Go,t.keyName=Yo,t.isModifierKey=zo,t.lookupKey=Ho,t.normalizeKeyMap=Vo,t.StringStream=zt,t.SharedTextMarker=Ao,t.TextMarker=So,t.LineWidget=xo,t.e_preventDefault=yt,t.e_stopPropagation=Et,t.e_stop=Tt,t.addClass=k,t.contains=R,t.rmClass=A,t.keyNames=jo}(wa),wa.version="5.55.0",wa}()},function(t,e){e.a=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e){e.a=Array.isArray},function(t,e,n){var r=n(56),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();e.a=o},function(t,e,n){var r=n(72);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},function(t,e){e.a=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){t.exports=n(107)},function(t,e,n){var r=n(45),i=n(12);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?i(t):e}},function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e,n){var r=n(7).a.Symbol;e.a=r},function(t,e,n){var r=n(13),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r.a?r.a.toStringTag:void 0,u=Object.prototype.toString,l=r.a?r.a.toStringTag:void 0;e.a=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}(t):function(t){return u.call(t)}(t)}},function(t,e,n){var r,i=n(41),o=n(7).a["__core-js_shared__"],a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",s=n(5),u=n(38),l=/^\[object .+?Constructor\]$/,c=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.a=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Object(s.a)(t)||function(t){return!!a&&a in t}(t))&&(Object(i.a)(t)?c:l).test(Object(u.a)(t))}(n)?n:void 0}},function(t,e,n){var r=n(41),i=n(48);e.a=function(t){return null!=t&&Object(i.a)(t.length)&&!Object(r.a)(t)}},function(t,e,n){var r=n(124),i=n(98),o=n(89),a=n(125);t.exports=function(t){return r(t)||i(t)||o(t)||a()}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i;"undefined"!=typeof window?i=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),i=void 0):i=self;var o=n(128),a=n(129),s=n(130),u=n(95),l=n(131),c=n(133);function f(){}t.exports=function(t,n){return"function"==typeof n?new e.Request("GET",t).end(n):1===arguments.length?new e.Request("GET",t):new e.Request(t,n)};var d=e=t.exports;e.Request=y,d.getXHR=function(){if(i.XMLHttpRequest&&(!i.location||"file:"!==i.location.protocol||!i.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw new Error("Browser-only version of superagent could not find XHR")};var h="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function p(t){if(!u(t))return t;var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&v(e,n,t[n]);return e.join("&")}function v(t,e,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){v(t,e,n)}));else if(u(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&v(t,"".concat(e,"[").concat(r,"]"),n[r]);else t.push(encodeURI(e)+"="+encodeURIComponent(n));else t.push(encodeURI(e))}function b(t){for(var e,n,r={},i=t.split("&"),o=0,a=i.length;o<a;++o)-1===(n=(e=i[o]).indexOf("="))?r[decodeURIComponent(e)]="":r[decodeURIComponent(e.slice(0,n))]=decodeURIComponent(e.slice(n+1));return r}function g(t){return/[/+]json($|[^-\w])/.test(t)}function m(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,n,r,i,o=t.split(/\r?\n/),a={},s=0,u=o.length;s<u;++s)-1!==(e=(n=o[s]).indexOf(":"))&&(r=n.slice(0,e).toLowerCase(),i=h(n.slice(e+1)),a[r]=i);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),this.body=null===this.text&&t._responseType?this.xhr.response:"HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function y(t,e){var n=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,r=null;try{r=new m(n)}catch(t){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=t,n.xhr?(e.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,e.status=n.xhr.status?n.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),n.callback(e)}n.emit("response",r);try{n._isResponseOK(r)||(t=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(e){t=e}t?(t.original=e,t.response=r,t.status=r.status,n.callback(t,r)):n.callback(null,r)}))}function E(t,e,n){var r=d("DELETE",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}d.serializeObject=p,d.parseString=b,d.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},d.serialize={"application/x-www-form-urlencoded":p,"application/json":a},d.parse={"application/x-www-form-urlencoded":b,"application/json":JSON.parse},l(m.prototype),m.prototype._parseBody=function(t){var e=d.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&g(this.type)&&(e=d.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},m.prototype.toError=function(){var t=this.req,e=t.method,n=t.url,r="cannot ".concat(e," ").concat(n," (").concat(this.status,")"),i=new Error(r);return i.status=this.status,i.method=e,i.url=n,i},d.Response=m,o(y.prototype),s(y.prototype),y.prototype.type=function(t){return this.set("Content-Type",d.types[t]||t),this},y.prototype.accept=function(t){return this.set("Accept",d.types[t]||t),this},y.prototype.auth=function(t,e,n){1===arguments.length&&(e=""),"object"===r(e)&&null!==e&&(n=e,e=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var i=function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,n,i)},y.prototype.query=function(t){return"string"!=typeof t&&(t=p(t)),t&&this._query.push(t),this},y.prototype.attach=function(t,e,n){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,n||e.name)}return this},y.prototype._getFormData=function(){return this._formData||(this._formData=new i.FormData),this._formData},y.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var n=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),n(t,e)},y.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},y.prototype.buffer=y.prototype.ca=y.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},y.prototype.pipe=y.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},y.prototype._isHost=function(t){return t&&"object"===r(t)&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},y.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||f,this._finalizeQueryString(),this._end()},y.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},y.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=d.getXHR();var e=this.xhr,n=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var n=e.readyState;if(n>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===n){var r;try{r=e.status}catch(t){r=0}if(!r){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var r=function(e,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(t._uploadTimeoutTimer)),n.direction=e,t.emit("progress",n)};if(this.hasListeners("progress"))try{e.addEventListener("progress",r.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",r.bind(null,"upload"))}catch(t){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],o=this._serializer||d.serialize[i?i.split(";")[0]:""];!o&&g(i)&&(o=d.serialize["application/json"]),o&&(n=o(n))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&e.setRequestHeader(a,this.header[a]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===n?null:n)},d.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(t){c.prototype[t.toLowerCase()]=function(e,n){var r=new d.Request(t,e);return this._setDefaults(r),n&&r.end(n),r}})),c.prototype.del=c.prototype.delete,d.get=function(t,e,n){var r=d("GET",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},d.head=function(t,e,n){var r=d("HEAD",t);return"function"==typeof e&&(n=e,e=null),e&&r.query(e),n&&r.end(n),r},d.options=function(t,e,n){var r=d("OPTIONS",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},d.del=E,d.delete=E,d.patch=function(t,e,n){var r=d("PATCH",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},d.post=function(t,e,n){var r=d("POST",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r},d.put=function(t,e,n){var r=d("PUT",t);return"function"==typeof e&&(n=e,e=null),e&&r.send(e),n&&r.end(n),r}},function(t,e){e.a=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var u=n(134),l=n(135),c=n(136);function f(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function d(t,e){return e.encode?e.strict?u(t):encodeURIComponent(t):t}function h(t,e){return e.decode?l(t):t}function p(t){var e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function v(t){var e=(t=p(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function b(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function g(t,e){f((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);var n=function(t){var e;switch(t.arrayFormat){case"index":return function(t,n,r){e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===r[t]&&(r[t]={}),r[t][e[1]]=n):r[t]=n};case"bracket":return function(t,n,r){e=/(\[\])$/.exec(t),r[t=t.replace(/\[\]$/,"")]=e?void 0!==r[t]?[].concat(r[t],n):[n]:n};case"comma":case"separator":return function(e,n,r){var i="string"==typeof n&&n.split("").indexOf(t.arrayFormatSeparator)>-1?n.split(t.arrayFormatSeparator).map((function(e){return h(e,t)})):null===n?n:h(n,t);r[e]=i};default:return function(t,e,n){n[t]=void 0!==n[t]?[].concat(n[t],e):e}}}(e),o=Object.create(null);if("string"!=typeof t)return o;if(!(t=t.trim().replace(/^[?#&]/,"")))return o;var s,u=function(t){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=a(t))){e&&(t=e);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==e.return||e.return()}finally{if(s)throw i}}}}(t.split("&"));try{for(u.s();!(s=u.n()).done;){var l=s.value,d=r(c(e.decode?l.replace(/\+/g," "):l,"="),2),p=d[0],v=d[1];v=void 0===v?null:["comma","separator"].includes(e.arrayFormat)?v:h(v,e),n(h(p,e),v,o)}}catch(t){u.e(t)}finally{u.f()}for(var g=0,m=Object.keys(o);g<m.length;g++){var y=m[g],E=o[y];if("object"===i(E)&&null!==E)for(var x=0,T=Object.keys(E);x<T.length;x++){var _=T[x];E[_]=b(E[_],e)}else o[y]=b(E,e)}return!1===e.sort?o:(!0===e.sort?Object.keys(o).sort():Object.keys(o).sort(e.sort)).reduce((function(t,e){var n=o[e];return t[e]=Boolean(n)&&"object"===i(n)&&!Array.isArray(n)?function t(e){return Array.isArray(e)?e.sort():"object"===i(e)?t(Object.keys(e)).sort((function(t,e){return Number(t)-Number(e)})).map((function(t){return e[t]})):e}(n):n,t}),Object.create(null))}e.extract=v,e.parse=g,e.stringify=function(t,e){if(!t)return"";f((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);for(var n=function(n){return e.skipNull&&null==t[n]||e.skipEmptyString&&""===t[n]},r=function(t){switch(t.arrayFormat){case"index":return function(e){return function(n,r){var i=n.length;return void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[[d(e,t),"[",i,"]"].join("")]:[[d(e,t),"[",d(i,t),"]=",d(r,t)].join("")])}};case"bracket":return function(e){return function(n,r){return void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[[d(e,t),"[]"].join("")]:[[d(e,t),"[]=",d(r,t)].join("")])}};case"comma":case"separator":return function(e){return function(n,r){return null==r||0===r.length?n:0===n.length?[[d(e,t),"=",d(r,t)].join("")]:[[n,d(r,t)].join(t.arrayFormatSeparator)]}};default:return function(e){return function(n,r){return void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:[].concat(o(n),null===r?[d(e,t)]:[[d(e,t),"=",d(r,t)].join("")])}}}}(e),i={},a=0,s=Object.keys(t);a<s.length;a++){var u=s[a];n(u)||(i[u]=t[u])}var l=Object.keys(i);return!1!==e.sort&&l.sort(e.sort),l.map((function(n){var i=t[n];return void 0===i?"":null===i?d(n,e):Array.isArray(i)?i.reduce(r(n),[]).join("&"):d(n,e)+"="+d(i,e)})).filter((function(t){return t.length>0})).join("&")},e.parseUrl=function(t,e){e=Object.assign({decode:!0},e);var n=r(c(t,"#"),2),i=n[1];return Object.assign({url:n[0].split("?")[0]||"",query:g(v(t),e)},e&&e.parseFragmentIdentifier&&i?{fragmentIdentifier:h(i,e)}:{})},e.stringifyUrl=function(t,n){n=Object.assign({encode:!0,strict:!0},n);var r=p(t.url).split("?")[0]||"",i=e.extract(t.url),o=e.parse(i,{sort:!1}),a=Object.assign(o,t.query),s=e.stringify(a,n);s&&(s="?".concat(s));var u=function(t){var e="",n=t.indexOf("#");return-1!==n&&(e=t.slice(n)),e}(t.url);return t.fragmentIdentifier&&(u="#".concat(d(t.fragmentIdentifier,n))),"".concat(r).concat(s).concat(u)}},function(t,e){var n="http://www.w3.org/1999/02/22-rdf-syntax-ns#",r="http://www.w3.org/2001/XMLSchema#",i="http://www.w3.org/2000/10/swap/";e.a={xsd:{decimal:r+"decimal",boolean:r+"boolean",double:r+"double",integer:r+"integer",string:r+"string"},rdf:{type:n+"type",nil:n+"nil",first:n+"first",rest:n+"rest",langString:n+"langString"},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:i+"reify#forSome",forAll:i+"reify#forAll"},log:{implies:i+"log#implies"}}},function(t,e,n){(function(t){var r=n(7),i=n(97),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.a.Buffer:void 0;e.a=(s?s.isBuffer:void 0)||i.a}).call(this,n(73)(t))},,function(t,e,n){var r=n(14),i=n(9),o=function(t){return Object(i.a)(t)&&"[object Arguments]"==Object(r.a)(t)},a=Object.prototype,s=a.hasOwnProperty,u=a.propertyIsEnumerable,l=o(function(){return arguments}())?o:function(t){return Object(i.a)(t)&&s.call(t,"callee")&&!u.call(t,"callee")};e.a=l},function(t,e,n){var r=n(19),i=function(t,e){for(var n=t.length;n--;)if(Object(r.a)(t[n][0],e))return n;return-1},o=Array.prototype.splice;function a(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(t){var e=this.__data__,n=i(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))},a.prototype.get=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]},a.prototype.has=function(t){return i(this.__data__,t)>-1},a.prototype.set=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},e.a=a},function(t,e,n){var r=n(69),i=n(93),o=n(16);e.a=function(t){return Object(o.a)(t)?Object(r.a)(t):Object(i.a)(t)}},function(t,e,n){var r=n(15),i=n(7),o=Object(r.a)(i.a,"DataView"),a=n(37),s=Object(r.a)(i.a,"Promise"),u=Object(r.a)(i.a,"Set"),l=Object(r.a)(i.a,"WeakMap"),c=n(14),f=n(38),d=Object(f.a)(o),h=Object(f.a)(a.a),p=Object(f.a)(s),v=Object(f.a)(u),b=Object(f.a)(l),g=c.a;(o&&"[object DataView]"!=g(new o(new ArrayBuffer(1)))||a.a&&"[object Map]"!=g(new a.a)||s&&"[object Promise]"!=g(s.resolve())||u&&"[object Set]"!=g(new u)||l&&"[object WeakMap]"!=g(new l))&&(g=function(t){var e=Object(c.a)(t),n="[object Object]"==e?t.constructor:void 0,r=n?Object(f.a)(n):"";if(r)switch(r){case d:return"[object DataView]";case h:return"[object Map]";case p:return"[object Promise]";case v:return"[object Set]";case b:return"[object WeakMap]"}return e}),e.a=g},function(t,e,n){var r=n(44);e.a=function(t,e,n){"__proto__"==e&&r.a?Object(r.a)(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(58),i=n(28);e.a=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var l=e[s],c=o?o(n[l],t[l],l,n,t):void 0;void 0===c&&(c=t[l]),a?Object(i.a)(n,l,c):Object(r.a)(n,l,c)}return n}},function(t,e,n){var r=n(13),i=n(82),o=n(6),a=n(33),s=r.a?r.a.prototype:void 0,u=s?s.toString:void 0,l=function t(e){if("string"==typeof e)return e;if(Object(o.a)(e))return Object(i.a)(e,t)+"";if(Object(a.a)(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n};e.a=function(t){return null==t?"":l(t)}},function(t,e,n){var r=n(25),i=n(37),o=n(50);function a(t){var e=this.__data__=new r.a(t);this.size=e.size}a.prototype.clear=function(){this.__data__=new r.a,this.size=0},a.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},a.prototype.get=function(t){return this.__data__.get(t)},a.prototype.has=function(t){return this.__data__.has(t)},a.prototype.set=function(t,e){var n=this.__data__;if(n instanceof r.a){var a=n.__data__;if(!i.a||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o.a(a)}return n.set(t,e),this.size=n.size,this},e.a=a},function(t,e,n){(function(t){var r=n(56),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.a.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();e.a=s}).call(this,n(73)(t))},function(t,e,n){var r=n(14),i=n(9);e.a=function(t){return"symbol"==typeof t||Object(i.a)(t)&&"[object Symbol]"==Object(r.a)(t)}},function(t,e){var n=Object.prototype;e.a=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(69),i=n(5),o=n(34),a=Object.prototype.hasOwnProperty,s=n(16);e.a=function(t){return Object(s.a)(t)?Object(r.a)(t,!0):function(t){if(!Object(i.a)(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=Object(o.a)(t),n=[];for(var r in t)("constructor"!=r||!e&&a.call(t,r))&&n.push(r);return n}(t)}},function(t,e,n){var r=n(14),i=n(48),o=n(9),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=n(53),u=n(32),l=u.a&&u.a.isTypedArray,c=l?Object(s.a)(l):function(t){return Object(o.a)(t)&&Object(i.a)(t.length)&&!!a[Object(r.a)(t)]};e.a=c},function(t,e,n){var r=n(15),i=n(7),o=Object(r.a)(i.a,"Map");e.a=o},function(t,e){var n=Function.prototype.toString;e.a=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(163);function i(e,n,o){return t.exports=i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=r(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}},i(e,n,o||e)}t.exports=i},function(t,e,n){(function(e){var n=Object.assign?Object.assign:function(t){for(var e=1;e<arguments.length;e++)s(Object(arguments[e]),(function(e,n){t[n]=e}));return t},r=function(){if(Object.create)return function(t,e,r,i){var o=a(arguments,1);return n.apply(this,[Object.create(t)].concat(o))};{function t(){}return function(e,r,i,o){var s=a(arguments,1);return t.prototype=e,n.apply(this,[new t].concat(s))}}}(),i=String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},o="undefined"!=typeof window?window:e;function a(t,e){return Array.prototype.slice.call(t,e||0)}function s(t,e){u(t,(function(t,n){return e(t,n),!1}))}function u(t,e){if(l(t)){for(var n=0;n<t.length;n++)if(e(t[n],n))return t[n]}else for(var r in t)if(t.hasOwnProperty(r)&&e(t[r],r))return t[r]}function l(t){return null!=t&&"function"!=typeof t&&"number"==typeof t.length}t.exports={assign:n,create:r,trim:i,bind:function(t,e){return function(){return e.apply(t,Array.prototype.slice.call(arguments,0))}},slice:a,each:s,map:function(t,e){var n=l(t)?[]:{};return u(t,(function(t,r){return n[r]=e(t,r),!1})),n},pluck:u,isList:l,isFunction:function(t){return t&&"[object Function]"==={}.toString.call(t)},isObject:function(t){return t&&"[object Object]"==={}.toString.call(t)},Global:o}}).call(this,n(64))},function(t,e,n){var r=n(14),i=n(5);e.a=function(t){if(!Object(i.a)(t))return!1;var e=Object(r.a)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e){e.a=function(t){return t}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;e.a=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var r=n(15),i=function(){try{var t=Object(r.a)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();e.a=i},function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(n)}t.exports=e},function(t,e,n){var r=n(33);e.a=function(t){if("string"==typeof t||Object(r.a)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t){var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function l(t,e,n,r){var i,o,a;if(s(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if("function"==typeof a?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(t))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=a.length,console&&console.warn&&console.warn(l)}return t}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function d(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):p(i,i.length)}function h(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)r(u,this,e);else{var l=u.length,c=p(u,l);for(n=0;n<l;++n)r(c[n],this,e)}return!0},o.prototype.addListener=function(t,e){return l(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return l(this,t,e,!0)},o.prototype.once=function(t,e){return s(e),this.on(t,f(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return s(e),this.prependListener(t,f(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,r,i,o,a;if(s(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},o.prototype.listeners=function(t){return d(this,t,!0)},o.prototype.rawListeners=function(t){return d(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},function(t,e){e.a=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(65),i=Object(r.a)(Object.getPrototypeOf,Object);e.a=i},function(t,e,n){var r=n(15),i=Object(r.a)(Object,"create"),o=Object.prototype.hasOwnProperty,a=Object.prototype.hasOwnProperty;function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=function(){this.__data__=i?i(null):{},this.size=0},s.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},s.prototype.get=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0},s.prototype.has=function(t){var e=this.__data__;return i?void 0!==e[t]:a.call(e,t)},s.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this};var u=s,l=n(25),c=n(37),f=function(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map};function d(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}d.prototype.clear=function(){this.size=0,this.__data__={hash:new u,map:new(c.a||l.a),string:new u}},d.prototype.delete=function(t){var e=f(this,t).delete(t);return this.size-=e?1:0,e},d.prototype.get=function(t){return f(this,t).get(t)},d.prototype.has=function(t){return f(this,t).has(t)},d.prototype.set=function(t,e){var n=f(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},e.a=d},function(t,e,n){n.r(e),n.d(e,"Yasqe",(function(){return vt})),n.d(e,"QueryResponseStatus",(function(){return pt}));var r={};n.r(r),n.d(r,"getAjaxConfig",(function(){return P})),n.d(r,"executeQuery",(function(){return D})),n.d(r,"executeUpdateModeQuery",(function(){return M})),n.d(r,"executeQueryModeQuery",(function(){return j})),n.d(r,"executeCountQuery",(function(){return q})),n.d(r,"getUrlArguments",(function(){return F})),n.d(r,"getAcceptHeader",(function(){return U})),n.d(r,"getAsCurlString",(function(){return G}));var i=n(17),o=n.n(i),a=n(1),s=n.n(a),u=n(2),l=n.n(u),c=n(12),f=n.n(c),d=n(8),h=n.n(d),p=n(11),v=n.n(p),b=n(3),g=n.n(b),m=n(18),y=n(4),E=n.n(y);function x(t,e,n){null==n&&(n=1);var r=t.getTokenAt({line:e,ch:n});if(!(null==r||null==r||r.end<n))return"ws"==r.type?x(t,e,r.end+1):r}function T(t){for(var e=t.getDoc().lastLine(),n=0;n<=e;++n){var r=_(t,n);if(null!=r&&r>=0)return n}}function _(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;if(!r||!("#"===r.charAt(0)||r.startsWith('"')&&r.endsWith('"'))){r||(r=t.getDoc().getLine(e));var i=(r=r.toUpperCase()).indexOf("PREFIX ",n);if(i>=0){var o=t.getTokenTypeAt(E.a.Pos(e,i+1));if("keyword"===o)return i}}}function S(t,e){t.getDoc().replaceRange("PREFIX "+e+"\n",{line:0,ch:0}),t.collapsePrefixes(!1)}var w=n(0),A=n(20);function N(t,e,n){var r;e.onmouseover=function(){r||((r=document.createElement("div")).className="yasqe_tooltip"),r.style.display="block",r.innerHTML=n,e.appendChild(r)},e.onmouseout=function(){r&&(r.style.display="none"),r.innerHTML=n}}var I=n(10),C=n.n(I),L=n(41),R=n(174),O=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};function k(t,e){return Object(L.a)(e)?e(t):e}function P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(R.a)({},k(t,t.config.requestConfig),k(t,e));if(n.endpoint&&0!=n.endpoint.length){var r=t.getQueryMode(),i=Object(L.a)(n.endpoint)?n.endpoint(t):n.endpoint,o="update"==r?"POST":Object(L.a)(n.method)?n.method(t):n.method,a=Object(L.a)(n.headers)?n.headers(t):n.headers,s=Object(L.a)(n.withCredentials)?n.withCredentials(t):n.withCredentials;return{reqMethod:o,url:i,args:F(t,n),headers:a,accept:U(t,n),withCredentials:s}}}function D(t,e){return O(this,void 0,void 0,C.a.mark((function n(){return C.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.isUpdateQuery()){n.next=2;break}return n.abrupt("return",M(t,e));case 2:return n.abrupt("return",j(t,e));case 3:case"end":return n.stop()}}),n)})))}function M(t,e){return O(this,void 0,void 0,C.a.mark((function n(){var r,i,o,a,s,u,l;return C.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=Date.now(),a=function(){return t.config.beforeUpdateQuery(t.getValue(),t.getTabId()).then((function(t){if((o=t)&&pt.ERROR===o.status){var e=new w.c;return e.messageLabelKey=o.messageLabelKey,e.parameters=o.parameters,e.message=o.message||"",Promise.reject(e)}return t}))},s=function(){return t.config.getRepositoryStatementsCount().then((function(t){return i=t,t}))},u=function(){return j(t,e,r,o)},l=function(){t.config.getRepositoryStatementsCount().then((function(e){void 0!==i&&void 0!==e&&(t.emit("countAffectedRepositoryStatementsChanged",e-i),t.emit("countAffectedRepositoryStatementsPersisted"))}))},n.abrupt("return",a().then(s).then(u).then(l).catch((function(e){t.emit("queryResponse",e,Date.now()-r,r,void 0,void 0,o),t.emit("error",e)})));case 6:case"end":return n.stop()}}),n)})))}function j(t,e,n,r){return O(this,void 0,void 0,C.a.mark((function i(){var o,a,s;return C.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(i.prev=0,a=P(t,e)){i.next=4;break}return i.abrupt("return");case 4:return s=n||Date.now(),(o="POST"===a.reqMethod?m.post(a.url).type("form").send(a.args):m.get(a.url).query(a.args)).accept(a.accept).set(a.headers||{}),a.withCredentials&&o.withCredentials(),t.emit("query",o,a),i.next=11,o.then((function(n){var i,o,a=!1;if(n.body&&!isNaN(n.body.totalElements)&&(i=parseInt(n.body.totalElements)),!i&&!t.isUpdateQuery()&&!t.isAskQuery()&&t.config.paginationOn){var u=t.getPageSize(),l=t.getPageNumber();u&&l&&(o=u*(l-1)+n.body.results.bindings.length,(a=n.body.results.bindings.length>u)?(n.body.results.bindings.pop(),q(t,e)):i=o)}return t.emit("queryResponse",n,Date.now()-s,s,a,o,r),t.emit("queryResults",n.body,Date.now()-s),i&&(t.emit("totalElementsChanged",i),t.emit("totalElementsPersisted",i)),n.body}),(function(e){throw e instanceof Error&&"Aborted"===e.message||t.emit("queryResponse",e,Date.now()-s,s,void 0,void 0,r),t.emit("error",e),e}));case 11:return i.abrupt("return",i.sent);case 14:i.prev=14,i.t0=i.catch(0),console.error(i.t0);case 17:case"end":return i.stop()}}),i,null,[[0,14]])})))}function q(t,e){var n,r=P(t,e);if(r){(n="POST"===r.reqMethod?m.post(r.url).type("form").send(r.args):m.get(r.url).query(r.args)).accept(r.accept).set(r.headers||{}),r.withCredentials&&n.withCredentials(),t.emit("countQuery",n,r);var i={request:n,query:t.getValue(),queryMode:t.getQueryMode(),queryType:t.getQueryType(),pageSize:t.getPageSize()};t.emitEvent("internalCountQueryEvent",i),n.then((function(e){t.emitEvent("internalCountQueryResponseEvent",{response:e}),t.emit("totalElementsChanged",parseInt(e.body.totalElements)),t.emit("totalElementsPersisted",parseInt(e.body.totalElements))}),(function(t){console.log(t)})).finally((function(){return t.emit("countQueryFinished")}))}}function F(t,e){var n=t.getQueryMode(),r={},i=k(t,e),o=Object(L.a)(i.queryArgument)?i.queryArgument(t):i.queryArgument;o||(o=t.getQueryMode()),r[o]=i.adjustQueryBeforeRequest?i.adjustQueryBeforeRequest(t):t.getValue();var a=t.getInfer();void 0!==a&&(r.infer="".concat(a));var s=t.getSameAs();void 0!==s&&(r.sameAs="".concat(s));var u=t.isExplainPlanQuery();if(u&&(r.explain="true",r.explainType=t.getExplainPlanQueryType()),t.config.paginationOn){var l=t.getPageSize();l&&(r.pageSize="".concat(l+1));var c=t.getPageNumber();c&&(r.pageNumber="".concat(u?1:c))}var f=Object(L.a)(i.namedGraphs)?i.namedGraphs(t):i.namedGraphs;f&&f.length>0&&(r["query"===n?"named-graph-uri":"using-named-graph-uri "]=f);var d=Object(L.a)(i.defaultGraphs)?i.defaultGraphs(t):i.defaultGraphs;d&&d.length>0&&(r["query"==n?"default-graph-uri":"using-graph-uri "]=f);var h=Object(L.a)(i.args)?i.args(t):i.args;return h&&h.length>0&&Object(R.a)(r,h.reduce((function(t,e){return t[e.name]?t[e.name].push(e.value):t[e.name]=[e.value],t}),{})),r}function U(t,e){var n=k(t,e),r=null;if("update"==t.getQueryMode())r=Object(L.a)(n.acceptHeaderUpdate)?n.acceptHeaderUpdate(t):n.acceptHeaderUpdate;else{var i=t.getQueryType();r="DESCRIBE"==i||"CONSTRUCT"==i?Object(L.a)(n.acceptHeaderGraph)?n.acceptHeaderGraph(t):n.acceptHeaderGraph:Object(L.a)(n.acceptHeaderSelect)?n.acceptHeaderSelect(t):n.acceptHeaderSelect}return r}function G(t,e){var n=P(t,k(t,e));if(!n)return"";var r=n.url;0!==n.url.indexOf("http")&&(r="".concat(window.location.protocol,"//").concat(window.location.host),0===n.url.indexOf("/")?r+=n.url:r+=window.location.pathname+n.url);var i=["curl"];for(var o in"GET"===n.reqMethod?(r+="?".concat(A.stringify(n.args)),i.push(r)):"POST"===n.reqMethod?(i.push(r),i.push("--data",A.stringify(n.args))):(console.warn("Unexpected request-method",n.reqMethod),i.push(r)),i.push("-X",n.reqMethod),n.headers)i.push("-H '".concat(o,": ").concat(n.headers[o],"'"));return i.join(" ")}var B='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66.399998 66.399998"><g><path d="M33.2 0C14.9 0 0 14.9 0 33.2c0 18.3 14.9 33.2 33.2 33.2 18.3 0 33.2-14.9 33.2-33.2C66.4 14.9 51.5 0 33.2 0zm0 59.4C18.7 59.4 7 47.6 7 33.2 7 18.7 18.8 7 33.2 7c14.4 0 26.2 11.8 26.2 26.2 0 14.4-11.8 26.2-26.2 26.2z"/><path d="M33.1 45.6c-1.4 0-2.5.5-3.5 1.5-.9 1-1.4 2.2-1.4 3.6 0 1.6.5 2.8 1.5 3.8 1 .9 2.1 1.3 3.4 1.3 1.3 0 2.4-.5 3.4-1.4 1-.9 1.5-2.2 1.5-3.7 0-1.4-.5-2.6-1.4-3.6-.9-1-2.1-1.5-3.5-1.5zM33.3 12.4c-1.5 0-2.8.5-3.7 1.6-.9 1-1.4 2.4-1.4 4.2 0 1.1.1 2.9.2 5.6l.8 13.1c.2 1.8.4 3.2.9 4.1.5 1.2 1.5 1.8 2.9 1.8 1.3 0 2.3-.7 2.9-1.9.5-1 .7-2.3.9-4l1.1-13.4c.1-1.3.2-2.5.2-3.8 0-2.2-.3-3.9-.8-5.1-.5-1-1.6-2.2-4-2.2z"/></g></svg>',V=function(){function t(){s()(this,t),this.words=0,this.prefixes=0,this.children={}}return l()(t,[{key:"insert",value:function(e,n){if(0!=e.length){var r,i=this;void 0===n&&(n=0),n!==e.length?(i.prefixes++,void 0===i.children[r=e[n]]&&(i.children[r]=new t),i.children[r].insert(e,n+1)):i.words++}}},{key:"remove",value:function(t,e){if(0!=t.length){var n=this;void 0===e&&(e=0),void 0!==n&&(e!==t.length?(n.prefixes--,n.children[t[e]].remove(t,e+1)):n.words--)}}},{key:"update",value:function(t,e){0!=t.length&&0!=e.length&&(this.remove(t),this.insert(e))}},{key:"countWord",value:function(t,e){if(0==t.length)return 0;var n,r=0;return void 0===e&&(e=0),e===t.length?this.words:(void 0!==(n=this.children[t[e]])&&(r=n.countWord(t,e+1)),r)}},{key:"countPrefix",value:function(t,e){if(0==t.length)return 0;var n,r=0;return void 0===e&&(e=0),e===t.length?this.prefixes:(void 0!==(n=this.children[t[e]])&&(r=n.countPrefix(t,e+1)),r)}},{key:"find",value:function(t){return 0!=t.length&&this.countWord(t)>0}},{key:"getAllWords",value:function(t){var e,n=this,r=[];if(void 0===t&&(t=""),void 0===n)return[];for(e in n.words>0&&r.push(t),n.children)n.children.hasOwnProperty(e)&&(r=r.concat(n.children[e].getAllWords(t+e)));return r}},{key:"autoComplete",value:function(t,e){var n;return 0==t.length?void 0===e?this.getAllWords(t):[]:(void 0===e&&(e=0),void 0===(n=this.children[t[e]])?[]:e===t.length-1?n.getAllWords(t):n.autoComplete(t,e+1))}}]),t}(),H=n(47),z=n(85),$={"string-2":"prefixed",atom:"var"},Y={onInitialize:function(t){var e=this;t.on("change",(function(){var n;if(t.config.autocompleters&&-1!=t.config.autocompleters.indexOf(e.name)){var r=t.getDoc().getCursor(),i=t.getTokenAt(r);if(i.type&&"prefixed"===$[i.type]){var o=i.string.indexOf(":");if(-1!==o){var a=t.getPreviousNonWsToken(r.line,i).string.toUpperCase(),s=t.getTokenAt({line:r.line,ch:i.start});if("PREFIX"!==a&&("ws"===s.type||null===s.type)||"punc"===s.type&&("|"===s.string||"/"===s.string||"^^"==s.string||"{"==s.string||"("===s.string)){var u=i.string.substring(0,o+1);void 0===t.getPrefixesFromQuery()[u.slice(0,-1)]&&(null===(n=t.autocompleters[e.name])||void 0===n||n.getCompletions(i).then((function(e){e.length&&(t.addPrefixes(e[0]),t.autocomplete())}),console.warn))}}}}}))},isValidCompletionPosition:function(t){var e=t.getDoc().getCursor(),n=t.getTokenAt(e);if(t.getDoc().getLine(e.line).length>e.ch)return!1;if("ws"!==n.type&&(n=t.getCompleteToken()),0===n.string.indexOf("a")&&n.state.possibleCurrent.indexOf("PNAME_NS")<0)return!1;var r=t.getPreviousNonWsToken(e.line,n),i="PREFIX"!==r.string.toUpperCase();return!(!r||i)},get:function(t){return Promise.resolve(t.config.prefixes)},preProcessToken:function(t,e){var n=t.getPreviousNonWsToken(t.getDoc().getCursor().line,e);return n&&n.string&&":"===n.string.slice(-1)&&(e={start:n.start,end:e.end,string:n.string+" "+e.string,state:e.state,type:e.type}),e},bulk:!0,autoShow:!0,name:"sesame-prefixes"},W=["COUNT","SUM","MIN","MAX","AVG","SAMPLE","STR","LANG","LANGMATCHES","DATATYPE","BOUND","IRI","URI","BNODE","RAND","ABS","CEIL","FLOOR","ROUND","CONCAT","SUBSTR","STRLEN","REPLACE","UCASE","LCASE","ENCODE_FOR_URI","CONTAINS","STRSTARTS","STRENDS","STRBEFORE","STRAFTER","YEAR","MONTH","DAY","HOURS","MINUTES","SECONDS","TIMEZONE","TZ","NOW","UUID","STRUUID","MD5","SHA1","SHA256","SHA384","SHA512","COALESCE","IF","STRLANG","STRDT","sameTerm","isIRI","isURI","isBLANK","isLITERAL","isNUMERIC","REGEX","EXISTS","FILTER"],Q={isValidCompletionPosition:function(t){var e=t.getTokenAt(t.getCursor());return"ws"!==e.type&&(e=t.getCompleteToken()).string.length>1},get:function(t,e){var n=(null==e?void 0:e.string.toLowerCase())||"",r=W.filter((function(t){return 0===t.toLowerCase().indexOf(n)})).map((function(t){return"".concat(t,"(")})).sort();return Promise.resolve(r)},bulk:!1,autoShow:!0,name:"sparql-functions"},K={onInitialize:function(){},get:function(t,e){return rt(t,"property",e)},isValidCompletionPosition:function(t){var e=t.getCompleteToken();return 0!=e.string.length&&"?"!==e.string[0]&&"$"!==e.string[0]&&e.state.possibleCurrent.indexOf("a")>=0},preProcessToken:function(t,e){return et(t,e)},postProcessSuggestion:function(t,e,n){return nt(t,e,n)},bulk:!1,name:"property"},X={onInitialize:function(){},get:function(t,e){return rt(t,"class",e)},isValidCompletionPosition:function(t){var e=t.getCompleteToken();if("?"===e.string[0]||"$"===e.string[0])return!1;var n=t.getDoc().getCursor(),r=t.getPreviousNonWsToken(n.line,e);return"a"===r.state.lastProperty||"rdf:type"===r.state.lastProperty||"rdfs:domain"===r.state.lastProperty||"rdfs:range"===r.state.lastProperty},preProcessToken:function(t,e){return et(t,e)},postProcessSuggestion:function(t,e,n){return nt(t,e,n)},bulk:!1,name:"class"};function Z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var J=n(4);n(137);var tt=function(t){h()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(t,r){var i;return s()(this,n),(i=e.call(this)).yasqe=t,i.config=r,i}return l()(n,[{key:"getStorageId",value:function(){return this.yasqe.getStorageId(this.config.persistenceId)}},{key:"storeBulkCompletions",value:function(t){if(t&&t instanceof Array){this.trie=new V;var e,n=function(t){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function(t,e){if(t){if("string"==typeof t)return Z(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z(t,e):void 0}}(t))){e&&(t=e);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==e.return||e.return()}finally{if(a)throw i}}}}(t);try{for(n.s();!(e=n.n()).done;)this.trie.insert(e.value)}catch(t){n.e(t)}finally{n.f()}var r=this.getStorageId();r&&this.yasqe.storage.set(r,t,2592e3,this.yasqe.handleLocalStorageQuotaFull)}}},{key:"getCompletions",value:function(t){if(!this.config.get)return Promise.resolve([]);if(!t)return this.config.get instanceof Array?Promise.resolve(this.config.get):Promise.resolve(this.config.get(this.yasqe)).then((function(t){return t instanceof Array?t:[]}));var e=t.autocompletionString||t.string;return this.trie?Promise.resolve(function(t,e,n){return t&&t.length?function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}(t,0,(e=n||void 0===e?1:Object(z.a)(e))<0?0:e):[]}(this.trie.autoComplete(e),100)):this.config.get instanceof Array?Promise.resolve(this.config.get.filter((function(t){return 0===t.indexOf(e)}))):Promise.resolve(this.config.get(this.yasqe,t)).then((function(t){return t instanceof Array?t:[]}))}},{key:"initialize",value:function(){var t=this;if(this.config.onInitialize&&this.config.onInitialize(this.yasqe),this.config.bulk){if(this.config.get instanceof Array)return this.storeBulkCompletions(this.config.get),Promise.resolve();var e,n=this.getStorageId();return n&&(e=this.yasqe.storage.get(n)),e&&e.length>0?(this.storeBulkCompletions(e),Promise.resolve()):this.getCompletions().then((function(e){return t.storeBulkCompletions(e)}))}return Promise.resolve()}},{key:"isValidPosition",value:function(){return!!this.config.isValidCompletionPosition&&(this.config.isValidCompletionPosition(this.yasqe)?(this.config.autoShow||this.yasqe.showNotification(this.config.name,"yasqe.autocomplete.notification.info.help_info_message"),this.emit("validPosition",this),!0):(this.emit("invalidPosition",this),this.yasqe.hideNotification(this.config.name),!1))}},{key:"getHint",value:function(t,e){var n,r,i,o;"string"==typeof e?(r=e,i=e):(r=e.description,i=e.value),this.config.postProcessSuggestion&&(r=this.config.postProcessSuggestion(this.yasqe,t,r)),"uri"===e.type&&t.tokenPrefix&&t.tokenPrefixUri?i=t.tokenPrefix+i.substring(t.tokenPrefixUri.length):"uri"===e.type?i="<"+i+">":"prefix"===e.type&&(i+=":");var a=this.yasqe.getDoc().getCursor();t.from&&(o=Object.assign(Object.assign({},a),t.from));var s=this.yasqe.getDoc().getCursor().line;return{text:i,displayText:r,from:o,to:t.to?{ch:(null===(n=null==t?void 0:t.to)||void 0===n?void 0:n.ch)||this.yasqe.getCompleteToken().end,line:s}:t.string.length>0?{ch:this.yasqe.getCompleteToken().end,line:s}:t.from,render:function(t,e,n){t.innerHTML=n.displayText}}}},{key:"getHints",value:function(t){var e=this;return this.config.preProcessToken&&(t=this.config.preProcessToken(this.yasqe,t)),t?this.getCompletions(t).then((function(n){return n.map((function(n){return e.getHint(t,n)}))})).then((function(t){return e.config.postprocessHints?e.config.postprocessHints(e.yasqe,t):t})):Promise.resolve([])}},{key:"autocomplete",value:function(t){var e=this;if(!this.isValidPosition())return!1;var n=this.yasqe.state.completionActive,r=this.yasqe.getDoc().getCursor();if(n&&r.sticky&&r.ch!==n.startPos.ch?this.yasqe.state.completionActive.startPos=r:n&&!r.sticky&&r.ch<n.startPos.ch&&(r.sticky=n.startPos.sticky,this.yasqe.state.completionActive.startPos.ch=r.ch,this.yasqe.state.completionActive.startLen--),t&&(!this.config.autoShow||this.yasqe.state.completionActive))return!1;var i=function(){return e.getHints(e.yasqe.getCompleteToken()).then((function(t){var n=e.yasqe.getDoc().getCursor(),r=e.yasqe.getCompleteToken(),i={list:t,from:{line:n.line,ch:r.start},to:{line:n.line,ch:r.end}};return t.length||e.yasqe.emit("autocompletionClose"),J.on(i,"shown",(function(){e.yasqe.emit("autocompletionShown",e.yasqe.state.completionActive.widget)})),J.on(i,"close",(function(){e.yasqe.emit("autocompletionClose")})),i}))};i.async=!1;var o=Object.assign({closeCharacters:/[\s>"]/,completeSingle:!1,hint:i,container:this.yasqe.rootEl,extraKeys:{Home:function(t,e){t.getDoc().setCursor({ch:0,line:e.data.from.line})},End:function(t,e){t.getDoc().setCursor({ch:t.getLine(e.data.to.line).length,line:e.data.to.line})}}},this.yasqe.config.hintConfig);return this.yasqe.showHint(o),!0}}]),n}(H.EventEmitter);function et(t,e){var n=t.getPrefixesFromQuery(),r=e.string;if(r.indexOf("<")<0&&(e.tokenPrefix=r.substring(0,r.indexOf(":")+1),null!=n[e.tokenPrefix.slice(0,-1)]&&(e.tokenPrefixUri=n[e.tokenPrefix.slice(0,-1)])),e.autocompletionString=r.trim(),r.indexOf("<")<0&&r.indexOf(":")>-1)for(var i in n)if(e.tokenPrefix===i+":"){e.autocompletionString=n[i],e.autocompletionString+=r.substring(i.length+1);break}return 0==e.autocompletionString.indexOf("<")&&(e.autocompletionString=e.autocompletionString.substring(1)),e.autocompletionString.indexOf(">",e.autocompletionString.length-1)>0&&(e.autocompletionString=e.autocompletionString.substring(0,e.autocompletionString.length-1)),e}function nt(t,e,n){if(e.tokenPrefix&&e.autocompletionString&&e.tokenPrefixUri)n=e.tokenPrefix+n.substring(e.tokenPrefixUri.length);else{var r=t.getPrefixesFromQuery(),i=Object.values(r).filter((function(t){return n.startsWith(t)}));if(i.length>0){var o=Object.keys(r).find((function(t){return i[0]===t}));n=o+":"+n.substring(r[o].length)}else{if(0===n.indexOf("<b>"+e.string))return n;if(n.startsWith("<<")&&n.endsWith(">>"))return n;n="<"+n+">"}}return n}var rt=function(t,e,n){var r=0===window.location.protocol.indexOf("http")?"https://":"http://",i="autocomplete_"+e;return n&&n.string&&0!=n.string.trim().length?m.get(r+"lov.linkeddata.es/dataset/lov/api/v2/autocomplete/terms").query({q:n.autocompletionString,page_size:50,type:e}).then((function(t){return t.body.results?t.body.results.map((function(t){return t.uri[0]})):[]}),(function(){t.showNotification(i,"yasqe.autocomplete.notification.error.failed_fetching_suggestions")})):(t.showNotification(i,"yasqe.autocomplete.notification.info.nothing_to_autocomplete"),Promise.resolve([]))},it=[{name:"variables",isValidCompletionPosition:function(t){var e=t.getTokenAt(t.getDoc().getCursor());return!("ws"==e.type||!(e=t.getCompleteToken(e))||"?"!==e.string[0]&&"$"!==e.string[0])},get:function(t,e){if(!e||0==e.string.length)return[];for(var n={},r=[],i=t.getWrapperElement().querySelectorAll(".cm-atom"),o=0;o<i.length;o++){var a=i[o],s=a.innerHTML;if("?"===s[0]||"$"===s[0]){var u=a.nextSibling;if(u&&u.className&&u.className.indexOf("cm-atom")>=0&&(s+=u.innerText),n[s])continue;if(s.length<=1)continue;if(0!==s.indexOf(e.string))continue;if(s===e.string)continue;n[s]=!0,r.push(s)}}return r.sort()},bulk:!1,autoShow:!0},Y,Q,K,X],ot=n(175),at=n(4);n(80),n(99),n(100),n(101),n(139),n(96),n(140),n(102),n(143),n(144),n(103),n(145),n(146),at.registerHelper("fold","prefix",(function(t,e){var n=e.line,r=t.getDoc().getLine(n),i=function(e,n){var r=t.getTokenAt(E.a.Pos(e,n+1));if(!r||"keyword"!=r.type)return-1;var i=x(t,e,r.end+1);if(!i||"string-2"!=i.type)return-1;var o=x(t,e,i.end+1);return o&&"variable-3"==o.type?o.end:-1};if(!function(){for(var e=!1,r=n-1;r>=0;r--)if(t.getDoc().getLine(r).toUpperCase().indexOf("PREFIX ")>=0){e=!0;break}return e}()){var o=_(t,n,e.ch,r);if(null!=o){for(var a,s=!1,u=t.getDoc().lastLine(),l=i(n,o),c=n,f=n;f<=u&&!s;++f)for(var d=t.getDoc().getLine(f),h=f==n?o+1:0;;){!s&&d.indexOf("{")>=0&&(s=!0);var p=d.toUpperCase().indexOf("PREFIX ",h);if(!(p>=0))break;(a=i(f,p))>0&&(c=f,h=l=a),h++}return{from:E.a.Pos(n,o+"PREFIX ".length),to:E.a.Pos(c,l)}}}})),at.defineMode("sparql11",(function(t){var e=n(138),r=e.table,i="[0-9A-Fa-f]",o="[eE][\\+-]?[0-9]+",a="(([0-9]+\\.[0-9]*"+o+")|(\\.[0-9]+"+o+")|([0-9]+"+o+"))",s="\\\\[tbnrf\\\\\"']",u=i+"{4}",l="(\\\\u"+u+"|\\\\U00(10|0"+i+")"+u+")",c={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+s+"|"+l+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+s+"|"+l+"))*"}};for(var f in c)c[f].COMPLETE=c[f].QUOTES+c[f].CONTENTS+c[f].QUOTES;var d={};for(var h in c)d[h]={complete:{name:"STRING_LITERAL_LONG_"+h,regex:new RegExp("^"+c[h].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+h,regex:new RegExp("^"+c[h].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+h,regex:new RegExp("^"+c[h].CONTENTS+c[h].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+h,regex:new RegExp("^"+c[h].QUOTES),style:"string"}};var p=[{name:"WS",regex:new RegExp("^[\\x20\\x09\\x0D\\x0A]+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)"),style:"comment"},{name:"IRI_REF",regex:new RegExp('^<[^<>"`|{}^\\\0- ]*>'),style:"variable-3"},{name:"VAR1",regex:new RegExp("^\\?([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|_|[0-9])([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|_|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*"),style:"atom"},{name:"VAR2",regex:new RegExp("^\\$([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|_|[0-9])([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|_|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*"),style:"atom"},{name:"LANGTAG",regex:new RegExp("^@[a-zA-Z]+(-[a-zA-Z0-9]+)*"),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+a),style:"number"},{name:"DECIMAL",regex:new RegExp("^[0-9]*\\.[0-9]+"),style:"number"},{name:"INTEGER",regex:new RegExp("^[0-9]+"),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^\\+(([0-9]+\\.[0-9]*[eE][\\+-]?[0-9]+)|(\\.[0-9]+[eE][\\+-]?[0-9]+)|([0-9]+[eE][\\+-]?[0-9]+))"),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^\\+[0-9]*\\.[0-9]+"),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^\\+[0-9]+"),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^-(([0-9]+\\.[0-9]*[eE][\\+-]?[0-9]+)|(\\.[0-9]+[eE][\\+-]?[0-9]+)|([0-9]+[eE][\\+-]?[0-9]+))"),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^-[0-9]*\\.[0-9]+"),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^-[0-9]+"),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp("^'(([^\\x27\\x5C\\x0A\\x0D])|\\\\[tbnrf\\\\\"']|(\\\\u[0-9A-Fa-f]{4}|\\\\U00(10|0[0-9A-Fa-f])[0-9A-Fa-f]{4}))*'"),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp('^"(([^\\x22\\x5C\\x0A\\x0D])|\\\\[tbnrf\\\\"\']|(\\\\u[0-9A-Fa-f]{4}|\\\\U00(10|0[0-9A-Fa-f])[0-9A-Fa-f]{4}))*"'),style:"string"},{name:"NIL",regex:new RegExp("^\\(([\\x20\\x09\\x0D\\x0A]|(#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)))*\\)"),style:"punc"},{name:"ANON",regex:new RegExp("^\\[([\\x20\\x09\\x0D\\x0A]|(#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)))*\\]"),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^(([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD])(((([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|_|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]))|\\.)*(([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|_|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])))?)?:([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|_|:|[0-9]|((%[0-9A-Fa-f][0-9A-Fa-f])|(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])))((([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|_|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])|\\.|:|((%[0-9A-Fa-f][0-9A-Fa-f])|(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])))*(([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|_|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])|:|((%[0-9A-Fa-f][0-9A-Fa-f])|(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%]))))?"),style:"string-2"},{name:"PNAME_NS",regex:new RegExp("^(([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD])(((([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|_|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]))|\\.)*(([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|_|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])))?)?:"),style:"string-2"},{name:"BLANK_NODE_LABEL",regex:new RegExp("^_:([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|_|[0-9])((([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|_|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])|\\.)*([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]|_|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]))?"),style:"string-2"}];function v(t){var e=[],n=r[t];if(null!=n)for(var i in n)e.push(i.toString());else e.push(t);return e}function b(t,n){function i(){var e=t.column();n.errorStartPos=e,n.errorEndPos=e+u.string.length}function o(t){if(null==n.queryType)switch(t){case"SELECT":case"CONSTRUCT":case"ASK":case"DESCRIBE":case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":n.queryType=t}}function a(t){switch(n.inPrefixDecl="prefixDecl"===t,t){case"disallowVars":n.allowVars=!1;break;case"allowVars":n.allowVars=!0;break;case"disallowBnodes":n.allowBnodes=!1;break;case"allowBnodes":n.allowBnodes=!0;break;case"storeProperty":n.storeProperty=!0}}function s(t){return(n.allowVars||"var"!=t)&&(n.allowBnodes||"blankNode"!=t&&"blankNodePropertyList"!=t&&"blankNodePropertyListPath"!=t)}0==t.pos&&(n.possibleCurrent=n.possibleNext);var u=function(){var r;if(n.inLiteral){var i=!1;if((r=t.match(d[n.inLiteral].contents.regex,!0,!1))&&0==r[0].length&&(r=t.match(d[n.inLiteral].closing.regex,!0,!1),i=!0),r&&r[0].length>0){var o={quotePos:i?"end":"content",cat:c[n.inLiteral].CAT,style:d[n.inLiteral].complete.style,string:r[0],start:t.start};return i&&(n.inLiteral=void 0),o}}for(var a in d){var s;if(r=t.match(d[a].quotes.regex,!0,!1))return n.inLiteral?(n.inLiteral=void 0,s="end"):(n.inLiteral=a,s="start"),{cat:c[a].CAT,style:d[a].quotes.style,string:r[0],quotePos:s,start:t.start}}for(var u=0;u<p.length;++u)if(r=t.match(p[u].regex,!0,!1))return{cat:p[u].name,style:p[u].style,string:r[0],start:t.start,quotePos:void 0};return(r=t.match(e.keywords,!0,!1))?{cat:t.current().toUpperCase(),style:"keyword",string:r[0],start:t.start,quotePos:void 0}:(r=t.match(e.punct,!0,!1))?{cat:t.current(),style:"punc",string:r[0],start:t.start,quotePos:void 0}:{cat:"<invalid_token>",style:"error",string:(r=t.match(/^.[A-Za-z0-9]*/,!0,!1))[0],start:t.start,quotePos:void 0}}();if("<invalid_token>"==u.cat)return 1==n.OK&&(n.OK=!1,i()),n.complete=!1,u.style;if("WS"===u.cat||"COMMENT"===u.cat||u.quotePos&&"end"!=u.quotePos)return n.possibleCurrent=n.possibleNext,n.possibleFullIri=!1,u.style;var l,f=!1,h=u.cat;if(n.possibleFullIri&&">"===u.string&&(n.possibleFullIri=!1),n.possibleFullIri||"<"!==u.string||(n.possibleFullIri=!0),!u.quotePos||"end"==u.quotePos)for(;n.stack.length>0&&h&&n.OK&&!f;)if("var"===(l=n.stack.pop())&&u.string&&(n.variables[u.string]=u.string),r[l]){var b=r[l][h];if(null!=b&&s(l)){for(var g=b.length-1;g>=0;--g)n.stack.push(b[g]);a(l)}else n.OK=!1,n.complete=!1,i(),n.stack.push(l)}else if(l==h){n.inPrefixDecl&&("PNAME_NS"===l&&u.string.length>0?n.currentPnameNs=u.string.slice(0,-1):"string"==typeof n.currentPnameNs&&u.string.length>1&&(n.prefixes[n.currentPnameNs]=u.string.slice(1,-1),n.currentPnameNs=void 0)),f=!0,o(l);for(var m=!0,y=n.stack.length;y>0;--y){var E=r[n.stack[y-1]];E&&E.$||(m=!1)}if(n.complete=m,n.storeProperty&&"punc"!=h?(n.lastProperty=u.string,n.lastPropertyIndex=u.start,n.storeProperty=!1):"."!==h&&";"!==h||(n.lastProperty="",n.lastPropertyIndex=0),!n.inPrefixDecl&&("PNAME_NS"===h||"PNAME_LN"===h)){var x=u.string.indexOf(":");if(x>=0){var T=u.string.slice(0,x);void 0===n.prefixes[T]&&(n.OK=!1,i(),n.errorMsg="Prefix '"+T+"' is not defined")}}}else n.OK=!1,n.complete=!1,i();if(!f&&n.OK&&(n.OK=!1,n.complete=!1,i()),n.possibleNext.indexOf("a")>=0)for(var _=t.string,S=u.start;S>=0;S--)if(" "!==_[S-1]){"|"===_[S-1]||"/"===_[S-1]||"punc"===u.style||(n.lastPredicateOffset=u.start);break}return n.possibleCurrent=n.possibleNext,n.possibleNext=v(n.stack[n.stack.length-1]),u.style}var g={"*[,, object]":3,"*[(,),object]":3,"*[(,),objectPath]":3,"*[/,pathEltOrInverse]":2,object:2,objectPath:2,objectList:2,objectListPath:2,storeProperty:2,pathMod:2,"?pathMod":2,propertyListNotEmpty:1,propertyList:1,propertyListPath:1,propertyListPathNotEmpty:1,"?[verb,objectList]":1},m={"}":1,"]":1,")":1,"{":-1,"(":-1,"[":-1};return{token:b,startState:function(){return{tokenize:b,OK:!0,complete:e.acceptEmpty,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:v(e.startSymbol),possibleNext:v(e.startSymbol),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[e.startSymbol],lastPredicateOffset:t.indentUnit||2,prefixes:{},variables:{},currentPnameNs:void 0,errorMsg:void 0,inPrefixDecl:!1,possibleFullIri:!1}},indent:function(e,n){var r;if(e.inLiteral)return 0;if(void 0!==e.lastPredicateOffset&&e.stack.length&&"?[or([verbPath,verbSimple]),objectListPath]"==e.stack[e.stack.length-1])return e.lastPredicateOffset;var i=0,o=e.stack.length-1;if(/^[\}\]\)]/.test(n)){for(var a=n.substr(0,1);o>=0;--o)if(e.stack[o]==a){--o;break}}else{var s=g[e.stack[o]];s&&(i+=s,--o)}for(;o>=0;--o){var u=m[e.stack[o]];u&&(i+=u)}return i*(null!==(r=t.indentUnit)&&void 0!==r?r:2)},electricChars:"}])"}}));var st=at;function ut(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return lt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function lt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n(126),n(127);var ct,ft,dt,ht,pt,vt=function(t){h()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g()(t);if(e){var i=g()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v()(this,n)}}(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s()(this,n),(r=e.call(this)).autocompleters={},r.prevQueryValid=!1,r.queryValid=!0,r.superagent=m,r.showAbortQueryButton=!1,r.isQueryAborted=!1,r.subscriptions=[],r.handleHashChange=function(){var t,e;null===(e=(t=r.config).consumeShareLink)||void 0===e||e.call(t,f()(r))},r.notificationEls={},!t)throw new Error("No parent passed as argument. Dont know where to draw YASQE");r.rootEl=document.createElement("div"),r.rootEl.className="yasqe",t.appendChild(r.rootEl),r.config=Object(R.a)({},n.defaults,i),i.extraKeys&&(r.config.extraKeys=i.extraKeys),r.translationService=r.config.translationService,r.isVirtualRepository=r.config.isVirtualRepository,r.notificationMessageService=r.config.notificationMessageService,r.eventService=r.config.eventService,r.infer=r.config.infer,r.sameAs=r.config.sameAs,r.explainPlanQueryType=r.config.explainPlanQueryType,r.pageNumber=r.config.pageNumber,r.pageSize=r.config.pageSize,r.tabId=r.config.tabId;var o,a=st(r.rootEl,r.config),u=ut(Object.getOwnPropertyNames(n.prototype));try{for(u.s();!(o=u.n()).done;){var l=o.value;a[l]=n.prototype[l].bind(f()(r))}}catch(t){u.e(t)}finally{u.f()}Object.assign(f()(r),st.prototype,a),r.storage=new w.d(n.storageNamespace),r.drawButtons();var c=r.getStorageId();if(c){var d=r.storage.get(c);r.persistentConfig=d&&"string"==typeof d?{query:d,editorHeight:r.config.editorHeight}:d,r.persistentConfig||(r.persistentConfig={query:r.getValue(),editorHeight:r.config.editorHeight}),r.persistentConfig&&r.persistentConfig.query&&r.setValue(r.persistentConfig.query)}return r.config.autocompleters.forEach((function(t){return r.enableCompleter(t).then((function(){}),console.warn)})),r.config.consumeShareLink&&(r.config.consumeShareLink(f()(r)),window.addEventListener("hashchange",r.handleHashChange)),r.checkSyntax(),r.persistentConfig&&r.persistentConfig.editorHeight?r.getWrapperElement().style.height=r.persistentConfig.editorHeight:r.config.editorHeight&&(r.getWrapperElement().style.height=r.config.editorHeight),r.config.resizeable&&r.drawResizer(),r.drawKeyboardShortcutsButton(),r.drawAbortQueryButton(),r.config.collapsePrefixesOnLoad&&r.collapsePrefixes(!0),r.registerEventListeners(),r}return l()(n,[{key:"handleChange",value:function(){this.checkSyntax(),this.updateQueryButton(),this.emit("queryStatus",this,{valid:this.queryValid})}},{key:"handleBlur",value:function(){this.saveQuery()}},{key:"handleChanges",value:function(){this.checkSyntax(),this.updateQueryButton()}},{key:"handleCursorActivity",value:function(){this.autocomplete(!0)}},{key:"update",value:function(){this.checkSyntax(),this.updateQueryButton(),this.updateButtonsLabels(),this.updateKeyboardShortcuts()}},{key:"toggleFullScreen",value:function(){if(this.rootEl.classList.contains("yasqe-fullscreen"))this.leaveFullScreen();else{var t=this.translationService.translate("yasqe.keyboard_shortcuts.dialog.item.explain_exit_fullscreen.message");this.notificationMessageService.info("explain_exit_fullscreen",t),this.enterFullScreen()}}},{key:"enterFullScreen",value:function(){Object(w.g)(this.rootEl,"yasqe-fullscreen"),Object(w.g)(document.body,"scroll-hidden")}},{key:"leaveFullScreen",value:function(){Object(w.l)(this.rootEl,"yasqe-fullscreen"),Object(w.l)(document.body,"scroll-hidden")}},{key:"handleQuery",value:function(t,e){this.req=e,this.updateQueryButton(),this.queryStateChanged(!0,!1)}},{key:"handleCountQuery",value:function(t,e){this.countReq=e}},{key:"handleCountQueryFinished",value:function(){this.countReq=void 0}},{key:"handleQueryResponse",value:function(t,e,n){this.lastQueryDuration=n,this.req=void 0,this.updateQueryButton(),this.queryStateChanged(!1,!1)}},{key:"handleQueryAbort",value:function(){this.req=void 0,this.updateQueryButton()}},{key:"setInfer",value:function(t){this.infer=t}},{key:"getInfer",value:function(){return this.infer}},{key:"setSameAs",value:function(t){this.sameAs=t}},{key:"getSameAs",value:function(){return this.sameAs}},{key:"setPageNumber",value:function(t){this.pageNumber=t}},{key:"getPageNumber",value:function(){return this.pageNumber}},{key:"setPageSize",value:function(t){this.pageSize=t}},{key:"getPageSize",value:function(){return this.pageSize}},{key:"setExplainPlanQueryType",value:function(t){this.explainPlanQueryType=t}},{key:"getExplainPlanQueryType",value:function(){return this.explainPlanQueryType}},{key:"isExplainPlanQuery",value:function(){return!!this.explainPlanQueryType}},{key:"isQueryRunning",value:function(){return!!this.req}},{key:"getTabId",value:function(){return this.tabId}},{key:"registerEventListeners",value:function(){this.on("change",this.handleChange),this.on("blur",this.handleBlur),this.on("changes",this.handleChanges),this.on("cursorActivity",this.handleCursorActivity),this.on("query",this.handleQuery),this.on("countQuery",this.handleCountQuery),this.on("countQueryFinished",this.handleCountQueryFinished),this.on("queryResponse",this.handleQueryResponse),this.on("queryAbort",this.handleQueryAbort)}},{key:"unregisterEventListeners",value:function(){this.off("change",this.handleChange),this.off("blur",this.handleBlur),this.off("changes",this.handleChanges),this.off("cursorActivity",this.handleCursorActivity),this.off("query",this.handleQuery),this.off("countQuery",this.handleCountQuery),this.off("countQueryFinished",this.handleCountQueryFinished),this.off("queryResponse",this.handleQueryResponse),this.off("queryAbort",this.handleQueryAbort)}},{key:"emit",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];st.signal.apply(st,[this,t,this].concat(n))}},{key:"getStorageId",value:function(t){var e=t||this.config.persistenceId;if(e)return"string"==typeof e?e:e(this)}},{key:"updateButtonsLabels",value:function(){var t=this.getWrapperElement().querySelector(".yasqe_share");if(t){var e=this.translationService.translate("yasqe.action.share.btn.tooltip");t.setAttribute("title",e),t.setAttribute("aria-label",e)}}},{key:"drawButtons",value:function(){var t=this,e=document.createElement("div");if(e.className="yasqe_buttons",this.getWrapperElement().appendChild(e),this.config.pluginButtons){var n=this.config.pluginButtons(this);if(!n)return;if(Array.isArray(n)){var r,i=ut(n);try{for(i.s();!(r=i.n()).done;)e.append(r.value)}catch(t){i.e(t)}finally{i.f()}}else e.appendChild(n)}if(this.config.createShareableLink){var o=Object(w.i)('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M36.764 50c0 .308-.07.598-.088.905l32.247 16.12c2.76-2.34 6.293-3.798 10.195-3.798C87.89 63.227 95 70.337 95 79.11 95 87.89 87.89 95 79.118 95c-8.78 0-15.882-7.11-15.882-15.89 0-.317.07-.6.088-.906l-32.247-16.12c-2.77 2.33-6.293 3.79-10.195 3.79C12.11 65.873 5 58.77 5 50c0-8.78 7.11-15.89 15.882-15.89 3.902 0 7.427 1.467 10.195 3.796l32.247-16.12c-.018-.307-.088-.597-.088-.913C63.236 12.11 70.338 5 79.118 5 87.89 5 95 12.11 95 20.873c0 8.78-7.11 15.89-15.882 15.89-3.91 0-7.436-1.467-10.195-3.805L36.676 49.086c.017.308.088.598.088.914z"/></svg>'),a=document.createElement("button");a.className="yasqe_share";var s=this.translationService.translate("yasqe.action.share.btn.tooltip");a.title=s,a.setAttribute("aria-label",s),a.appendChild(o),e.appendChild(a),a.addEventListener("click",(function(t){return u(t)})),a.addEventListener("keydown",(function(t){"Enter"===t.code&&u(t)}));var u=function(n){n.stopPropagation();var r=document.createElement("div");r.className="yasqe_sharePopup",e.appendChild(r),document.body.addEventListener("click",(function(t){r&&t.target!==r&&!r.contains(t.target)&&(r.remove(),r=void 0)}),!0);var i=document.createElement("input");i.type="text",i.value=t.config.createShareableLink(t),i.onfocus=function(){i.select()},i.onmouseup=function(){return!1},r.innerHTML="";var a=document.createElement("div");a.className="inputWrapper",a.appendChild(i),r.appendChild(a);var s=[],u=t.config.createShortLink;if(u){r.className=r.className+=" enableShort";var l=document.createElement("button");s.push(l),l.innerHTML=t.translationService.translate("yasqe.action.shorten.btn.label"),l.className="yasqe_btn yasqe_btn-sm shorten",r.appendChild(l),l.onclick=function(){s.forEach((function(t){return t.disabled=!0})),u(t,i.value).then((function(t){i.value=t,i.focus()}),(function(e){var n=document.createElement("span");n.className="shortlinkErr";var r=t.translationService.translate("yasqe.action.share.error.general_message");"string"==typeof e&&0!==e.length?r=e:e.message&&0!==e.message.length&&(r=e.message),n.textContent=r,i.replaceWith(n)}))}}var c=document.createElement("button");s.push(c),c.innerText=t.translationService.translate("yasqe.action.curl.btn.label"),c.className="yasqe_btn yasqe_btn-sm curl",r.appendChild(c),c.onclick=function(){s.forEach((function(t){return t.disabled=!0})),i.value=t.getAsCurlString(),i.focus(),null==r||r.appendChild(c)};var f=o.getBoundingClientRect();r.style.top=o.offsetTop+f.height+"px",r.style.left=o.offsetLeft+o.clientWidth-r.clientWidth+"px",i.focus()}}if(this.config.showQueryButton){var l=document.createElement("yasgui-tooltip");l.setAttribute("placement","top"),this.queryBtn=document.createElement("button"),l.appendChild(this.queryBtn),Object(w.g)(l,"yasqe_tooltip_queryButton"),this.queryBtn.innerText=this.translationService.translate("yasqe.action.run_query.btn.label"),Object(w.g)(this.queryBtn,"yasqe_queryButton");var c=Object(w.i)('<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="81.9" width="72.9" version="1.1" y="0px" x="0px" viewBox="0 0 72.900002 81.900002"><path id="queryIcon" d="m69.6 35.2-60.3-34.3c-2.2-1.2-4.4-1.2-6.4 0s-2.9 3.4-2.9 5.6v68.8c0 2.2 1.2 4.4 2.9 5.6 1 0.5 2.2 1 3.4 1s2.2-0.5 2.9-1l60.3-34.3c2.2-1.2 3.4-3.4 3.4-5.6s-1.1-4.3-3.3-5.8z"/><path id="loadingIcon" d="m61.184 36.167-48.73-27.719c-1.7779-0.96976-3.5558-0.96976-5.172 0-1.6163 0.96976-2.3436 2.7476-2.3436 4.5255v55.599c0 1.7779 0.96976 3.5558 2.3436 4.5255 0.80813 0.40407 1.7779 0.80813 2.7476 0.80813 0.96975 0 1.7779-0.40406 2.3436-0.80813l48.73-27.719c1.7779-0.96976 2.7476-2.7476 2.7476-4.5255s-0.88894-3.475-2.6668-4.6872z" fill="none"/></svg>');Object(w.g)(c,"queryIcon");var f=Object(w.i)(B);Object(w.g)(f,"warningIcon"),this.queryBtn.appendChild(f),this.queryBtn.onclick=function(){t.config.queryingDisabled||(t.pageNumber=1,t.query().catch((function(){})))},e.appendChild(l),this.updateQueryButton()}}},{key:"drawResizer",value:function(){if(!this.resizeWrapper){this.resizeWrapper=document.createElement("div"),Object(w.g)(this.resizeWrapper,"resizeWrapper");var t=document.createElement("div");Object(w.g)(t,"resizeChip"),this.resizeWrapper.appendChild(t),this.resizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.rootEl.appendChild(this.resizeWrapper)}}},{key:"drawKeyboardShortcutsButton",value:function(){this.config.keyboardShortcutDescriptions&&(this.keyboardShortcutsButton=document.createElement("keyboard-shortcuts-dialog"),this.config.resizeable&&Object(w.g)(this.keyboardShortcutsButton,"resizeable-on"),this.keyboardShortcutsButton.translationService=this.translationService,this.updateKeyboardShortcuts(),this.rootEl.appendChild(this.keyboardShortcutsButton))}},{key:"updateKeyboardShortcuts",value:function(){this.config.keyboardShortcutDescriptions&&(this.keyboardShortcutsButton.items=o()(this.config.keyboardShortcutDescriptions))}},{key:"drawAbortQueryButton",value:function(){var t=this;if(this.config.onQueryAborted instanceof Function){var e=document.createElement("div");Object(w.g)(e,"yasqe-footer-buttons"),this.abortQueryButton=document.createElement("div"),Object(w.g)(this.abortQueryButton,"abort-button"),this.abortQueryButton.onclick=function(){if(!t.isQueryAborted){t.isQueryAborted=!0;var e=t.req;t.config.onQueryAborted instanceof Function?(t.queryStateChanged(!0,!0),t.config.onQueryAborted(e).finally((function(){return t.queryStateChanged(!1,!1)}))):t.abortQuery()}};var n=document.createElement("yasgui-tooltip");n.placement="left",n.showOnClick=!0,n.appendChild(this.abortQueryButton),e.appendChild(n),this.rootEl.appendChild(e),this.subscriptions.push(this.translationService.subscribeForLanguageChange({name:"AbortButtonLanguageChangeObserver",notify:this.updateAbortQueryLabels})),this.updateAbortQueryButton()}}},{key:"queryStateChanged",value:function(t,e){this.isQueryAborted=e,this.showAbortQueryButton=t,this.updateAbortQueryButton()}},{key:"updateAbortQueryButton",value:function(){Object(w.g)(this.abortQueryButton,"hidden"),this.abortQueryButton&&this.showAbortQueryButton&&(Object(w.l)(this.abortQueryButton,"hidden"),this.isQueryAborted?Object(w.g)(this.abortQueryButton,"disabled"):Object(w.l)(this.abortQueryButton,"disabled"),this.updateAbortQueryLabels())}},{key:"updateAbortQueryLabels",value:function(){var t,e;this.isQueryAborted?(t=this.translationService.translate("yasqe.footer_buttons.abort_query_requested.button.label"),e=this.translationService.translate("yasqe.footer_buttons.abort_query_requested.button.title")):(t=this.translationService.translate("yasqe.footer_buttons.abort_query.button.label"),e=this.translationService.translate("yasqe.footer_buttons.abort_query.button.title")),this.abortQueryButton&&(this.abortQueryButton.innerText=t),this.abortQueryButton&&(this.abortQueryButton.closest("yasgui-tooltip").dataTooltip=e)}},{key:"initDrag",value:function(){document.documentElement.addEventListener("mousemove",this.doDrag,!1),document.documentElement.addEventListener("mouseup",this.stopDrag,!1)}},{key:"calculateDragOffset",value:function(t,e){var n=0;e.offsetParent&&(n=e.offsetParent.offsetTop);for(var r=0,i=e.parentElement;i;)r+=i.scrollTop,i=i.parentElement;return t.clientY-n-this.rootEl.offsetTop+r}},{key:"doDrag",value:function(t){this.getWrapperElement().style.height=this.calculateDragOffset(t,this.rootEl)+"px"}},{key:"stopDrag",value:function(){document.documentElement.removeEventListener("mousemove",this.doDrag,!1),document.documentElement.removeEventListener("mouseup",this.stopDrag,!1),this.emit("resize",this.getWrapperElement().style.height),this.getStorageId()&&this.persistentConfig&&(this.persistentConfig.editorHeight=this.getWrapperElement().style.height,this.saveQuery()),this.refresh()}},{key:"duplicateLine",value:function(){var t=this.getDoc().getCursor();if(t){var e=this.getDoc().getLine(t.line);this.getDoc().replaceRange(e+"\n"+e,{ch:0,line:t.line},{ch:e.length,line:t.line})}}},{key:"updateQueryButton",value:function(t){var e,n,r;this.queryBtn&&(this.config.queryingDisabled?(Object(w.g)(this.queryBtn,"query_disabled"),r=this.translationService.translate("yasqe.action.run_query.btn.disabled.tooltip")):(Object(w.l)(this.queryBtn,"query_disabled"),r=this.translationService.translate("yasqe.action.run_query.btn.tooltip")),null===(e=this.queryBtn.parentElement)||void 0===e||e.setAttribute("data-tooltip",r),null===(n=this.queryBtn.parentElement)||void 0===n||n.setAttribute("aria-label",r),this.queryBtn.innerText=this.translationService.translate("yasqe.action.run_query.btn.label"),t||(t=this.queryValid?"valid":"error"),t!=this.queryStatus&&(Object(w.l)(this.queryBtn,"query_"+this.queryStatus),Object(w.g)(this.queryBtn,"query_"+t),this.queryStatus=t),this.req&&this.queryBtn.className.indexOf("busy")<0&&(this.queryBtn.className=this.queryBtn.className+=" busy"),!this.req&&this.queryBtn.className.indexOf("busy")>=0&&(this.queryBtn.className=this.queryBtn.className.replace("busy","")))}},{key:"handleLocalStorageQuotaFull",value:function(){console.warn("Localstorage quota exceeded. Clearing all queries"),n.clearStorage()}},{key:"saveQuery",value:function(){var t=this.getStorageId();t&&this.persistentConfig&&(this.persistentConfig.query=this.getValue(),this.storage.set(t,this.persistentConfig,this.config.persistencyExpire,this.handleLocalStorageQuotaFull))}},{key:"getQueryType",value:function(){return this.getOption("queryType")}},{key:"getQueryMode",value:function(){switch(this.getQueryType()){case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":return"update";default:return"query"}}},{key:"getVariablesFromQuery",value:function(){var t=this.getTokenAt({line:this.getDoc().lastLine(),ch:this.getDoc().getLine(this.getDoc().lastLine()).length},!0),e=[];for(var n in t.state.variables)e.push(n);return e.sort()}},{key:"autoformatSelection",value:function(t,e){var r=this.getValue();return r=r.substring(t,e),n.autoformatString(r)}},{key:"commentLines",value:function(){for(var t=this.getDoc().getCursor("start").line,e=this.getDoc().getCursor("end").line,n=Math.min(t,e),r=Math.max(t,e),i=!0,o=n;o<=r;o++){var a=this.getDoc().getLine(o);if(0==a.length||"#"!=a.substring(0,1)){i=!1;break}}for(o=n;o<=r;o++)i?this.getDoc().replaceRange("",{line:o,ch:0},{line:o,ch:1}):this.getDoc().replaceRange("#",{line:o,ch:0})}},{key:"autoformat",value:function(){var t=this;this.getDoc().somethingSelected()||this.execCommand("selectAll");var e=this.getDoc().getCursor("start"),n={line:this.getDoc().getCursor("end").line,ch:this.getDoc().getSelection().length},r=this.getDoc().indexFromPos(e),i=this.getDoc().indexFromPos(n),o=this.autoformatSelection(r,i);this.operation((function(){t.getDoc().replaceRange(o,e,n);for(var i=t.getDoc().posFromIndex(r).line,a=t.getDoc().posFromIndex(r+o.length).line,s=i;s<=a;s++)t.indentLine(s,"smart")}))}},{key:"getQueryWithValues",value:function(t){if(!t)return this.getValue();var e;if("string"==typeof t)e=t;else{t instanceof Array||(t=[t]);var r=t.reduce((function(t,e){for(var n in e)t[n]=n;return t}),{}),i=[];for(var o in r)i.push(o);if(!i.length)return this.getValue();e="VALUES ("+i.join(" ")+") {\n",t.forEach((function(t){e+="( ",i.forEach((function(n){e+=t[n]||"UNDEF"})),e+=" )\n"})),e+="}\n"}if(!e)return this.getValue();var a="",s=!1,u=!1;return n.runMode(this.getValue(),"sparql11",(function(t,n){"keyword"===n&&"select"===t.toLowerCase()&&(u=!0),a+=t,u&&!s&&"punc"===n&&"{"===t&&(s=!0,a+="\n"+e)})),a}},{key:"getValueWithoutComments",value:function(){var t="";return n.runMode(this.getValue(),"sparql11",(function(e,n){"comment"!=n&&(t+=e)})),t}},{key:"setCheckSyntaxErrors",value:function(t){this.config.syntaxErrorCheck=t,this.checkSyntax()}},{key:"checkSyntax",value:function(){this.queryValid=!0,this.clearGutter("gutterErrorBar");for(var t=0;t<this.getDoc().lineCount();++t){var e=!1;this.prevQueryValid||(e=!0);var n=this.getTokenAt({line:t,ch:this.getDoc().getLine(t).length},e),r=n.state;if(this.setOption("queryType",r.queryType),0==r.OK){if(!this.config.syntaxErrorCheck){for(var i=this.getWrapperElement().querySelectorAll(".sp-error"),o=0;o<i.length;o++){var a=i[o];a.style&&(a.style.color="black")}return}var s=Object(w.i)(B);if(r.errorMsg)N(0,s,Object(ot.a)(n.state.errorMsg));else if(r.possibleCurrent&&r.possibleCurrent.length>0){var u=[];r.possibleCurrent.forEach((function(t){u.push("<strong style='text-decoration:underline'>"+Object(ot.a)(t)+"</strong>")})),N(0,s,"".concat(this.translationService.translate("yasqe.check_syntax.error.invalid_line.prefix")," ").concat(u.join(", ")))}s.className="parseErrorIcon",this.setGutterMarker(t,"gutterErrorBar",s),this.queryValid=!1;break}}}},{key:"getCompleteToken",value:function(t,e){return function(t,e,n){return n||(n=t.getDoc().getCursor()),e||(e=t.getTokenAt(n)),function t(e,n,r){if(n.string.indexOf(" ")>=0){var i=n.string.indexOf(" ");return n.string=n.string.substr(0,i),n.end=n.start+n.string.length,n}if(!n.type)return n;var o=e.getTokenAt({line:r.line,ch:n.end+1});return"ws"!==o.type&&n.state.possibleFullIri&&null!==n.type&&"ws"!==n.type&&o.end!==n.end?(n.end=o.end,n.string=n.string+o.string,t(e,n,{line:r.line,ch:o.end})):"ws"===n.type?(n.end=n.end+1,n.string=n.string.substring(n.string.length-1),n):n}(t,function t(e,n,r){var i=e.getTokenAt({line:r.line,ch:n.start});return"punc"!==n.type&&"error"!==n.type||n.state.possibleFullIri||n.state.inPrefixDecl?"punc"!==i.type||i.state.possibleFullIri||i.state.inPrefixDecl?null!=i.type&&"ws"!=i.type&&null!=n.type&&"ws"!=n.type?(n.start=i.start,n.string=i.string+n.string,t(e,n,{line:r.line,ch:i.start})):null!=n.type&&"ws"==n.type?(n.start=n.start+1,n.string=n.string.substring(1),n):n:n:(n.state.possibleCurrent=n.state.possibleNext,n)}(t,e,n),n)}(this,t,e)}},{key:"getPreviousNonWsToken",value:function(t,e){return function t(e,n,r){var i=e.getTokenAt({line:n,ch:r.start});return null!=i&&"ws"==i.type&&(i=t(e,n,i)),i}(this,t,e)}},{key:"getNextNonWsToken",value:function(t,e){return x(this,t,e)}},{key:"showNotification",value:function(t,e){if(!this.notificationEls[t]){var n=document.createElement("div");Object(w.g)(n,"notificationContainer"),this.getWrapperElement().appendChild(n),this.notificationEls[t]=document.createElement("div"),Object(w.g)(this.notificationEls[t],"notification","notif_"+t),n.appendChild(this.notificationEls[t])}for(var r in this.notificationEls)r!==t&&this.hideNotification(r);var i=this.notificationEls[t];Object(w.g)(i,"active"),this.subscriptions.push(this.translationService.onTranslate(e,(function(t){i.innerText=t})))}},{key:"hideNotification",value:function(t){this.notificationEls[t]&&Object(w.l)(this.notificationEls[t],"active")}},{key:"enableCompleter",value:function(t){return n.Autocompleters[t]?(this.config.autocompleters.indexOf(t)<0&&this.config.autocompleters.push(t),(this.autocompleters[t]=new tt(this,n.Autocompleters[t])).initialize()):Promise.reject(new Error("Autocompleter "+t+" is not a registered autocompleter"))}},{key:"disableCompleter",value:function(t){this.config.autocompleters=this.config.autocompleters.filter((function(e){return e!==t})),this.autocompleters[t]=void 0}},{key:"autocomplete",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.getDoc().somethingSelected())for(var e in this.config.autocompleters){var n=this.autocompleters[this.config.autocompleters[e]];n&&n.autocomplete(t)}}},{key:"collapsePrefixes",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=T(this);void 0!==e&&this.foldCode(e,st.fold.prefix,t?"fold":"unfold")}},{key:"getPrefixesFromQuery",value:function(){return(t=this).getTokenAt({line:t.getDoc().lastLine(),ch:t.getDoc().getLine(t.getDoc().lastLine()).length},!0).state.prefixes;var t}},{key:"addPrefixes",value:function(t){return function(t,e){var n=t.getPrefixesFromQuery();if("string"==typeof e)S(t,e);else for(var r in e)r in n||S(t,r+": <"+e[r]+">");t.collapsePrefixes(!1)}(this,t)}},{key:"removePrefixes",value:function(t){return function(t,e){for(var n in e)t.setValue(t.getValue().replace(new RegExp("PREFIX\\s*"+n+":\\s*"+("<"+e[n]+">").replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+"\\s*","ig"),""));t.collapsePrefixes(!1)}(this,t)}},{key:"updateWidget",value:function(){if(this.cursorCoords&&this.state.completionActive&&this.state.completionActive.widget){var t=this.cursorCoords(null).bottom;this.state.completionActive.widget.hints.style.top=t+"px"}}},{key:"query",value:function(t,e){if(this.config.queryingDisabled)return Promise.reject("Querying is disabled.");if(e&&!(this.isSelectQuery()||this.isConstructQuery()||this.isDescribeQuery())){var n=this.translationService.translate("yasqe.keyboard_shortcuts.action.explain_plan_query.warning.message");return this.notificationMessageService.warning("explain_not_allowed",n),Promise.reject()}if(e&&this.isVirtualRepository){var r=this.translationService.translate("yasqe.explain_query.virtual_repository.error.message");return this.notificationMessageService.warning("explain_not_allowed",r),Promise.reject()}if(this.isUpdateQuery()&&this.isVirtualRepository){var i=this.translationService.translate("yasqe.update_query.virtual_repository.error.message");return this.notificationMessageService.warning("explain_not_allowed",i),Promise.reject()}return this.abortQuery(),this.setExplainPlanQueryType(e),D(this,t)}},{key:"emitEvent",value:function(t,e){this.eventService.emitEvent(this.rootEl,t,e)}},{key:"emitEventAsync",value:function(t,e){var n=this;setTimeout((function(){n.emitEvent(t,e)}),0)}},{key:"isSelectQuery",value:function(){var t;return"select"===(null===(t=this.getQueryType())||void 0===t?void 0:t.toLowerCase())}},{key:"isConstructQuery",value:function(){var t;return"construct"===(null===(t=this.getQueryType())||void 0===t?void 0:t.toLowerCase())}},{key:"isUpdateQuery",value:function(){var t;return"update"===(null===(t=this.getQueryMode())||void 0===t?void 0:t.toLowerCase())}},{key:"isDescribeQuery",value:function(){var t;return"describe"===(null===(t=this.getQueryType())||void 0===t?void 0:t.toLowerCase())}},{key:"isAskQuery",value:function(){return"ASK"===this.getQueryType()}},{key:"getUrlParams",value:function(){var t={};return window.location.hash.length>1&&(t=A.parse(location.hash)),t&&"query"in t||!(window.location.search.length>1)||(t=A.parse(window.location.search)),t}},{key:"configToQueryParams",value:function(){var t={};return window.location.hash.length>1&&(t=A.parse(window.location.hash)),t.query=this.getValue(),t}},{key:"queryParamsToConfig",value:function(t){t&&t.query&&"string"==typeof t.query&&this.setValue(t.query)}},{key:"getAsCurlString",value:function(t){return G(this,t)}},{key:"abortQuery",value:function(){var t;this.req&&(this.req.abort(),this.eventService.emitEvent(this.rootEl,"internalRequestAbortedEvent",{request:this.req,queryMode:null===(t=this.getQueryMode())||void 0===t?void 0:t.toLowerCase()}),this.emit("queryAbort",this,this.req),this.updateAbortQueryButton()),this.abortCountRequests()}},{key:"abortCountRequests",value:function(){this.countReq&&(this.countReq.abort(),this.eventService.emitEvent(this.rootEl,"internalRequestAbortedEvent",{request:this.countReq}),this.emit("countQueryFinished"))}},{key:"hasOngoingRequest",value:function(){return!!this.req}},{key:"expandEditor",value:function(){this.setSize(null,"100%")}},{key:"destroy",value:function(){var t;for(var e in this.subscriptions.forEach((function(t){return t()})),this.abortQuery(),this.unregisterEventListeners(),null===(t=this.resizeWrapper)||void 0===t||t.removeEventListener("mousedown",this.initDrag,!1),this.autocompleters)this.disableCompleter(e);window.removeEventListener("hashchange",this.handleHashChange),this.rootEl.remove()}}],[{key:"autoformatString",value:function(t){var e=[["keyword","ws","string-2","ws","variable-3"],["keyword","ws","variable-3"]],r=["}"],i="",o="",a=[];return n.runMode(t,"sparql11",(function(t,n){a.push(n);var s=function(t){if("{"===t)return 1;if("."===t)return 1;if(";"===t)return a.length>2&&"punc"===a[a.length-2]?0:1;for(var n=0;n<e.length;n++)if(a.valueOf().toString()===e[n].valueOf().toString())return 1;for(n=0;n<r.length;n++)if(""!==o.trim()&&t==r[n])return-1;return 0}(t);0!=s?(1==s?(i+=t+"\n",o=""):(i+="\n"+t,o=t),a=[]):(o+=t,i+=t),1==a.length&&"sp-ws"==a[0]&&(a=[])})),i.replace(/\n\s*\n/g,"\n").trim()}},{key:"clearStorage",value:function(){new w.d(n.storageNamespace).removeNamespace()}},{key:"registerAutocompleter",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.name;n.Autocompleters[r]=t,e&&n.defaults.autocompleters.indexOf(r)<0&&n.defaults.autocompleters.push(r)}},{key:"forkAutocompleter",value:function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n.Autocompleters[t])throw new Error("Autocompleter "+t+" does not exist");if(!(null==e?void 0:e.name))throw new Error("Expected a name for newly registered autocompleter");var i=e.name;n.Autocompleters[i]=Object.assign(Object.assign({},n.Autocompleters[t]),e),r&&n.defaults.autocompleters.indexOf(i)<0&&n.defaults.autocompleters.push(i)}}]),n}(st);vt.storageNamespace="triply",vt.Sparql=r,vt.runMode=st.runMode,vt.Autocompleters={},vt.defaults=(ct=(0===window.location.protocol.indexOf("http")?"//":"http://")+"prefix.cc/popular/all.file.json",ft=n(4),dt={translationService:w.f.INSTANCE,notificationMessageService:w.b.INSTANCE,eventService:w.a.INSTANCE,tabId:"",isVirtualRepository:!1,beforeUpdateQuery:function(){return Promise.resolve({status:pt.SUCCESS})},getRepositoryStatementsCount:function(){return Promise.resolve(0)},mode:"sparql11",value:"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nSELECT * WHERE {\n ?sub ?pred ?obj .\n} LIMIT 10",highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,indentUnit:4,foldGutter:{rangeFinder:new ft.fold.combine(ft.fold.brace,ft.fold.prefix)},collapsePrefixesOnLoad:!1,gutters:["gutterErrorBar","CodeMirror-linenumbers","CodeMirror-foldgutter"],matchBrackets:!0,autoCloseBrackets:!0,fixedGutter:!0,syntaxErrorCheck:!0,autocompleters:[],extraKeys:{"Ctrl-Space":function(t){t.autocomplete()},"Alt-Enter":function(t){t.autocomplete()},"Shift-Ctrl-K":function(t){var e=t,n=e.getDoc().getCursor().line;return n===e.getDoc().lastLine()&&n>1?e.getDoc().replaceRange("",{ch:e.getDoc().getLine(n-1).length,line:n-1},{ch:e.getDoc().getLine(n).length,line:n}):e.getDoc().replaceRange("",{ch:0,line:n},{ch:0,line:n+1})},"Ctrl-/":function(t){t.commentLines()},"Shift-Ctrl-D":function(t){t.duplicateLine()},"Shift-Ctrl-F":function(t){t.autoformat()},"Ctrl-S":function(t){t.saveQuery()},"Cmd-Enter":function(t){t.query().catch((function(){}))},"Ctrl-Enter":function(t){t.query().catch((function(){}))},Esc:function(t){t.getInputField().blur()}},createShareableLink:function(t){return document.location.protocol+"//"+document.location.host+document.location.pathname+document.location.search+"#"+A.stringify(t.configToQueryParams())},pluginButtons:void 0,createShortLink:void 0,consumeShareLink:function(t){t.queryParamsToConfig(t.getUrlParams())},persistenceId:function(t){var e="",n=t.rootEl;for(n.id&&(e=n.id);n&&n!==document;n=n.parentNode)if(n){n.id&&(e=n.id);break}return"yasqe_"+e+"_query"},persistencyExpire:2592e3,showQueryButton:!0,hintConfig:{},resizeable:!0,editorHeight:"300px",queryingDisabled:void 0,prefixCcApi:ct,prefixes:[]},ht={queryArgument:void 0,endpoint:"https://dbpedia.org/sparql",method:"POST",acceptHeaderGraph:"application/n-triples,*/*;q=0.9",acceptHeaderSelect:"application/sparql-results+json,*/*;q=0.9",acceptHeaderUpdate:"text/plain,*/*;q=0.9",namedGraphs:[],defaultGraphs:[],args:[],headers:{},withCredentials:!1,adjustQueryBeforeRequest:!1},Object.assign(Object.assign({},dt),{requestConfig:ht})),Object.assign(st.prototype,vt.prototype),function(t){t.ERROR="error",t.SUCCESS="success"}(pt||(pt={})),it.forEach((function(t){vt.registerAutocompleter(t)})),e.default=vt},function(t,e,n){var r=n(7).a.Uint8Array;e.a=r},function(t,e){e.a=function(t){return function(e){return t(e)}}},function(t,e,n){var r=n(52);e.a=function(t){var e=new t.constructor(t.byteLength);return new r.a(e).set(new r.a(t)),e}},function(t,e,n){n.r(e),n.d(e,"Parser",(function(){return qt})),n.d(e,"Yasr",(function(){return be})),n.d(e,"registerPlugin",(function(){return ge}));var r=n(45),i=n.n(r),o=n(10),a=n.n(o),s=n(1),u=n.n(s),l=n(2),c=n.n(l),f=n(8),d=n.n(f),h=n(11),p=n.n(h),v=n(3),b=n.n(v),g=n(47),m=n(174),y=n(30),E=0,x=function(t){var e=++E;return Object(y.a)(t)+e},T=n(92),_=n(77),S=n(16),w=function(t){return function(e,n){if(null==e)return e;if(!Object(S.a)(e))return t(e,n);for(var r=e.length,i=-1,o=Object(e);++i<r&&!1!==n(o[i],i,o););return e}}(_.a),A=function(t,e){var n=[];return w(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n},N=n(61),I=n(6),C=function(t,e){return(Object(I.a)(t)?T.a:A)(t,Object(N.a)(e,3))},L=n(179),R=n(0),O=function(t,e){if("string"==typeof t){var n=JSON.parse(t);if(e&&n.results)for(var r in n.results.bindings)n.results.bindings[r]=e(n.results.bindings[r]);return n}if("object"==i()(t)&&t.constructor==={}.constructor){if(e&&t.results)for(var o in t.results.bindings)t.results.bindings[o]=e(t.results.bindings[o]);return t}throw new Error("Could not parse json")},k=n(147),P=n(21);function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&j(t,e)}function j(t,e){return(j=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function q(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=G(t);if(e){var i=G(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return F(this,n)}}function F(t,e){return!e||"object"!==D(e)&&"function"!=typeof e?U(t):e}function U(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function G(t){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function B(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function V(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function H(t,e,n){return e&&V(t.prototype,e),n&&V(t,n),t}var z,$=P.a.rdf,Y=P.a.xsd,W=0,Q={namedNode:function(t){return new Z(t)},blankNode:function(t){return new tt(t||"n3-".concat(W++))},variable:function(t){return new et(t)},literal:function(t,e){if("string"==typeof e)return new J('"'+t+'"@'+e.toLowerCase());var n=e?e.value:"";return""===n&&("boolean"==typeof t?n=Y.boolean:"number"==typeof t&&(Number.isFinite(t)?n=Number.isInteger(t)?Y.integer:Y.double:(n=Y.double,Number.isNaN(t)||(t=t>0?"INF":"-INF")))),new J(""===n||n===Y.string?'"'+t+'"':'"'+t+'"^^'+n)},defaultGraph:function(){return z},quad:rt,triple:rt},K=Q,X=function(){function t(e){B(this,t),this.id=e}return H(t,[{key:"equals",value:function(e){return e instanceof t?this.id===e.id:!!e&&this.termType===e.termType&&this.value===e.value}},{key:"toJSON",value:function(){return{termType:this.termType,value:this.value}}},{key:"value",get:function(){return this.id}}]),t}(),Z=function(t){M(n,t);var e=q(n);function n(){return B(this,n),e.apply(this,arguments)}return H(n,[{key:"termType",get:function(){return"NamedNode"}}]),n}(X),J=function(t){M(n,t);var e=q(n);function n(){return B(this,n),e.apply(this,arguments)}return H(n,[{key:"equals",value:function(t){return t instanceof n?this.id===t.id:!!t&&!!t.datatype&&this.termType===t.termType&&this.value===t.value&&this.language===t.language&&this.datatype.value===t.datatype.value}},{key:"toJSON",value:function(){return{termType:this.termType,value:this.value,language:this.language,datatype:{termType:"NamedNode",value:this.datatypeString}}}},{key:"termType",get:function(){return"Literal"}},{key:"value",get:function(){return this.id.substring(1,this.id.lastIndexOf('"'))}},{key:"language",get:function(){var t=this.id,e=t.lastIndexOf('"')+1;return e<t.length&&"@"===t[e++]?t.substr(e).toLowerCase():""}},{key:"datatype",get:function(){return new Z(this.datatypeString)}},{key:"datatypeString",get:function(){var t,e=this.id,n=e.lastIndexOf('"')+1;return n<e.length&&"^"===(t=e[n])?e.substr(n+2):"@"!==t?Y.string:$.langString}}]),n}(X),tt=function(t){M(n,t);var e=q(n);function n(t){return B(this,n),e.call(this,"_:"+t)}return H(n,[{key:"termType",get:function(){return"BlankNode"}},{key:"value",get:function(){return this.id.substr(2)}}]),n}(X),et=function(t){M(n,t);var e=q(n);function n(t){return B(this,n),e.call(this,"?"+t)}return H(n,[{key:"termType",get:function(){return"Variable"}},{key:"value",get:function(){return this.id.substr(1)}}]),n}(X);z=new(function(t){M(n,t);var e=q(n);function n(){var t;return B(this,n),F(t=e.call(this,""),z||U(t))}return H(n,[{key:"equals",value:function(t){return this===t||!!t&&this.termType===t.termType}},{key:"termType",get:function(){return"DefaultGraph"}}]),n}(X));var nt=function(){function t(e,n,r,i){B(this,t),this.subject=e,this.predicate=n,this.object=r,this.graph=i||z}return H(t,[{key:"toJSON",value:function(){return{subject:this.subject.toJSON(),predicate:this.predicate.toJSON(),object:this.object.toJSON(),graph:this.graph.toJSON()}}},{key:"equals",value:function(t){return!!t&&this.subject.equals(t.subject)&&this.predicate.equals(t.predicate)&&this.object.equals(t.object)&&this.graph.equals(t.graph)}}]),t}();function rt(t,e,n,r){return new nt(t,e,n,r)}function it(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ot=0,at=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._contextStack=[],this._graph=null,this._setBase((e=e||{}).baseIRI),e.factory&&ut(this,e.factory);var n="string"==typeof e.format?e.format.match(/\w*$/)[0].toLowerCase():"",r="turtle"===n,i="trig"===n,o=/triple/.test(n),a=/quad/.test(n),s=this._n3Mode=/n3/.test(n),u=o||a;(this._supportsNamedGraphs=!(r||s))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(r||i||o||s),u&&(this._resolveRelativeIRI=function(){return null}),this._blankNodePrefix="string"!=typeof e.blankNodePrefix?"":e.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=e.lexer||new k.a({lineMode:u,n3:s}),this._explicitQuantifiers=!!e.explicitQuantifiers}var e,n,r;return e=t,r=[{key:"_resetBlankNodePrefix",value:function(){ot=0}}],(n=[{key:"_setBase",value:function(t){if(t){var e=t.indexOf("#");e>=0&&(t=t.substr(0,e)),this._base=t,this._basePath=t.indexOf("/")<0?t:t.replace(/[^\/?]*(?:\?.*)?$/,""),t=t.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=t[0],this._baseScheme=t[1]}else this._base="",this._basePath=""}},{key:"_saveContext",value:function(t,e,n,r,i){var o=this._n3Mode;this._contextStack.push({subject:n,predicate:r,object:i,graph:e,type:t,inverse:!!o&&this._inversePredicate,blankPrefix:o?this._prefixes._:"",quantified:o?this._quantified:null}),o&&(this._inversePredicate=!1,this._prefixes._=this._graph?this._graph.id.substr(2)+".":".",this._quantified=Object.create(this._quantified))}},{key:"_restoreContext",value:function(){var t=this._contextStack.pop(),e=this._n3Mode;this._subject=t.subject,this._predicate=t.predicate,this._object=t.object,this._graph=t.graph,e&&(this._inversePredicate=t.inverse,this._prefixes._=t.blankPrefix,this._quantified=t.quantified)}},{key:"_readInTopContext",value:function(t){switch(t.type){case"eof":return null!==this._graph?this._error("Unclosed graph",t):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(t)}}},{key:"_readEntity",value:function(t,e){var n;switch(t.type){case"IRI":case"typeIRI":var r=this._resolveIRI(t.value);if(null===r)return this._error("Invalid IRI",t);n=this._namedNode(r);break;case"type":case"prefixed":var i=this._prefixes[t.prefix];if(void 0===i)return this._error('Undefined prefix "'+t.prefix+':"',t);n=this._namedNode(i+t.value);break;case"blank":n=this._blankNode(this._prefixes[t.prefix]+t.value);break;case"var":n=this._variable(t.value.substr(1));break;default:return this._error("Expected entity but got "+t.type,t)}return!e&&this._n3Mode&&n.id in this._quantified&&(n=this._quantified[n.id]),n}},{key:"_readSubject",value:function(t){switch(this._predicate=null,t.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._blankNode(),null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._blankNode(),null,null),this._readSubject):this._error("Unexpected graph",t);case"}":return this._readPunctuation(t);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier=this._blankNode,this._readQuantifierList):this._error('Unexpected "@forSome"',t);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier=this._variable,this._readQuantifierList):this._error('Unexpected "@forAll"',t);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",t);if(0===t.prefix.length)return this._literalValue=t.value,this._completeSubjectLiteral;this._subject=this._literal(t.value,this._namedNode(t.prefix));break;default:if(void 0===(this._subject=this._readEntity(t)))return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}},{key:"_readPredicate",value:function(t){var e=t.type;switch(e){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[t.value];break;case".":case"]":case"}":return null===this._predicate?this._error("Unexpected "+e,t):(this._subject=null,"]"===e?this._readBlankNodeTail(t):this._readPunctuation(t));case";":return null!==this._predicate?this._readPredicate:this._error("Expected predicate but got ;",t);case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",t);default:if(void 0===(this._predicate=this._readEntity(t)))return}return this._readObject}},{key:"_readObject",value:function(t){switch(t.type){case"literal":if(0===t.prefix.length)return this._literalValue=t.value,this._readDataTypeOrLang;this._object=this._literal(t.value,this._namedNode(t.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._blankNode()),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",t);default:if(void 0===(this._object=this._readEntity(t)))return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}},{key:"_readPredicateOrNamedGraph",value:function(t){return"{"===t.type?this._readGraph(t):this._readPredicate(t)}},{key:"_readGraph",value:function(t){return"{"!==t.type?this._error("Expected graph but got "+t.type,t):(this._graph=this._subject,this._subject=null,this._readSubject)}},{key:"_readBlankNodeHead",value:function(t){return"]"===t.type?(this._subject=null,this._readBlankNodeTail(t)):(this._predicate=null,this._readPredicate(t))}},{key:"_readBlankNodeTail",value:function(t){if("]"!==t.type)return this._readBlankNodePunctuation(t);null!==this._subject&&this._emit(this._subject,this._predicate,this._object,this._graph);var e=null===this._predicate;return this._restoreContext(),null===this._object?e?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank:this._getContextEndReader()}},{key:"_readPredicateAfterBlank",value:function(t){switch(t.type){case".":case"}":return this._subject=null,this._readPunctuation(t);default:return this._readPredicate(t)}}},{key:"_readListItem",value:function(t){var e=null,n=null,r=this._subject,i=this._contextStack,o=i[i.length-1],a=this._readListItem;switch(t.type){case"[":this._saveContext("blank",this._graph,n=this._blankNode(),this.RDF_FIRST,this._subject=e=this._blankNode()),a=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,n=this._blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext(),0!==i.length&&"list"===i[i.length-1].type&&this._emit(this._subject,this._predicate,this._object,this._graph),null===this._predicate){if(a=this._readPredicate,this._subject===this.RDF_NIL)return a}else if(a=this._getContextEndReader(),this._object===this.RDF_NIL)return a;n=this.RDF_NIL;break;case"literal":0===t.prefix.length?(this._literalValue=t.value,a=this._readListItemDataTypeOrLang):(e=this._literal(t.value,this._namedNode(t.prefix)),a=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",t);default:if(void 0===(e=this._readEntity(t)))return}if(null===n&&(this._subject=n=this._blankNode()),null===r?null===o.predicate?o.subject=n:o.object=n:this._emit(r,this.RDF_REST,n,this._graph),null!==e){if(this._n3Mode&&("IRI"===t.type||"prefixed"===t.type))return this._saveContext("item",this._graph,n,this.RDF_FIRST,e),this._subject=e,this._predicate=null,this._getPathReader(this._readListItem);this._emit(n,this.RDF_FIRST,e,this._graph)}return a}},{key:"_readDataTypeOrLang",value:function(t){return this._completeObjectLiteral(t,!1)}},{key:"_readListItemDataTypeOrLang",value:function(t){return this._completeObjectLiteral(t,!0)}},{key:"_completeLiteral",value:function(t){var e=this._literal(this._literalValue);switch(t.type){case"type":case"typeIRI":var n=this._readEntity(t);if(void 0===n)return;e=this._literal(this._literalValue,n),t=null;break;case"langcode":e=this._literal(this._literalValue,t.value),t=null}return{token:t,literal:e}}},{key:"_completeSubjectLiteral",value:function(t){return this._subject=this._completeLiteral(t).literal,this._readPredicateOrNamedGraph}},{key:"_completeObjectLiteral",value:function(t,e){var n=this._completeLiteral(t);if(n)return this._object=n.literal,e&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),null===n.token?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(n.token))}},{key:"_readFormulaTail",value:function(t){return"}"!==t.type?this._readPunctuation(t):(null!==this._subject&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext(),null===this._object?this._readPredicate:this._getContextEndReader())}},{key:"_readPunctuation",value:function(t){var e,n=this._subject,r=this._graph,i=this._inversePredicate;switch(t.type){case"}":if(null===this._graph)return this._error("Unexpected graph closing",t);if(this._n3Mode)return this._readFormulaTail(t);this._graph=null;case".":this._subject=null,e=this._contextStack.length?this._readSubject:this._readInTopContext,i&&(this._inversePredicate=!1);break;case";":e=this._readPredicate;break;case",":e=this._readObject;break;default:if(this._supportsQuads&&null===this._graph&&void 0!==(r=this._readEntity(t))){e=this._readQuadPunctuation;break}return this._error('Expected punctuation to follow "'+this._object.id+'"',t)}if(null!==n){var o=this._predicate,a=this._object;i?this._emit(a,o,n,r):this._emit(n,o,a,r)}return e}},{key:"_readBlankNodePunctuation",value:function(t){var e;switch(t.type){case";":e=this._readPredicate;break;case",":e=this._readObject;break;default:return this._error('Expected punctuation to follow "'+this._object.id+'"',t)}return this._emit(this._subject,this._predicate,this._object,this._graph),e}},{key:"_readQuadPunctuation",value:function(t){return"."!==t.type?this._error("Expected dot to follow quad",t):this._readInTopContext}},{key:"_readPrefix",value:function(t){return"prefix"!==t.type?this._error("Expected prefix to follow @prefix",t):(this._prefix=t.value,this._readPrefixIRI)}},{key:"_readPrefixIRI",value:function(t){if("IRI"!==t.type)return this._error('Expected IRI to follow prefix "'+this._prefix+':"',t);var e=this._readEntity(t);return this._prefixes[this._prefix]=e.value,this._prefixCallback(this._prefix,e),this._readDeclarationPunctuation}},{key:"_readBaseIRI",value:function(t){var e="IRI"===t.type&&this._resolveIRI(t.value);return e?(this._setBase(e),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",t)}},{key:"_readNamedGraphLabel",value:function(t){switch(t.type){case"IRI":case"blank":case"prefixed":return this._readSubject(t),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",t)}}},{key:"_readNamedGraphBlankLabel",value:function(t){return"]"!==t.type?this._error("Invalid graph label",t):(this._subject=this._blankNode(),this._readGraph)}},{key:"_readDeclarationPunctuation",value:function(t){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(t)):"."!==t.type?this._error("Expected declaration to end with a dot",t):this._readInTopContext}},{key:"_readQuantifierList",value:function(t){var e;switch(t.type){case"IRI":case"prefixed":if(void 0!==(e=this._readEntity(t,!0)))break;default:return this._error("Unexpected "+t.type,t)}return this._explicitQuantifiers?(null===this._subject?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,e,this.QUANTIFIERS_GRAPH)):this._quantified[e.id]=this._quantifier(this._blankNode().value),this._readQuantifierPunctuation}},{key:"_readQuantifierPunctuation",value:function(t){return","===t.type?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(t))}},{key:"_getPathReader",value:function(t){return this._afterPath=t,this._readPath}},{key:"_readPath",value:function(t){switch(t.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:var e=this._contextStack,n=e.length&&e[e.length-1];if(n&&"item"===n.type){var r=this._subject;this._restoreContext(),this._emit(this._subject,this.RDF_FIRST,r,this._graph)}return this._afterPath(t)}}},{key:"_readForwardPath",value:function(t){var e,n,r=this._blankNode();if(void 0!==(n=this._readEntity(t)))return null===this._predicate?(e=this._subject,this._subject=r):(e=this._object,this._object=r),this._emit(e,n,r,this._graph),this._readPath}},{key:"_readBackwardPath",value:function(t){var e,n,r=this._blankNode();if(void 0!==(e=this._readEntity(t)))return null===this._predicate?(n=this._subject,this._subject=r):(n=this._object,this._object=r),this._emit(r,e,n,this._graph),this._readPath}},{key:"_getContextEndReader",value:function(){var t=this._contextStack;if(!t.length)return this._readPunctuation;switch(t[t.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail}}},{key:"_emit",value:function(t,e,n,r){this._callback(null,this._quad(t,e,n,r||this.DEFAULTGRAPH))}},{key:"_error",value:function(t,e){var n=new Error(t+" on line "+e.line+".");n.context={token:e,line:e.line,previousToken:this._lexer.previousToken},this._callback(n),this._callback=st}},{key:"_resolveIRI",value:function(t){return/^[a-z][a-z0-9+.-]*:/i.test(t)?t:this._resolveRelativeIRI(t)}},{key:"_resolveRelativeIRI",value:function(t){if(!t.length)return this._base;switch(t[0]){case"#":return this._base+t;case"?":return this._base.replace(/(?:\?.*)?$/,t);case"/":return("/"===t[1]?this._baseScheme:this._baseRoot)+this._removeDotSegments(t);default:return/^[^/:]*:/.test(t)?null:this._removeDotSegments(this._basePath+t)}}},{key:"_removeDotSegments",value:function(t){if(!/(^|\/)\.\.?($|[/#?])/.test(t))return t;for(var e="",n=t.length,r=-1,i=-1,o=0,a="/";r<n;){switch(a){case":":if(i<0&&"/"===t[++r]&&"/"===t[++r])for(;(i=r+1)<n&&"/"!==t[i];)r=i;break;case"?":case"#":r=n;break;case"/":if("."===t[r+1])switch(a=t[1+ ++r]){case"/":e+=t.substring(o,r-1),o=r+1;break;case void 0:case"?":case"#":return e+t.substring(o,r)+t.substr(r+1);case".":if(void 0===(a=t[1+ ++r])||"/"===a||"?"===a||"#"===a){if((o=(e+=t.substring(o,r-2)).lastIndexOf("/"))>=i&&(e=e.substr(0,o)),"/"!==a)return e+"/"+t.substr(r+1);o=r+1}}}a=t[++r]}return e+t.substring(o)}},{key:"parse",value:function(t,e,n){var r=this;if(this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):"b"+ot+++"_",this._prefixCallback=n||st,this._inversePredicate=!1,this._quantified=Object.create(null),!e){var i,o=[];if(this._callback=function(t,e){t?i=t:e&&o.push(e)},this._lexer.tokenize(t).every((function(t){return r._readCallback=r._readCallback(t)})),i)throw i;return o}this._callback=e,this._lexer.tokenize(t,(function(t,e){null!==t?(r._callback(t),r._callback=st):r._readCallback&&(r._readCallback=r._readCallback(e))}))}}])&&it(e.prototype,n),r&&it(e,r),t}();function st(){}function ut(t,e){var n=e.namedNode;t._namedNode=n,t._blankNode=e.blankNode,t._literal=e.literal,t._variable=e.variable,t._quad=e.quad,t.DEFAULTGRAPH=e.defaultGraph(),t.RDF_FIRST=n(P.a.rdf.first),t.RDF_REST=n(P.a.rdf.rest),t.RDF_NIL=n(P.a.rdf.nil),t.N3_FORALL=n(P.a.r.forAll),t.N3_FORSOME=n(P.a.r.forSome),t.ABBREVIATIONS={a:n(P.a.rdf.type),"=":n(P.a.owl.sameAs),">":n(P.a.log.implies)},t.QUANTIFIERS_GRAPH=n("urn:n3:quantifiers")}function lt(t){if("NamedNode"===t.termType)return{value:t.value,type:"uri"};if("Literal"===t.termType){var e={value:t.value,type:"literal"},n=t.language;n&&(e["xml:lang"]=n);var r=t.datatypeString;return r&&(e.datatype=r),e}return"BlankNode"===t.termType?{value:t.value,type:"bnode"}:{value:t.value,type:"uri"}}function ct(t){return(new at).parse(t||"")}ut(at.prototype,K);var ft=n(57),dt=Object(ft.a)({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),ht=/&(?:amp|lt|gt|quot|#39);/g,pt=RegExp(ht.source),vt=function(t){return(t=Object(y.a)(t))&&pt.test(t)?t.replace(ht,dt):t},bt=n(93),gt=n(27),mt=n(24),yt=n(22),Et=n(34),xt=n(36),Tt=Object.prototype.hasOwnProperty,_t=function(t){if(null==t)return!0;if(Object(S.a)(t)&&(Object(I.a)(t)||"string"==typeof t||"function"==typeof t.splice||Object(yt.a)(t)||Object(xt.a)(t)||Object(mt.a)(t)))return!t.length;var e=Object(gt.a)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(Object(Et.a)(t))return!Object(bt.a)(t).length;for(var n in t)if(Tt.call(t,n))return!1;return!0};function St(t){for(var e={vars:[]},n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if("variable"==r.nodeName){var i=r.getAttribute("name");i&&e.vars.push(i)}}return e}var wt=["uri","literal","bnode","typed-literal"];function At(t,e){for(var n={bindings:[]},r=0;r<t.childNodes.length;r++){for(var i=t.childNodes[r],o={},a=0;a<i.childNodes.length;a++){var s=i.childNodes[a];if("binding"==s.nodeName){var u=s.getAttribute("name");if(u)for(var l=0;l<s.childNodes.length;l++){var c=s.childNodes[l];if("#text"!==c.nodeName&&!(wt.indexOf(c.nodeName)<0)){var f={type:c.nodeName,value:vt(c.innerHTML)},d=c.getAttribute("datatype");d&&(f.datatype=d),o[u]=f}}}}_t(o)||n.bindings.push(e(o))}return n}function Nt(t){return"true"===t.innerHTML}var It=function(t,e){if("string"==typeof t){var n=(new DOMParser).parseFromString(t,"text/xml");if(n.childNodes.length){for(var r=n.childNodes[0],i={},o=0;o<r.childNodes.length;o++){var a=r.childNodes[o];"head"==a.nodeName&&(i.head=St(a)),"results"==a.nodeName&&(i.results=At(a,e)),"boolean"==a.nodeName&&(i.boolean=Nt(a))}return i}}},Ct=n(149),Lt=n(63),Rt=n.n(Lt),Ot=n(150),kt=n.n(Ot);function Pt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Dt=n(151),Mt=n(190),jt=function t(e){for(var n in e)"uri"!==e[n].type&&("triple"===e[n].type?t(e[n].value):e[n].value=e[n].value.replace(/{{(.*?)}}/g,(function(t){return t=t.substring(2,t.length-2).trim(),e[t]?e[t].value:t})));return e},qt=function(){function t(e,n,r,i,o,a){u()(this,t),e.executionTime&&(this.executionTime=e.executionTime),n&&(this.executionTime=n),this.queryStartedTime=r||e.queryStartedTime,this.hasMorePages=i||e.hasMorePages,this.possibleElementsCount=o||e.possibleElementsCount,this.customResultMessage=a||e.customResultMessage,this.countAffectedRepositoryStatements=e.countAffectedRepositoryStatements,e instanceof Error?this.error=e:e.xhr?this.setResponse(e):this.setSummary(e)}return c()(t,[{key:"setResponse",value:function(t){this.res=t}},{key:"setSummary",value:function(t){this.summary=t.data||t.error?t:{data:t}}},{key:"hasError",value:function(){return!!(this.res&&this.res.status>=400||this.errorSummary||this.error||this.summary&&this.summary.error)}},{key:"getError",value:function(){return this.errorSummary||(this.res&&this.res.status>=400&&(this.errorSummary={text:this.res.text,status:this.res.status,statusText:this.res.error?this.res.error.text:void 0}),this.summary&&this.summary.error&&(this.errorSummary=this.summary.error),this.error&&("response"in this.error&&void 0!==this.error.response?(this.errorSummary={text:this.error.response.text,status:this.error.response.status,statusText:this.error.response.statusText},this.error.response.body&&"object"===i()(this.error.response.body)&&"message"in this.error.response.body&&(this.errorSummary.text=this.error.response.body.message)):this.errorSummary={text:this.error.message})),this.error instanceof R.c&&(this.errorSummary={text:this.error.message,messageLabelKey:this.error.messageLabelKey,parameters:this.error.parameters}),this.errorSummary}},{key:"getContentType",value:function(){return this.res?this.res.header["content-type"]:this.summary?this.summary.contentType:void 0}},{key:"getAsJson",value:function(){return this.json?this.json:!1===this.json||this.hasError()?void 0:(this.getParserFromContentType()||this.doLuckyGuess()||this.json||(this.json=!1),this.json)}},{key:"getData",value:function(){if(this.res){if(this.res.body)return this.res.body;if(this.res.text)return this.res.text}if(this.summary)return this.summary.data}},{key:"getResponseTime",value:function(){return this.executionTime}},{key:"getQueryStartedTime",value:function(){return this.queryStartedTime}},{key:"getHasMorePages",value:function(){return this.hasMorePages}},{key:"getPossibleElementsCount",value:function(){return this.possibleElementsCount}},{key:"getCustomResultMessage",value:function(){return this.customResultMessage}},{key:"setCountAffectedRepositoryStatements",value:function(t){this.countAffectedRepositoryStatements=t}},{key:"getCountAffectedRepositoryStatements",value:function(){return this.countAffectedRepositoryStatements}},{key:"setTotalElements",value:function(t){this.totalElements=t}},{key:"getTotalElements",value:function(){return this.totalElements}},{key:"getParserFromContentType",value:function(){var t=this.getContentType();if(t){var e=Object(Mt.a)(this.getData());try{if(t.indexOf("json")>-1){if(t.indexOf("sparql-results+json")>=0)return this.json=O(e,jt),this.type="json",!0;if(t.indexOf("application/rdf+json")>-1)return this.type="json",!0;this.type="json"}else{if(t.indexOf("xml")>-1)return this.json=It(e,jt),this.type="xml",!0;if(t.indexOf("csv")>-1)return this.json=function(t){var e=Ct.parse(t,{header:!0,skipEmptyLines:!0});if(void 0===e.meta.fields)throw new Error("Could not parse CSV, no headers found!");return{head:{vars:e.meta.fields},results:{bindings:e.data.map((function(t){var e={};for(var n in t)e[n]={value:t[n],type:"literal"};return e}))}}}(e),this.type="csv",!0;if(t.indexOf("tab-separated")>-1)return this.json=function(t){var e=t.split("\n");e.pop();var n=kt()(e),r=n[0],i=n.slice(1),o=r.split("\t").map((function(t){return t.substring(1)})),a=i.map((function(t){var e,n={},r=function(t){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function(t,e){if(t){if("string"==typeof t)return Pt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pt(t,e):void 0}}(t))){e&&(t=e);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==e.return||e.return()}finally{if(a)throw i}}}}(t.split("\t").entries());try{for(r.s();!(e=r.n()).done;){var i=Rt()(e.value,2),a=i[1],s=o[i[0]];if("<"===a[0])n[s]={value:a.substring(1,a.length-1),type:"uri"};else if('"'===a[0]){var u=a.lastIndexOf('"'),l=a.substring(1,u);if(u===a.length-1)n[s]={value:l,type:"literal"};else if(u<a.lastIndexOf("@")){var c=a.substring(a.lastIndexOf("@")+1);n[s]={value:l,type:"literal","xml:lang":c}}else if(u<a.lastIndexOf("^^")){var f=a.substring(a.lastIndexOf("^^")+2);n[s]={value:l,type:"typed-literal",datatype:f}}}}}catch(t){r.e(t)}finally{r.f()}return n}));return{head:{vars:o},results:{bindings:a}}}(e),this.type="tsv",!0;if(t.indexOf("turtle")>0||t.indexOf("trig")>0||t.indexOf("triple")>0||t.indexOf("quad")>0)return this.json={head:{vars:["subject","predicate","object"]},results:{bindings:ct(e).map((function(t){return{subject:lt(t.subject),predicate:lt(t.predicate),object:lt(t.object)}}))}},this.type="ttl",!0}}catch(t){this.errorSummary=t instanceof Error?{text:t.message}:{text:t}}}return!1}},{key:"doLuckyGuess",value:function(){var t=Object(Mt.a)(this.getData());try{return this.json=O(t,jt),this.type="json",!0}catch(t){}try{return this.json=It(t,jt),this.type="xml",!0}catch(t){}return!1}},{key:"getVariables",value:function(){var t=this.getAsJson();return t&&t.head?t.head.vars:[]}},{key:"getBoolean",value:function(){var t=this.getAsJson();if(t&&"boolean"in t)return t.boolean}},{key:"getBindings",value:function(){var t=this.getAsJson();return t&&t.results?t.results.bindings:null}},{key:"getStatements",value:function(){return this.statements||"ttl"!==this.type||(this.statements=ct(this.getData())),this.statements?this.statements:null}},{key:"getOriginalResponseAsString",value:function(){var t=this.getData();return"string"==typeof t?t:"json"===this.type?JSON.stringify(t,void 0,2):t}},{key:"getOriginalResponse",value:function(){var t;return null===(t=this.res)||void 0===t?void 0:t.body}},{key:"getType",value:function(){return this.type||this.getAsJson(),this.type}},{key:"getStatus",value:function(){return this.res?this.res.status:this.summary?this.summary.status:void 0}},{key:"getAsStoreObject",value:function(t){var e=this.summary;if(!e&&this.res&&(e={contentType:this.getContentType(),data:this.getOriginalResponseAsString(),error:this.getError(),status:this.getStatus(),executionTime:this.getResponseTime(),queryStartedTime:this.getQueryStartedTime(),hasMorePages:this.getHasMorePages(),possibleElementsCount:this.getPossibleElementsCount(),countAffectedRepositoryStatements:this.getCountAffectedRepositoryStatements(),customResultMessage:this.getCustomResultMessage()}),e){if(e.data&&e.data.length>t)return;return e}if(this.error)return{error:this.getError(),executionTime:this.getResponseTime(),queryStartedTime:this.getQueryStartedTime(),hasMorePages:this.getHasMorePages(),possibleElementsCount:this.getPossibleElementsCount(),countAffectedRepositoryStatements:this.getCountAffectedRepositoryStatements(),customResultMessage:this.getCustomResultMessage()}}},{key:"asCsv",value:function(){var t,e,n,r,i=this.getAsJson();return"csv"===this.type?this.getOriginalResponseAsString():i&&i.results?(n=(t=i).head.vars,r=null===(e=t.results)||void 0===e?void 0:e.bindings,new Dt.Parser({fields:n}).parse(r?r.map((function(t){return Object(L.a)(t,(function(t){return t.value}))})):[])):void 0}}]),t}();function Ft(t){var e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href",t),document.getElementsByTagName("head")[0].appendChild(e)}function Ut(t,e){return new Promise((function(n){var r=document.createElement("script");r.setAttribute("type","text/javascript"),r.setAttribute("async",""),r.setAttribute("src",t),e&&(r.innerHTML=e),r.onload=function(){return n()},document.getElementsByTagName("head")[0].appendChild(r)}))}var Gt=n(106);Gt.addHook("afterSanitizeAttributes",(function(t){t instanceof HTMLAnchorElement&&(t.target="_blank",t.rel="noopener noreferrer")}));var Bt=Gt.sanitize,Vt=n(152),Ht=n(153);n(162);var zt=function(){function t(e){u()(this,t),this.priority=20,this.hideFromSelection=!0,this.yasr=e,this.translationService=this.yasr.config.translationService}return c()(t,[{key:"canHandleResults",value:function(){return!!this.yasr.results&&!!this.yasr.results.getError()}},{key:"getTryBtn",value:function(t){var e=document.createElement("a");return e.href=t,e.rel="noopener noreferrer",e.target="_blank",e.className="yasr_tryQuery",e.textContent=this.translationService.translate("yasr.plugin.error.new_window.btn.label"),e}},{key:"getCorsMessage",value:function(){var t=document.createElement("div");t.className="redOutline";var e=document.createElement("p");e.textContent=this.translationService.translate("yasr.plugin.error.no_response_possible_reason.error.label"),t.appendChild(e);var n=document.createElement("ul"),r=document.createElement("li");r.textContent=this.translationService.translate("yasr.plugin.error.incorrect_endpoint.error.label"),n.appendChild(r);var i=document.createElement("li");i.textContent=this.translationService.translate("yasr.plugin.error.endpoint_down.error.label"),n.appendChild(i);var o=document.createElement("li"),a=document.createElement("span");a.textContent=this.translationService.translate("yasr.plugin.error.endpoint_not_accessible.error.label"),o.appendChild(a);var s=document.createElement("a");return s.textContent=this.translationService.translate("yasr.plugin.error.cors_enabled.link.label"),s.href="http://enable-cors.org/",s.target="_blank",s.rel="noopener noreferrer",o.appendChild(s),n.appendChild(o),t.appendChild(n),t}},{key:"draw",value:function(){var t;return function(t,e,n,r){return new(n||(n=Promise))((function(e,i){function o(t){try{s(r.next(t))}catch(t){i(t)}}function a(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(t){t(r)}))).then(o,a)}s((r=r.apply(t,[])).next())}))}(this,0,void 0,a.a.mark((function e(){var n,r,i,o,s,u,l,c,f,d,h,p;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=document.createElement("div")).className="errorResult",this.yasr.resultsEl.appendChild(n),r=null===(t=this.yasr.results)||void 0===t?void 0:t.getError()){e.next=6;break}return e.abrupt("return");case 6:return(i=document.createElement("div")).className="errorHeader",n.appendChild(i),e.next=11,this.yasr.renderError(r);case 11:if(!(o=e.sent)){e.next=18;break}return(s=document.createElement("div")).className="redOutline",s.appendChild(o),n.appendChild(s),e.abrupt("return");case 18:r.status?(u="Error",r.statusText&&r.statusText.length<100&&(u=r.statusText),u+=" (#".concat(r.status,")"),(l=document.createElement("span")).className="status",l.textContent=u,i.appendChild(l),this.yasr.config.getPlainQueryLinkToEndpoint&&(c=this.yasr.config.getPlainQueryLinkToEndpoint())&&i.appendChild(this.getTryBtn(c)),r.text&&(f=document.createElement("div"),Object(R.g)(f,"errorMessageContainer"),n.appendChild(f),d=document.createElement("pre"),Object(R.g)(d,"errorMessage"),d.textContent=r.text,f.appendChild(d))):(this.yasr.config.getPlainQueryLinkToEndpoint&&(h=this.yasr.config.getPlainQueryLinkToEndpoint())&&i.appendChild(this.getTryBtn(h)),!r.text||r.text.indexOf("Request has been terminated")>=0?n.appendChild(this.getCorsMessage()):((p=document.createElement("pre")).textContent=r.text,n.appendChild(p)));case 19:case"end":return e.stop()}}),e,this)})))}},{key:"getIcon",value:function(){return document.createElement("")}}]),t}(),$t=n(17),Yt=n.n($t),Wt=n(39),Qt=n.n(Wt),Kt=n(74),Xt=n.n(Kt),Zt=n(175),Jt=n(154);n(164),n(165),n(166);var te=n(167);function ee(t){Object(R.g)(this,"expanded"),t.preventDefault()}var ne=function(){function t(e){var n=this;u()(this,t),this.persistentConfig={},this.helpReference="https://triply.cc/docs/yasgui#table",this.label="Table",this.priority=10,this.setEllipsisHandlers=function(){var t;null===(t=n.dataTable)||void 0===t||t.cells({page:"current"}).every((function(t,e){var r,i,o=null===(r=n.dataTable)||void 0===r?void 0:r.cell(t,e);if(""!==(null==o?void 0:o.data())){var a=null==o?void 0:o.node();if(a){var s=a.firstChild;((null===(i=s.firstElementChild)||void 0===i?void 0:i.getBoundingClientRect().width)||0)>s.getBoundingClientRect().width?s.classList.contains("expandable")||(Object(R.g)(s,"expandable"),s.addEventListener("click",ee,{once:!0})):s.classList.contains("expandable")&&(Object(R.l)(s,"expandable"),s.removeEventListener("click",ee))}}}))},this.handleTableSearch=function(t){var e;null===(e=n.dataTable)||void 0===e||e.search(t.target.value).draw("page")},this.handleTableSizeSelect=function(t){var e,r=parseInt(t.target.value);null===(e=n.dataTable)||void 0===e||e.page.len(r).draw("page"),n.persistentConfig.pageSize=r,n.yasr.storePluginConfig("table",n.persistentConfig)},this.handleSetCompactToggle=function(t){n.persistentConfig.compact=t.target.checked,n.draw(n.persistentConfig),n.yasr.storePluginConfig("table",n.persistentConfig)},this.handleSetEllipsisToggle=function(t){n.persistentConfig.isEllipsed=t.target.checked,n.draw(n.persistentConfig),n.yasr.storePluginConfig("table",n.persistentConfig)},this.yasr=e,this.translationService=this.yasr.config.translationService,this.config=Object.assign(Object.assign({},t.defaults),{maxResizableResultsColumns:this.getMaxResizibleColumns()})}return c()(t,[{key:"getIcon",value:function(){return Object(R.i)(Object(R.h)(Jt))}},{key:"getRows",value:function(){if(!this.yasr.results)return[];var t=this.yasr.results.getBindings();if(!t)return[];var e=this.yasr.results.getVariables();return t.map((function(t,n){return[n+1].concat(Yt()(e.map((function(e){var n;return null!==(n=t[e])&&void 0!==n?n:""}))))}))}},{key:"getUriLinkFromBinding",value:function(t,e){var n=t.value,r=n,i=!1;if(e)for(var o in e)if(0==r.indexOf(e[o])){r=o+":"+n.substring(e[o].length),i=!0;break}var a=i||this.persistentConfig.compact;return"".concat(a?"":"&lt;","<a class='iri' target='").concat(this.config.openIriInNewWindow?"_blank":"_self","'").concat(this.config.openIriInNewWindow?" ref='noopener noreferrer'":""," href='").concat(n,"'>").concat(r,"</a>").concat(a?"":"&gt;")}},{key:"getCellContent",value:function(t,e){var n;return n="uri"==t.type?"<span>".concat(this.getUriLinkFromBinding(t,e),"</span>"):"<span class='nonIri'>".concat(this.formatLiteral(t,e),"</span>"),"<div>".concat(n,"</div>")}},{key:"formatLiteral",value:function(t,e){var n=Object(Zt.a)(t.value);if(this.persistentConfig.compact)return n;if(t["xml:lang"])n='"'.concat(n,'"<sup>@').concat(t["xml:lang"],"</sup>");else if(t.datatype){var r=this.getUriLinkFromBinding({type:"uri",value:t.datatype},e);n='"'.concat(n,'"<sup>^^').concat(r,"</sup>")}return n}},{key:"getColumns",value:function(){var t,e=this;if(!this.yasr.results)return[];var n=this.yasr.getPrefixes();return[{name:"",searchable:!1,width:"".concat(this.getSizeFirstColumn(),"px"),type:"num",orderable:!1,visible:!0!==this.persistentConfig.compact,render:function(t,e){return"filter"!==e&&"sort"!==e&&e?'<div class="rowNumber">'.concat(t,"</div>"):t}}].concat(Yt()(null===(t=this.yasr.results)||void 0===t?void 0:t.getVariables().map((function(t){return{name:t,title:t,render:function(t,r){return""===t?t:"filter"!==r&&"sort"!==r&&r?e.getCellContent(t,n):t.value}}}))))}},{key:"getSizeFirstColumn",value:function(){var t,e;return 8*((null===(e=null===(t=this.yasr.results)||void 0===t?void 0:t.getBindings())||void 0===e?void 0:e.length)||0).toString().length}},{key:"getTableElement",value:function(){return this.tableEl}},{key:"draw",value:function(t){var e,n,r=this;this.persistentConfig=Object.assign(Object.assign({},this.persistentConfig),t),this.tableEl=document.createElement("table");var i=this.getRows(),o=this.getColumns();i.length<=((null==t?void 0:t.pageSize)||50)?Object(R.g)(this.yasr.rootEl,"isSinglePage"):Object(R.l)(this.yasr.rootEl,"isSinglePage"),this.dataTable&&(this.destroyResizer(),this.dataTable.destroy(!0),this.dataTable=void 0),this.yasr.resultsEl.appendChild(this.tableEl);var a=Object.assign(Object.assign({},Object(Mt.a)(this.config.tableConfig)),{pageLength:-1,data:i,columns:o,deferRender:!0,paging:!1,autoWidth:!1,language:{zeroRecords:this.translationService.translate("yasr.plugin_control.table.empty_result.label"),info:this.translationService.translate("yasr.plugin.table.data_tables.info.result_info"),paginate:{first:this.translationService.translate("yasr.plugin.table.data_tables.paginate.first"),last:this.translationService.translate("yasr.plugin.table.data_tables.paginate.last"),next:this.translationService.translate("yasr.plugin.table.data_tables.paginate.next"),previous:this.translationService.translate("yasr.plugin.table.data_tables.paginate.previous")}}});this.dataTable=Xt()(this.tableEl).DataTable(a),this.tableEl.style.removeProperty("width"),this.tableEl.style.width=this.tableEl.clientWidth+"px",o.length<=(this.persistentConfig.compact?this.config.maxResizableResultsColumns-1:this.config.maxResizableResultsColumns)?setTimeout((function(){r.tableResizer=new te.default(r.tableEl,{partialRefresh:!0,onResize:!1!==r.persistentConfig.isEllipsed&&r.setEllipsisHandlers,headerOnly:!1,disabledColumns:r.persistentConfig.compact?[]:[0]})}),0):Object(R.g)(this.tableEl,"fixedColumns"),!1!==this.persistentConfig.isEllipsed&&(null===(e=this.dataTable)||void 0===e||e.on("preDraw",(function(){var t,e,n;return null===(t=r.tableResizer)||void 0===t||t.reset({disable:!0}),Object(R.l)(r.tableEl,"ellipseTable"),null===(e=r.tableEl)||void 0===e||e.style.removeProperty("width"),null===(n=r.tableEl)||void 0===n||n.style.setProperty("width",r.tableEl.clientWidth+"px"),!0})),null===(n=this.dataTable)||void 0===n||n.on("draw",(function(){var t,e;if(r.tableEl){var n=r.tableEl.clientWidth;r.tableEl.style.removeProperty("width"),n>r.tableEl.clientWidth&&(n=r.tableEl.clientWidth),null===(t=r.tableEl)||void 0===t||t.style.setProperty("width","".concat(n,"px")),null===(e=r.tableResizer)||void 0===e||e.reset({disable:!1,partialRefresh:!0,onResize:r.setEllipsisHandlers,headerOnly:!1,disabledColumns:r.persistentConfig.compact?[]:[0]}),Object(R.g)(r.tableEl,"ellipseTable"),r.setEllipsisHandlers()}}))),this.drawControls(),!1!==this.persistentConfig.isEllipsed&&(Object(R.g)(this.tableEl,"ellipseTable"),this.setEllipsisHandlers()),(!i||i.length<1)&&this.updateEmptyTable(this.persistentConfig)}},{key:"updateEmptyTable",value:function(t){var e,n,r=null===(e=this.tableEl)||void 0===e?void 0:e.querySelector("td.dataTables_empty");if(r){var i=(null===(n=this.dataTable)||void 0===n?void 0:n.columns().count())||0;r.colSpan=t.compact?i-1:i}this.tableFilterField&&(this.tableFilterField.disabled=!0),this.tableCompactSwitch&&(this.tableCompactSwitch.disabled=!0),this.tableEllipseSwitch&&(this.tableEllipseSwitch.disabled=!0)}},{key:"drawControls",value:function(){var t;this.removeControls(),this.tableControls=document.createElement("div"),this.tableControls.className="tableControls",this.tableFilterField=document.createElement("input"),this.tableFilterField.className="tableFilter";var e=this.translationService.translate("yasr.plugin.table.table_filter.input.placeholder");this.tableFilterField.placeholder=e,this.tableFilterField.setAttribute("aria-label",e),this.tableControls.appendChild(this.tableFilterField),this.tableFilterField.addEventListener("keyup",this.handleTableSearch);var n=document.createElement("div"),r=document.createElement("label"),i=document.createElement("span");i.innerText=this.translationService.translate("yasr.plugin.table.ellipse.checkbox.label"),Object(R.g)(i,"label"),r.appendChild(i),Object(R.g)(r,"switch"),n.appendChild(r),this.tableEllipseSwitch=document.createElement("input"),r.addEventListener("change",this.handleSetEllipsisToggle),this.tableEllipseSwitch.type="checkbox",r.appendChild(this.tableEllipseSwitch),this.tableEllipseSwitch.defaultChecked=void 0!==this.persistentConfig.isEllipsed&&this.persistentConfig.isEllipsed,this.tableControls.appendChild(n);var o=document.createElement("div"),a=document.createElement("label"),s=document.createElement("span");s.innerText=this.translationService.translate("yasr.plugin.table.simple_view.checkbox.label"),Object(R.g)(s,"label"),a.appendChild(s),Object(R.g)(a,"switch"),o.appendChild(a),this.tableCompactSwitch=document.createElement("input"),a.addEventListener("change",this.handleSetCompactToggle),Object(R.g)(this.tableCompactSwitch,"row-number-switch"),this.tableCompactSwitch.type="checkbox",a.appendChild(this.tableCompactSwitch),this.tableCompactSwitch.defaultChecked=!!this.persistentConfig.compact,this.tableControls.appendChild(o);var u=document.createElement("div");u.className="pageSizeWrapper";var l=document.createElement("span");l.textContent=this.translationService.translate("yasr.plugin.table.page_size.dropdown.label"),l.className="pageSizerLabel",u.appendChild(l),this.tableSizeField=document.createElement("select"),this.tableSizeField.className="tableSizer";for(var c=0,f=[10,50,100,1e3,-1];c<f.length;c++){var d=f[c],h=document.createElement("option");h.value=d+"",h.innerText=d>0?d+"":"All",(null===(t=this.dataTable)||void 0===t?void 0:t.page.len())===d&&(h.selected=!0),this.tableSizeField.appendChild(h)}u.appendChild(this.tableSizeField),this.tableSizeField.addEventListener("change",this.handleTableSizeSelect),this.tableControls.appendChild(u),this.yasr.pluginControls.appendChild(this.tableControls)}},{key:"download",value:function(t){var e=this;return{getData:function(){var t;return(null===(t=e.yasr.results)||void 0===t?void 0:t.asCsv())||""},contentType:"text/csv",title:this.translationService.translate("yasr.plugin.table.download_result.btn.label"),filename:"".concat(t||"queryResults",".csv")}}},{key:"canHandleResults",value:function(){return!!this.yasr.results&&this.yasr.results.getVariables()&&this.yasr.results.getVariables().length>0}},{key:"removeControls",value:function(){var t,e,n,r,i,o;for(null===(t=this.tableFilterField)||void 0===t||t.removeEventListener("keyup",this.handleTableSearch),this.tableFilterField=void 0,null===(e=this.tableSizeField)||void 0===e||e.removeEventListener("change",this.handleTableSizeSelect),this.tableSizeField=void 0,null===(n=this.tableCompactSwitch)||void 0===n||n.removeEventListener("change",this.handleSetCompactToggle),this.tableCompactSwitch=void 0,null===(r=this.tableEllipseSwitch)||void 0===r||r.removeEventListener("change",this.handleSetEllipsisToggle),this.tableEllipseSwitch=void 0;null===(i=this.tableControls)||void 0===i?void 0:i.firstChild;)this.tableControls.firstChild.remove();null===(o=this.tableControls)||void 0===o||o.remove()}},{key:"destroyResizer",value:function(){this.tableResizer&&(this.tableResizer.reset({disable:!0}),window.removeEventListener("resize",this.tableResizer.onResize),this.tableResizer=void 0)}},{key:"getMaxResizibleColumns",value:function(){var e=t.defaults.maxResizableResultsColumns;if(this.yasr.config.externalPluginsConfigurations){var n=this.yasr.config.externalPluginsConfigurations.get("table");n&&(e=n.maxResizableResultsColumns)}return e}},{key:"destroy",value:function(){var t;this.removeControls(),this.destroyResizer(),null===(t=this.dataTable)||void 0===t||t.destroy(!0),this.dataTable=void 0,Object(R.l)(this.yasr.rootEl,"isSinglePage")}}]),t}();ne.defaults={openIriInNewWindow:!0,maxResizableResultsColumns:19,tableConfig:{dom:"tip",pageLength:50,lengthChange:!0,data:[],columns:[],order:[],deferRender:!0,orderClasses:!1,language:{paginate:{first:"&lt;&lt;",last:"&gt;&gt;",next:"&gt;",previous:"&lt;"}}}};var re=n(51),ie=n(168),oe=function(t){d()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=b()(t);if(e){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}(n);function n(t){var r;if(u()(this,n),(r=e.call(this,t)).label="Extended_Table",r.priority=11,r.handleSetEllipsisToggle=function(t){r.persistentConfig.isEllipsed=t.target.checked,r.showLoader(!0),setTimeout((function(){r.updateTableEllipseClasses(),r.showLoader(!1)})),r.yasr.storePluginConfig("extended_table",r.persistentConfig)},r.handleSetCompactToggle=function(t){r.persistentConfig.compact=t.target.checked,r.disableTableResizer(),r.showLoader(!0),setTimeout((function(){r.updateTableRowNumberClasses(),r.enableTableResizer(),r.showLoader(!1)})),r.yasr.storePluginConfig("extended_table",r.persistentConfig)},r.handleTableSizeSelect=function(t){var e,n=parseInt(t.target.value);null===(e=r.dataTable)||void 0===e||e.page.len(n).draw("page"),r.persistentConfig.pageSize=n,r.yasr.storePluginConfig("extended_table",r.persistentConfig)},t.config.externalPluginsConfigurations){var i=t.config.externalPluginsConfigurations.get("extended_table");r.getCellContentCustom=i.getCellContent}return r}return c()(n,[{key:"getCellContent",value:function(t,e){return this.getCellContentCustom?this.getCellContentCustom(t,e):Qt()(b()(n.prototype),"getCellContent",this).call(this,t,e)}},{key:"draw",value:function(t){var e=this;this.persistentConfig=Object.assign(Object.assign({},this.persistentConfig),t),this.tableEl=document.createElement("table");var n=this.getRows(),r=this.getColumns(),i=this.resolveTypes(),o=this.getColumnDefinitions(i);n.length<=((null==t?void 0:t.pageSize)||50)?Object(R.g)(this.yasr.rootEl,"isSinglePage"):Object(R.l)(this.yasr.rootEl,"isSinglePage"),this.dataTable&&(this.destroyResizer(),this.removeDataTableEventHandlers(this.dataTable),this.dataTable.destroy(!0),this.dataTable=void 0),this.yasr.resultsEl.appendChild(this.tableEl);var a=Object.assign(Object.assign({},Object(Mt.a)(this.config.tableConfig)),{pageLength:-1,data:n,columns:r,columnDefs:o,deferRender:!0,paging:!1,autoWidth:!1,language:{zeroRecords:this.translationService.translate("yasr.plugin_control.table.empty_result.label"),info:this.translationService.translate("yasr.plugin.table.data_tables.info.result_info"),paginate:{first:this.translationService.translate("yasr.plugin.table.data_tables.paginate.first"),last:this.translationService.translate("yasr.plugin.table.data_tables.paginate.last"),next:this.translationService.translate("yasr.plugin.table.data_tables.paginate.next"),previous:this.translationService.translate("yasr.plugin.table.data_tables.paginate.previous")}}});this.dataTable=Xt()(this.tableEl).DataTable(a),this.tableEl.style.removeProperty("width"),this.tableEl.style.width=this.tableEl.clientWidth+"px",r.length<=(this.persistentConfig.compact?this.config.maxResizableResultsColumns-1:this.config.maxResizableResultsColumns)?setTimeout((function(){e.tableResizer=new ie.default(e.tableEl,{partialRefresh:!0,headerOnly:!1,disabledColumns:e.persistentConfig.compact?[]:[0]})}),0):Object(R.g)(this.tableEl,"fixedColumns"),this.registerDataTableEventHandlers(this.dataTable),this.drawControls(),this.updateTableEllipseClasses(),this.afterDraw(),(!n||n.length<1)&&this.updateEmptyTable(this.persistentConfig)}},{key:"resolveValueType",value:function(t){if(!t)return null;if(null!=t.type&&("typed-literal"===t.type||"literal"===t.type))switch(t.datatype){case"http://www.w3.org/2001/XMLSchema#float":case"http://www.w3.org/2001/XMLSchema#double":case"http://www.w3.org/2001/XMLSchema#byte":case"http://www.w3.org/2001/XMLSchema#short":case"http://www.w3.org/2001/XMLSchema#int":case"http://www.w3.org/2001/XMLSchema#integer":case"http://www.w3.org/2001/XMLSchema#long":case"http://www.w3.org/2001/XMLSchema#decimal":case"http://www.w3.org/2001/XMLSchema#unsignedByte":case"http://www.w3.org/2001/XMLSchema#unsignedInt":case"http://www.w3.org/2001/XMLSchema#unsignedLong":case"http://www.w3.org/2001/XMLSchema#unsignedShort":case"http://www.w3.org/2001/XMLSchema#negativeInteger":case"http://www.w3.org/2001/XMLSchema#nonNegativeInteger":case"http://www.w3.org/2001/XMLSchema#positiveInteger":case"http://www.w3.org/2001/XMLSchema#nonPositiveInteger":case"http://www.w3.org/2001/XMLSchema#gDay":case"http://www.w3.org/2001/XMLSchema#gMonth":case"http://www.w3.org/2001/XMLSchema#gMonthDay":case"http://www.w3.org/2001/XMLSchema#gYear":case"http://www.w3.org/2001/XMLSchema#gYearMonth":return"num";case"http://www.w3.org/2001/XMLSchema#date":case"http://www.w3.org/2001/XMLSchema#dateTime":case"http://www.w3.org/2001/XMLSchema#time":return"date";default:return"str"}}},{key:"resolveTypes",value:function(){var t,e,n=this;if(!this.yasr.results)return{};var r=null===(t=this.yasr.results)||void 0===t?void 0:t.getVariables(),i=null===(e=this.yasr.results)||void 0===e?void 0:e.getBindings(),o={};return r.forEach((function(t){var e={},r=0;null==i||i.forEach((function(i){var o=n.resolveValueType(i[t]);null!=o&&(o in e||(e[o]=0,r++),e[o]++)})),0==r?o[t]="str":1==r?o[t]=Object.keys(e)[0]:console.log("Mapping bindings to types failed. Multiple types for a variable found",e,t)})),o}},{key:"getColumnDefinitions",value:function(t){var e=Object.keys(t).map((function(e,n){return{targets:n+1,type:t[e]}}));return this.persistentConfig.compact&&e.unshift({targets:0,type:"num"}),e}},{key:"registerDataTableEventHandlers",value:function(t){t.on("preDraw",this.preDrawTableHandler.bind(this)),t.on("draw",this.drawTableHandler.bind(this))}},{key:"removeDataTableEventHandlers",value:function(t){t.off("preDraw",this.preDrawTableHandler.bind(this)),t.off("draw",this.drawTableHandler.bind(this))}},{key:"preDrawTableHandler",value:function(){var t,e,n;if(!1!==this.persistentConfig.isEllipsed)return this.disableTableResizer(),Object(R.l)(this.tableEl,"extendedTableEllipseTable"),null===(t=this.tableEl)||void 0===t||t.style.removeProperty("width"),null===(e=this.tableEl)||void 0===e||e.style.setProperty("width",(null===(n=this.tableEl)||void 0===n?void 0:n.clientWidth)+"px"),!0}},{key:"disableTableResizer",value:function(){var t;null===(t=this.tableResizer)||void 0===t||t.reset({disable:!0})}},{key:"enableTableResizer",value:function(){var t;null===(t=this.tableResizer)||void 0===t||t.reset({disable:!1,partialRefresh:!0,headerOnly:!1,disabledColumns:this.persistentConfig.compact?[]:[0]})}},{key:"drawTableHandler",value:function(){var t;if(this.tableEl&&!1!==this.persistentConfig.isEllipsed){var e=this.tableEl.clientWidth;this.tableEl.style.removeProperty("width"),e>this.tableEl.clientWidth&&(e=this.tableEl.clientWidth),null===(t=this.tableEl)||void 0===t||t.style.setProperty("width","".concat(e,"px")),this.enableTableResizer(),this.updateTableEllipseClasses()}}},{key:"isTextEllipsized",value:function(t){return t.scrollWidth>t.clientWidth}},{key:"dataTableClickHandler",value:function(t){if(this.isCompactViewActive()){var e=t.target.closest(".literal-cell p");e&&this.isTextEllipsized(e)&&(e.classList.add("expanded-literal"),e.classList.remove("expandable-literal"))}}},{key:"isCompactViewActive",value:function(){return!!this.persistentConfig.isEllipsed}},{key:"tableMouseoverHandler",value:function(t){if(this.isCompactViewActive()){var e=t.target.closest(".literal-cell p");e&&this.isTextEllipsized(e)&&e.classList.add("expandable-literal")}}},{key:"tableMouseoutHandler",value:function(t){this.isCompactViewActive()&&t.target.matches(".expandable-literal")&&t.target.classList.remove("expandable-literal")}},{key:"afterDraw",value:function(){this.tableEl&&(this.tableEl.addEventListener("click",this.dataTableClickHandler.bind(this)),this.tableEl.addEventListener("mouseover",this.tableMouseoverHandler.bind(this)),this.tableEl.addEventListener("mouseout",this.tableMouseoutHandler.bind(this))),this.setupIndexColumn();var t=this.yasr.rootEl.querySelector("#explainPlanQuery");t&&re.default.runMode(t.innerText,"sparql11",t)}},{key:"getColumns",value:function(){var t,e=this;if(!this.yasr.results)return[];var n=this.yasr.getPrefixes();return[{searchable:!1,width:"".concat(this.getSizeFirstColumn(),"px"),orderable:!1,render:function(t,e){return"filter"!==e&&"sort"!==e&&e?'<div class="rowNumber">'.concat(t,"</div>"):t}}].concat(Yt()(null===(t=this.yasr.results)||void 0===t?void 0:t.getVariables().map((function(t){return{name:t,title:t,render:function(t,r){if(""===t)return t;if(!r)return t.value;if("sort"===r){var i=e.resolveValueType(t)||"str";return e.convertValue(t,i)}return e.getCellContent(t,n)}}}))))}},{key:"convertValue",value:function(t,e){switch(e){case"num":return parseFloat(t.value);case"date":return new Date(t.value);default:return t.value}}},{key:"setupIndexColumn",value:function(){if(this.dataTable){var t=this.dataTable;t.on("draw.dt",(function(){var e=t.page.info();t.column(0,{page:"current"}).nodes().each((function(t,n){t.innerHTML="<span>".concat(n+1+e.start,"</span>")}))}))}}},{key:"drawControls",value:function(){Qt()(b()(n.prototype),"drawControls",this).call(this),this.updateTableRowNumberClasses()}},{key:"showLoader",value:function(t){var e=this;if(this.cancelTableRenderingHandler(),"function"==typeof window.requestAnimationFrame)if(t){var n=this.translationService.translate("loader.message.query.editor.render.results");this.yasr.showLoader(n,!1,!1)}else requestAnimationFrame((function(){e.tableRenderingHandlerId=void 0,e.yasr.hideLoader()}))}},{key:"cancelTableRenderingHandler",value:function(){void 0!==this.tableRenderingHandlerId&&"function"==typeof window.requestAnimationFrame&&window.cancelAnimationFrame(this.tableRenderingHandlerId)}},{key:"updateTableEllipseClasses",value:function(){var t;this.tableEl&&(null===(t=this.tableEl)||void 0===t||t.querySelectorAll(".expanded-literal").forEach((function(t){t.classList.remove("expanded-literal")})),!0===this.persistentConfig.isEllipsed?Object(R.g)(this.tableEl,"extendedTableEllipseTable"):Object(R.l)(this.tableEl,"extendedTableEllipseTable"))}},{key:"updateTableRowNumberClasses",value:function(){var t=this.getTableElement();this.persistentConfig.compact?Object(R.l)(t,"withRowNumber"):Object(R.g)(t,"withRowNumber")}},{key:"destroy",value:function(){this.tableEl&&(this.tableEl.removeEventListener("click",this.dataTableClickHandler.bind(this)),this.tableEl.removeEventListener("mouseover",this.tableMouseoverHandler.bind(this)),this.tableEl.removeEventListener("mouseout",this.tableMouseoutHandler.bind(this))),this.cancelTableRenderingHandler(),Qt()(b()(n.prototype),"destroy",this).call(this)}}]),n}(ne);n(169);var ae=function(t){d()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=b()(t);if(e){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}(n);function n(){return u()(this,n),e.apply(this,arguments)}return c()(n,[{key:"draw",value:function(){var t,e=document.createElement("div");e.className="extended-boolean-plugin";var n=null===(t=this.yasr.results)||void 0===t?void 0:t.getBoolean(),r=document.createElement("div");Object(R.g)(r,n?"response-success":"response-error"),Object(R.g)(r,"response"),r.textContent=this.translationService.translate(n?"yasr.plugin.extended_boolean.true":"yasr.plugin.extended_boolean.false"),e.appendChild(r),this.yasr.resultsEl.appendChild(e)}}]),n}(function(){function t(e){u()(this,t),this.priority=10,this.hideFromSelection=!0,this.yasr=e,this.translationService=this.yasr.config.translationService}return c()(t,[{key:"draw",value:function(){var t,e=document.createElement("div");e.className="booleanResult";var n=null===(t=this.yasr.results)||void 0===t?void 0:t.getBoolean();e.appendChild(Object(R.i)(n?'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="30" height="30" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><path d="M14.301,49.982l22.606,17.047L84.361,4.903c2.614-3.733,7.76-4.64,11.493-2.026l0.627,0.462 c3.732,2.614,4.64,7.758,2.025,11.492l-51.783,79.77c-1.955,2.791-3.896,3.762-7.301,3.988c-3.405,0.225-5.464-1.039-7.508-3.084 L2.447,61.814c-3.263-3.262-3.263-8.553,0-11.814l0.041-0.019C5.75,46.718,11.039,46.718,14.301,49.982z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="30" height="30" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><g><path d="M83.288,88.13c-2.114,2.112-5.575,2.112-7.689,0L53.659,66.188c-2.114-2.112-5.573-2.112-7.687,0L24.251,87.907 c-2.113,2.114-5.571,2.114-7.686,0l-4.693-4.691c-2.114-2.114-2.114-5.573,0-7.688l21.719-21.721c2.113-2.114,2.113-5.573,0-7.686 L11.872,24.4c-2.114-2.113-2.114-5.571,0-7.686l4.842-4.842c2.113-2.114,5.571-2.114,7.686,0L46.12,33.591 c2.114,2.114,5.572,2.114,7.688,0l21.721-21.719c2.114-2.114,5.573-2.114,7.687,0l4.695,4.695c2.111,2.113,2.111,5.571-0.003,7.686 L66.188,45.973c-2.112,2.114-2.112,5.573,0,7.686L88.13,75.602c2.112,2.111,2.112,5.572,0,7.687L83.288,88.13z"/></g></svg>'));var r=document.createElement("span");r.textContent=this.translationService.translate(n?"yasr.boolean.alert.true":"yasr.boolean.alert.false"),e.appendChild(r),this.yasr.resultsEl.appendChild(e)}},{key:"canHandleResults",value:function(){var t;return!!(null===(t=this.yasr.results)||void 0===t?void 0:t.getBoolean)&&(!0===this.yasr.results.getBoolean()||0==this.yasr.results.getBoolean())}},{key:"getIcon",value:function(){return document.createElement("")}}]),t}()),se=n(155),ue='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="tiny" x="0" y="0" width="100%" height="100%" viewBox="0 0 100 100" xml:space="preserve"><g id="Captions"/><g id="Your_Icon"><path d="M88,84v-2c0-2.961-0.859-4-4-4H16c-2.961,0-4,0.98-4,4v2c0,3.102,1.039,4,4,4h68 C87.02,88,88,87.039,88,84z M58,12H42c-5,0-6,0.941-6,6v22H16l34,34l34-34H64V18C64,12.941,62.939,12,58,12z"/></g></svg>';n(170);var le=n(4);n(80),n(99),n(100),n(101),n(102),n(171),n(172),n(103);var ce=function(){function t(e){u()(this,t),this.label="Response",this.priority=2,this.helpReference="https://triply.cc/docs/yasgui#response",this.yasr=e,this.config=t.defaults,this.translationService=e.config.translationService,e.config.plugins.response&&e.config.plugins.response.dynamicConfig&&(this.config=Object.assign(Object.assign({},this.config),e.config.plugins.response.dynamicConfig))}return c()(t,[{key:"canHandleResults",value:function(){if(!this.yasr.results)return!1;if(!this.yasr.results.getOriginalResponseAsString)return!1;var t=this.yasr.results.getOriginalResponseAsString();return!((!t||0==t.length)&&this.yasr.results.getError())}},{key:"getIcon",value:function(){return Object(R.i)(Object(R.h)(se))}},{key:"download",value:function(t){var e=this;if(this.yasr.results){var n=this.yasr.results.getContentType(),r=this.yasr.results.getType(),i="xml"===r?"rdf":r;return{getData:function(){var t;return(null===(t=e.yasr.results)||void 0===t?void 0:t.getOriginalResponseAsString())||""},filename:"".concat(t||"queryResults").concat(i?"."+i:""),contentType:n||"text/plain",title:this.translationService.translate("yasr.plugin.response.download_result.btn.tooltip")}}}},{key:"draw",value:function(t){var e,n,r=Object.assign(Object.assign({},this.config),t),i=(null===(e=this.yasr.results)||void 0===e?void 0:e.getOriginalResponseAsString())||"",o=i.split("\n");o.length>r.maxLines&&(i=o.slice(0,r.maxLines).join("\n"));var a={readOnly:!0,lineNumbers:!0,lineWrapping:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],value:i,extraKeys:{Tab:!1}};"json"===(null===(n=this.yasr.results)||void 0===n?void 0:n.getType())&&(a.mode={name:"javascript",json:!0}),this.cm=le(this.yasr.resultsEl,a),o.length>r.maxLines&&this.showLess(!1)}},{key:"limitData",value:function(t){var e=t.split("\n");return e.length>this.config.maxLines&&(t=e.slice(0,this.config.maxLines).join("\n")),t}},{key:"showLess",value:function(){var t,e=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.cm){Object(R.g)(this.cm.getWrapperElement(),"overflow"),this.overLay&&(this.overLay.remove(),this.overLay=void 0),this.overLay=document.createElement("div"),Object(R.g)(this.overLay,"overlay");var r=document.createElement("div");Object(R.g)(r,"overlay_content");var i=document.createElement("button");i.title=this.translationService.translate("yasr.plugin.response.show_all.btn.label"),Object(R.g)(i,"yasr_btn","overlay_btn"),i.textContent=this.translationService.translate("yasr.plugin.response.show_all.btn.label"),i.addEventListener("click",(function(){return e.showMore()})),r.append(i);var o=document.createElement("button");o.title=this.translationService.translate("yasr.plugin.response.download_result.btn.tooltip"),Object(R.g)(o,"yasr_btn","overlay_btn");var a=document.createElement("span");a.innerText=this.translationService.translate("yasr.plugin.response.download_result.btn.label"),o.appendChild(a),o.appendChild(Object(R.i)(ue)),o.addEventListener("click",(function(){return e.yasr.download()})),o.addEventListener("keydown",(function(t){"Space"!==t.code&&"Enter"!==t.code||e.yasr.download()})),r.appendChild(o),this.overLay.appendChild(r),this.cm.getWrapperElement().appendChild(this.overLay),n&&this.cm.setValue(this.limitData((null===(t=this.yasr.results)||void 0===t?void 0:t.getOriginalResponseAsString())||""))}}},{key:"showMore",value:function(){var t,e;this.cm&&(Object(R.l)(this.cm.getWrapperElement(),"overflow"),null===(t=this.overLay)||void 0===t||t.remove(),this.overLay=void 0,this.cm.setValue((null===(e=this.yasr.results)||void 0===e?void 0:e.getOriginalResponseAsString())||""),this.cm.refresh())}}]),t}();ce.defaults={maxLines:30};var fe=function(t){d()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=b()(t);if(e){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}(n);function n(){var t;return u()(this,n),(t=e.apply(this,arguments)).priority=1,t}return c()(n,[{key:"canHandleResults",value:function(){return!(!this.yasr.results||!this.yasr.results.getOriginalResponseAsString||this.yasr.yasqe.isUpdateQuery()||this.yasr.results.hasError())}},{key:"draw",value:function(t){var e=this;null===this.yasr.resultsEl.offsetParent?this.isVisibleInterval=setInterval((function(){null!==e.yasr.resultsEl.offsetParent&&(clearInterval(e.isVisibleInterval),e.isVisibleInterval=null,Qt()(b()(n.prototype),"draw",e).call(e,t))}),10):Qt()(b()(n.prototype),"draw",this).call(this,t)}},{key:"showLess",value:function(){var t,e=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.cm){Object(R.g)(this.cm.getWrapperElement(),"overflow"),this.overLay&&(this.overLay.remove(),this.overLay=void 0),this.overLay=document.createElement("div"),Object(R.g)(this.overLay,"overlay");var r=document.createElement("div");Object(R.g)(r,"overlay_content");var i=document.createElement("button");i.title=this.translationService.translate("yasr.plugin.response.show_all.btn.label"),Object(R.g)(i,"yasr_btn","overlay_btn"),i.textContent=this.translationService.translate("yasr.plugin.response.show_all.btn.label"),i.addEventListener("click",(function(){return e.showMore()})),r.append(i),this.overLay.appendChild(r),this.cm.getWrapperElement().appendChild(this.overLay),n&&this.cm.setValue(this.limitData((null===(t=this.yasr.results)||void 0===t?void 0:t.getOriginalResponseAsString())||""))}}},{key:"destroy",value:function(){this.isVisibleInterval&&clearInterval(this.isVisibleInterval)}}]),n}(ce),de=function(t){d()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=b()(t);if(e){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}(n);function n(){var t;return u()(this,n),(t=e.apply(this,arguments)).fullMessage=!0,t}return c()(n,[{key:"draw",value:function(){var t;return function(t,e,n,r){return new(n||(n=Promise))((function(e,i){function o(t){try{s(r.next(t))}catch(t){i(t)}}function a(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(t){t(r)}))).then(o,a)}s((r=r.apply(t,[])).next())}))}(this,0,void 0,a.a.mark((function e(){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=null===(t=this.yasr.results)||void 0===t?void 0:t.getError())&&this.yasr.resultsEl.appendChild(this.createErrorElement(n));case 2:case"end":return e.stop()}}),e,this)})))}},{key:"createErrorElement",value:function(t){var e,n=document.createElement("div");return n.classList.add("error-response-plugin","alert"),n.appendChild(this.getErrorStatusElement(t)),this.errorMessageElement=this.createErrorMessageElement(),(null===(e=null==t?void 0:t.text)||void 0===e?void 0:e.length)>160&&(this.fullMessage=!1,n.appendChild(this.getShowMoreOrLessMessageElement())),n.appendChild(this.errorMessageElement),this.updateErrorMessage(),n}},{key:"getShowMoreOrLessMessageElement",value:function(){var t=this,e=this.translationService.translate("yasr.plugin.error.show.full.message"),n=this.translationService.translate("yasr.plugin.error.show.less.message"),r=document.createElement("a");return r.classList.add("show-full-message-link"),r.href="#",r.innerText=e,r.onclick=function(){t.fullMessage=!t.fullMessage,t.fullMessage?(r.innerText=n,r.classList.add("show-less-message-link"),r.classList.remove("show-full-message-link")):(r.classList.add("show-full-message-link"),r.classList.remove("show-less-message-link"),r.innerText=e),t.updateErrorMessage()},r}},{key:"createErrorMessageElement",value:function(){var t=document.createElement("div");return t.classList.add("error-response-plugin-body"),t}},{key:"updateErrorMessage",value:function(){var t;if(this.errorMessageElement){var e=(null===(t=this.yasr.results)||void 0===t?void 0:t.getError())||{},n="";e.text?n=e.text:e.messageLabelKey&&(n=this.yasr.translationService.translate(e.messageLabelKey,e.parameters)),this.errorMessageElement.innerText=this.fullMessage?n:n.substring(0,160)}}},{key:"getErrorStatusElement",value:function(t){var e=t.status?t.status+":":"",n=t.statusText?t.statusText:this.yasr.translationService.translate("yasr.plugin.extended_error.default_status.message"),r=document.createElement("div");r.classList.add("error-response-plugin-error-status"),r.innerText="".concat(e," ").concat(n);var i=document.createElement("div");i.classList.add("error-response-plugin-error-time-message"),i.innerText=this.getResultTimeMessage();var o=document.createElement("div");return o.classList.add("error-response-plugin-header"),o.appendChild(r),o.appendChild(i),o}},{key:"getResultTimeMessage",value:function(){var t,e,n=null===(t=this.yasr.results)||void 0===t?void 0:t.getResponseTime(),r=null===(e=this.yasr.results)||void 0===e?void 0:e.getQueryStartedTime();return n&&r?this.yasr.getResultTimeMessage(n,r+n):""}}]),n}(zt);function he(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return pe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function pe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ve=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};n(161);var be=function(t){d()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=b()(t);if(e){var i=b()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}(n);function n(t,r){var i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(u()(this,n),(i=e.call(this)).plugins={},i.helpDrawn=!1,i.utils={addScript:Ut,addCSS:Ft,sanitize:Bt},!r)throw new Error("No parent passed as argument. Dont know where to draw YASR");if(i.yasqe=t,i.rootEl=document.createElement("div"),i.rootEl.className="yasr",i.timeFormattingService=a.timeFormattingService,r.appendChild(i.rootEl),i.config=Object(m.a)({},n.defaults,a),i.translationService=i.config.translationService,i.storage=new R.d(n.storageNamespace),i.getConfigFromStorage(),i.headerEl=document.createElement("div"),i.headerEl.className="yasr_header",i.rootEl.appendChild(i.headerEl),i.fallbackInfoEl=document.createElement("div"),i.fallbackInfoEl.className="yasr_fallback_info",i.rootEl.appendChild(i.fallbackInfoEl),i.resultsEl=document.createElement("div"),i.resultsEl.className="yasr_results",i.resultsEl.id=x("resultsId"),i.config.showQueryLoader&&i.createLoader(),i.rootEl.appendChild(i.resultsEl),i.initializePlugins(),i.config.clearState||(o=s||i.getResponseFromStorage()),o){var l=!1;i.setResponse(o,void 0,void 0,void 0,void 0,void 0,l)}else i.draw();return i.drawHeader(),i}return c()(n,[{key:"showWarning",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warning",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.hideWarning(),t){var r=document.createElement("alert-box");r.message=t,r.isVisible=!0,r.type=e,r.noButton=n,this.rootEl.prepend(r)}}},{key:"hideWarning",value:function(){var t=this.rootEl.querySelector("alert-box");t&&t.remove()}},{key:"getConfigFromStorage",value:function(){var t=this.getStorageId(this.config.persistenceLabelConfig);if(t){var e=this.storage.get(t);if(e)for(var n in this.selectedPlugin=e.selectedPlugin,e.pluginsConfig){var r=e.pluginsConfig[n];r&&this.config.plugins[n]&&(this.config.plugins[n].dynamicConfig=r)}}}},{key:"renderError",value:function(t){return ve(this,void 0,void 0,a.a.mark((function e(){var n,r,i,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=void 0,void 0===this.config.errorRenderers){e.next=22;break}r=he(this.config.errorRenderers),e.prev=3,r.s();case 5:if((i=r.n()).done){e.next=14;break}return o=i.value,e.next=9,o(t);case 9:if(void 0===(n=e.sent)){e.next=12;break}return e.abrupt("break",14);case 12:e.next=5;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(3),r.e(e.t0);case 19:return e.prev=19,r.f(),e.finish(19);case 22:return e.abrupt("return",n);case 23:case"end":return e.stop()}}),e,this,[[3,16,19,22]])})))}},{key:"getStorageId",value:function(t,e){var n=e||this.config.persistenceId;if(n)return"string"==typeof n?n+"_"+t:n(this)+"_"+t}},{key:"somethingDrawn",value:function(){return!!this.resultsEl.children.length}},{key:"emptyFallbackElement",value:function(){for(;this.fallbackInfoEl.firstChild;)this.fallbackInfoEl.removeChild(this.fallbackInfoEl.firstChild)}},{key:"getSelectedPluginName",value:function(){return this.selectedPlugin||this.config.defaultPlugin}},{key:"getSelectedPlugin",value:function(){if(this.plugins[this.getSelectedPluginName()])return this.plugins[this.getSelectedPluginName()];console.warn("Tried using plugin ".concat(this.getSelectedPluginName(),", but seems this plugin isnt registered in yasr."))}},{key:"updatePluginSelectors",value:function(t){if(this.pluginSelectorsEl)for(var e in this.config.plugins){var n=this.plugins[e];n&&!n.hideFromSelection&&(t&&(t.indexOf(e)>=0?Object(R.l)(this.pluginSelectorsEl.querySelector(".select_"+e),"disabled"):Object(R.g)(this.pluginSelectorsEl.querySelector(".select_"+e),"disabled")),e===this.getSelectedPluginName()?Object(R.g)(this.pluginSelectorsEl.querySelector(".select_"+e),"selected"):Object(R.l)(this.pluginSelectorsEl.querySelector(".select_"+e),"selected"))}}},{key:"getCompatiblePlugins",value:function(){if(!this.results)return Object.keys(C(this.config.plugins,(function(t){return"object"===i()(t)&&t.enabled||!0===t})));var t=[];for(var e in this.plugins)this.plugins[e].canHandleResults()&&t.push({name:e,priority:this.plugins[e].priority});return t.sort((function(t,e){return e.priority-t.priority})).map((function(t){return t.name}))}},{key:"draw",value:function(){var t,e,n,r,i,o=this;if(this.updateHelpButton(),this.updateResponseInfo(),this.hideWarning(),!this.results)return this.hideLoader(),Object(R.g)(this.headerEl,"hidden"),Object(R.g)(this.resultsEl,"hidden"),Object(R.g)(this.fallbackInfoEl,"hidden"),void(this.yasqe.isQueryRunning()||this.showWarning(this.translationService.translate("yasr.noresults.box.info"),"success",!0));Object(R.l)(this.headerEl,"hidden"),Object(R.l)(this.resultsEl,"hidden"),Object(R.l)(this.fallbackInfoEl,"hidden"),this.updatePluginSelectorNames();var s,u=this.getCompatiblePlugins();if(this.getSelectedPlugin()&&(null===(t=this.getSelectedPlugin())||void 0===t?void 0:t.canHandleResults())?(s=this.getSelectedPluginName(),this.emptyFallbackElement()):u[0]&&(this.drawnPlugin&&(null===(n=(e=this.plugins[this.drawnPlugin]).destroy)||void 0===n||n.call(e)),this.fillFallbackBox(s=u[0])),!s||this.drawnPlugin&&this.getSelectedPluginName()!==this.drawnPlugin){for(;this.pluginControls.firstChild;)this.pluginControls.firstChild.remove();this.drawnPlugin&&(null===(i=(r=this.plugins[this.drawnPlugin]).destroy)||void 0===i||i.call(r))}if(s){this.updatePluginControlVisibility(!0),this.drawnPlugin=s,this.emit("draw",this,this.plugins[s]);var l=this.plugins[s];(l.initialize?l.initialize():Promise.resolve()).then((function(){return ve(o,void 0,void 0,a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!s){t.next=7;break}for(;this.resultsEl.firstChild;)this.resultsEl.firstChild.remove();return t.next=4,this.plugins[s].draw(this.config.plugins[s].dynamicConfig);case 4:this.emit("drawn",this,this.plugins[s]),this.updateExportHeaders(),this.updatePluginSelectors(u);case 7:case"end":return t.stop()}}),t,this)})))}),(function(){return console.error})).finally((function(){return o.hideLoader()}))}else this.updatePluginControlVisibility(!1),this.resultsEl.textContent=this.translationService.translate("yasr.plugin.no_compatible.message"),this.updateExportHeaders(),this.updatePluginSelectors(u),this.hideLoader()}},{key:"updatePluginControlVisibility",value:function(t){var e,n=null===(e=this.pluginControls.parentElement)||void 0===e?void 0:e.querySelector(".space_element");n&&(n.style.display=t?"":"none")}},{key:"refresh",value:function(){this.draw()}},{key:"destroy",value:function(){var t,e;this.drawnPlugin&&(null===(e=null===(t=this.plugins[this.drawnPlugin])||void 0===t?void 0:t.destroy)||void 0===e||e.call(t)),this.removeAllListeners(),this.rootEl.remove()}},{key:"getPrefixes",value:function(){return this.config.prefixes?"function"==typeof this.config.prefixes?this.config.prefixes(this):this.config.prefixes:{}}},{key:"selectPlugin",value:function(t){this.hideWarning(),this.selectedPlugin!==t&&(this.config.plugins[t]?this.selectedPlugin=t:(console.warn("Plugin ".concat(t," does not exist.")),this.selectedPlugin=this.config.defaultPlugin),this.storeConfig(),this.emit("change",this),this.updatePluginSelectors(),this.draw())}},{key:"getPluginSelectorsEl",value:function(){return this.pluginSelectorsEl}},{key:"createLoader",value:function(){this.loader||(this.loader=document.createElement("loader-component"),this.loader.additionalMessage=this.translationService.translate("loader.message.query.editor.executing.additional_message"),this.loader.timeFormattingService=this.timeFormattingService,this.loader.hidden=!0,this.rootEl.appendChild(this.loader))}},{key:"showLoader",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.loader&&(this.loader.message=t,this.loader.showQueryProgress=e,this.loader.hidden=!1,n?Object(R.g)(this.headerEl,"rendering_result"):Object(R.l)(this.headerEl,"rendering_result"),Object(R.g)(this.resultsEl,"rendering_result"),Object(R.g)(this.fallbackInfoEl,"rendering_result"))}},{key:"hideLoader",value:function(){this.loader&&!this.yasqe.isQueryRunning()&&(Object(R.l)(this.headerEl,"rendering_result"),Object(R.l)(this.resultsEl,"rendering_result"),Object(R.l)(this.fallbackInfoEl,"rendering_result"),this.loader.hidden=!0)}},{key:"drawPluginSelectors",value:function(){var t=this;this.pluginSelectorsEl=document.createElement("ul"),this.pluginSelectorsEl.className="yasr_btnGroup";var e=this.config.pluginOrder;Object.keys(this.config.plugins).sort().forEach((function(t){-1===e.indexOf(t)&&e.push(t)}));var n,r=he(e);try{var i=function(){var e=n.value;if(!t.config.plugins[e]||!t.config.plugins[e].enabled)return"continue";var r=t.plugins[e];if(!r)return"continue";if(r.hideFromSelection)return"continue";var i=t.translationService.translate("yasr.plugin_control.plugin.name.".concat(r.label||e).toLowerCase()),o=document.createElement("button");if(Object(R.g)(o,"yasr_btn","select_"+e),o.type="button",o.setAttribute("aria-label",t.translationService.translate("yasr.plugin_control.shows_view.btn.aria_label",[{key:"name",value:i}])),r.getIcon){var a=r.getIcon();a&&(Object(R.g)(a,"plugin_icon"),o.appendChild(a))}var s=document.createElement("span");s.textContent=i,o.appendChild(s),o.addEventListener("click",(function(){return t.selectPlugin(e)}));var u=document.createElement("li"),l=document.createElement("yasgui-tooltip");l.dataTooltip=window.innerWidth<768?i:"",l.placement="top",l.appendChild(o),u.appendChild(l),t.pluginSelectorsEl.appendChild(u)};for(r.s();!(n=r.n()).done;)i()}catch(t){r.e(t)}finally{r.f()}this.pluginSelectorsEl.children.length>=1&&this.headerEl.appendChild(this.pluginSelectorsEl),this.updatePluginSelectors()}},{key:"fillFallbackBox",value:function(t){var e,n,r;if(this.emptyFallbackElement(),!(null===(e=this.plugins[t||this.drawnPlugin||""])||void 0===e?void 0:e.hideFromSelection)){var i=this.getSelectedPlugin(),o=(null===(n=this.plugins[t||this.drawnPlugin||""])||void 0===n?void 0:n.label)||t||this.drawnPlugin||"",a=(null==i?void 0:i.label)||this.getSelectedPluginName(),s=this.translationService.translate("yasr.plugin_control.plugin.name.".concat(a).toLowerCase()),u=document.createElement("p");if(u.innerText=this.translationService.translate("yasr.fallback.box.info.info_message",[{key:"selectedPluginName",value:o}]),u.innerText+=(null===(r=this.getSelectedPlugin())||void 0===r?void 0:r.helpReference)?this.translationService.translate("yasr.plugin_control.info.see"):"",null==i?void 0:i.helpReference){var l=document.createElement("a");l.innerText=this.translationService.translate("yasr.plugin_control.plugin_documentation.link.label",[{key:"selectedPluginName",value:s}]),l.href=i.helpReference,l.rel="noopener noreferrer",l.target="_blank",u.append(l),u.innerHTML+=" "+this.translationService.translate("yasr.fallback.box.info.for_more_info")}this.fallbackInfoEl.appendChild(u)}}},{key:"drawPluginElement",value:function(){this.pluginControls=document.createElement("div"),this.pluginControls.setAttribute("id","yasr_plugin_control"),Object(R.g)(this.pluginControls,"yasr_plugin_control"),this.pluginControls.setAttribute("aria-controls",this.resultsEl.id),this.headerEl.appendChild(this.pluginControls);var t=document.createElement("div");Object(R.g)(t,"space_element"),this.headerEl.appendChild(t)}},{key:"drawHeader",value:function(){this.drawPluginSelectors(),this.drawPluginElement(),this.drawResponseInfo(),this.drawDownloadIcon(),this.drawDocumentationButton()}},{key:"drawDownloadIcon",value:function(){var t=this;this.downloadBtn=document.createElement("a"),Object(R.g)(this.downloadBtn,"yasr_btn","yasr_downloadIcon","btn_icon"),this.downloadBtn.download="",this.downloadBtn.setAttribute("aria-label",this.translationService.translate("yasr.plugin_control.download_results.btn.label")),this.downloadBtn.setAttribute("tabindex","0"),this.downloadBtn.setAttribute("role","button");var e=Object(R.i)(Object(R.h)(Vt));e.setAttribute("aria-hidden","true"),this.downloadBtn.appendChild(e),this.downloadBtn.addEventListener("click",(function(){Object(R.k)(t.downloadBtn,"disabled")||t.download()})),this.downloadBtn.addEventListener("keydown",(function(e){if("Space"===e.code||"Enter"===e.code){if(Object(R.k)(t.downloadBtn,"disabled"))return;t.download()}})),this.headerEl.appendChild(this.downloadBtn)}},{key:"drawResponseInfo",value:function(){this.dataElement=document.createElement("div"),Object(R.g)(this.dataElement,"yasr_response_chip"),this.headerEl.appendChild(this.dataElement),this.updateResponseInfo()}},{key:"getResponseInfoElement",value:function(){return this.dataElement}},{key:"updateResponseInfo",value:function(){var t="";if(this.results){Object(R.l)(this.dataElement,"empty");var e=this.results.getBindings();if(e){var n=[{key:"countResults",value:"".concat(e.length)}];t+=this.translationService.translate(1===e.length?"yasr.plugin_control.info.count_result":"yasr.plugin_control.info.count_results",n)}var r=this.results.getResponseTime();if(r){t||(t=this.translationService.translate("yasr.response"));var i=r/1e3,o=[{key:"timeInSeconds",value:"".concat(i)}];t+=this.translationService.translate(1===i?"yasr.plugin_control.info.result_in_second":"yasr.plugin_control.info.result_in_seconds",o)}}else Object(R.g)(this.dataElement,"empty");this.dataElement.innerText=t}},{key:"updateHelpButton",value:function(){var t=this.getSelectedPlugin();if(null==t?void 0:t.helpReference){var e=this.translationService.translate("yasr.plugin_control.plugin_documentation.link.tooltip",[{key:"pluginName",value:t.label||this.getSelectedPluginName()}]);this.documentationLink.href=t.helpReference,this.documentationLink.title=e,this.documentationLink.setAttribute("aria-label",e),Object(R.l)(this.documentationLink,"disabled")}else Object(R.g)(this.documentationLink,"disabled"),this.documentationLink.title=this.translationService.translate("yasr.plugin_control.missing_help.link.tooltip")}},{key:"updatePluginSelectorNames",value:function(){if(this.pluginSelectorsEl){var t,e=he(this.config.pluginOrder);try{for(e.s();!(t=e.n()).done;){var n=t.value;if(this.config.plugins[n]&&this.config.plugins[n].enabled){var r=this.plugins[n];if(r&&!r.hideFromSelection){var i=this.pluginSelectorsEl.querySelector(".select_"+n);if(i){var o=this.translationService.translate("yasr.plugin_control.plugin.name.".concat(r.label||n).toLowerCase());i.setAttribute("aria-label",this.translationService.translate("yasr.plugin_control.shows_view.btn.aria_label",[{key:"name",value:o}]));var a=i.querySelector("span");a&&(a.innerText=o);var s=i.parentElement;s&&(s.dataTooltip=window.innerWidth<768?o:"")}}}}}catch(t){e.e(t)}finally{e.f()}}}},{key:"updateExportHeaders",value:function(){var t,e;if(this.downloadBtn&&this.drawnPlugin){this.downloadBtn.title="";var n=this.plugins[this.drawnPlugin];if(n&&n.download){var r=n.download(null===(e=(t=this.config).getDownloadFileName)||void 0===e?void 0:e.call(t));if(Object(R.l)(this.downloadBtn,"disabled"),r)return void(r.title&&(this.downloadBtn.title=r.title))}this.downloadBtn.title=this.translationService.translate("yasr.plugin_control.disabled.btn.tooltip"),Object(R.g)(this.downloadBtn,"disabled")}}},{key:"drawDocumentationButton",value:function(){this.documentationLink=document.createElement("a"),Object(R.g)(this.documentationLink,"yasr_btn","yasr_external_ref_btn"),this.documentationLink.appendChild(Object(R.i)(Object(R.h)(Ht))),this.documentationLink.href="//triply.cc/docs/yasgui",this.documentationLink.target="_blank",this.documentationLink.rel="noopener noreferrer",this.headerEl.appendChild(this.documentationLink)}},{key:"download",value:function(){var t,e,n;if(this.drawnPlugin){var r=this.plugins[this.drawnPlugin];if(r&&r.download){var i=r.download(null===(e=(t=this.config).getDownloadFileName)||void 0===e?void 0:e.call(t));if(!i)return;var o,a=i.getData();if(a.startsWith("data:"))o=a;else{var s=new Blob([a],{type:null!==(n=i.contentType)&&void 0!==n?n:"text/plain"});o=window.URL.createObjectURL(s)}var u=document.createElement("a");u.href=o,u.download=i.filename,u.click()}}}},{key:"handleLocalStorageQuotaFull",value:function(){console.warn("Localstorage quota exceeded. Clearing all queries"),n.clearStorage()}},{key:"getResponseFromStorage",value:function(){var t=this.getStorageId(this.config.persistenceLabelResponse);if(t)return this.storage.get(t)}},{key:"getPersistentConfig",value:function(){return{selectedPlugin:this.getSelectedPluginName(),pluginsConfig:Object(L.a)(this.config.plugins,(function(t){return t.dynamicConfig}))}}},{key:"storePluginConfig",value:function(t,e){var n=this.config.plugins[t];n&&(n.dynamicConfig=e,this.storeConfig(),this.emit("change",this))}},{key:"storeConfig",value:function(){var t=this.getStorageId(this.config.persistenceLabelConfig);t&&this.storage.set(t,this.getPersistentConfig(),this.config.persistencyExpire,this.handleLocalStorageQuotaFull)}},{key:"storeResponse",value:function(){var t=this.getStorageId(this.config.persistenceLabelResponse);if(t&&this.results){var e=this.results.getAsStoreObject(this.config.maxPersistentResponseSize);e&&!e.error?this.storage.set(t,e,this.config.persistencyExpire,this.handleLocalStorageQuotaFull):this.storage.remove(t)}}},{key:"setResponse",value:function(t,e,n,r,i,o){var a=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];t?(this.results=new qt(t,e,n,r,i,o),a&&this.draw(),this.storeResponse()):this.hideLoader()}},{key:"initializePlugins",value:function(){for(var t in this.config.plugins)this.config.plugins[t]&&(n.plugins[t]?this.plugins[t]=new n.plugins[t](this):console.warn("Wanted to initialize plugin "+t+" but could not find a matching registered plugin"))}}],[{key:"registerPlugin",value:function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n.plugins[t]=e,n.defaults.plugins[t]=r?{enabled:!0}:{enabled:!1}}},{key:"clearStorage",value:function(){new R.d(n.storageNamespace).removeNamespace()}}]),n}(g.EventEmitter);function ge(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];be.plugins[t]=e,be.defaults.plugins[t]=n?{enabled:!0}:{enabled:!1}}be.defaults={translationService:R.f.INSTANCE,timeFormattingService:R.e.INSTANCE,showResultInfo:!0,showQueryLoader:!0,persistenceId:function(t){var e="",n=t.rootEl;for(n.id&&(e=n.id);n&&n!==document;n=n.parentNode)if(n){n.id&&(e=n.id);break}return"yasr_"+e},getPlainQueryLinkToEndpoint:void 0,persistencyExpire:2592e3,persistenceLabelResponse:"response",persistenceLabelConfig:"config",maxPersistentResponseSize:1e5,prefixes:{},plugins:{},pluginOrder:["table","response"],defaultPlugin:"table",clearState:!1},be.plugins={},be.Dependencies={},be.storageNamespace="triply",be.registerPlugin("extended_boolean",ae),be.registerPlugin("extended_response",fe),be.registerPlugin("extended_error",de),be.registerPlugin("error",zt),be.registerPlugin("extended_table",oe),e.default=be},function(t,e,n){(function(t){e.a="object"==typeof t&&t&&t.Object===Object&&t}).call(this,n(64))},function(t,e){e.a=function(t){return function(e){return null==t?void 0:t[e]}}},function(t,e,n){var r=n(28),i=n(19),o=Object.prototype.hasOwnProperty;e.a=function(t,e,n){var a=t[e];o.call(t,e)&&Object(i.a)(a,n)&&(void 0!==n||e in t)||Object(r.a)(t,e,n)}},function(t,e,n){var r=n(6),i=n(33),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.a=function(t,e){if(Object(r.a)(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Object(i.a)(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var r=n(92),i=n(91),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),Object(r.a)(a(t),(function(e){return o.call(t,e)})))}:i.a;e.a=s},function(t,e,n){var r=n(31),i=n(78),o=n(5),a=function(t){return t==t&&!Object(o.a)(t)},s=n(26),u=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}},l=n(75),c=n(105),f=n(59),d=n(46),h=n(42),p=n(6);e.a=function(t){return"function"==typeof t?t:null==t?h.a:"object"==typeof t?Object(p.a)(t)?function(t,e){return Object(f.a)(t)&&a(e)?u(Object(d.a)(t),e):function(n){var r=function(t,e){var n=null==t?void 0:Object(l.a)(t,e);return void 0===n?void 0:n}(n,t);return void 0===r&&r===e?Object(c.a)(n,t):Object(i.a)(e,r,3)}}(t[0],t[1]):function(t){var e=function(t){for(var e=Object(s.a)(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,a(i)]}return e}(t);return 1==e.length&&e[0][2]?u(e[0][0],e[0][1]):function(n){return n===t||function(t,e,n,o){var a=n.length,s=a;if(null==t)return!s;for(t=Object(t);a--;){var u=n[a];if(u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++a<s;){var l=(u=n[a])[0],c=t[l],f=u[1];if(u[2]){if(void 0===c&&!(l in t))return!1}else{var d,h=new r.a;if(!(void 0===d?Object(i.a)(f,c,3,o,h):d))return!1}}return!0}(n,0,e)}}(t):function(t){return Object(f.a)(t)?function(t){return function(e){return null==e?void 0:e[t]}}(Object(d.a)(t)):function(t){return function(e){return Object(l.a)(e,t)}}(t)}(t)}},function(t,e,n){var r=n(6),i=n(59),o=n(50);function a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(a.Cache||o.a),n}a.Cache=o.a;var s=a,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,c=function(){var t=s((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(u,(function(t,n,r,i){e.push(r?i.replace(l,"$1"):n||t)})),e}),(function(t){return 500===e.size&&e.clear(),t})),e=t.cache;return t}(),f=n(30);e.a=function(t,e){return Object(r.a)(t)?t:Object(i.a)(t,e)?[t]:c(Object(f.a)(t))}},function(t,e,n){var r=n(122),i=n(160),o=n(89),a=n(123);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()}},function(t){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,e){e.a=function(t,e){return function(n){return t(e(n))}}},function(t,e){e.a=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){(function(t){var r=n(7),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.a.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.a=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(73)(t))},function(t,e,n){var r=n(54);e.a=function(t,e){var n=e?Object(r.a)(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(24),i=n(6),o=n(22),a=n(43),s=n(36),u=Object.prototype.hasOwnProperty;e.a=function(t,e){var n=Object(i.a)(t),l=!n&&Object(r.a)(t),c=!n&&!l&&Object(o.a)(t),f=!n&&!l&&!c&&Object(s.a)(t),d=n||l||c||f,h=d?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],p=h.length;for(var v in t)!e&&!u.call(t,v)||d&&("length"==v||c&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||Object(a.a)(v,p))||h.push(v);return h}},function(t,e){e.a=function(t,e,n){for(var r=-1,i=Object(t),o=n(t),a=o.length;a--;){var s=o[++r];if(!1===e(i[s],s,i))break}return t}},function(t,e,n){var r=n(5),i=Object.create,o=function(){function t(){}return function(e){if(!Object(r.a)(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),a=n(49),s=n(34);e.a=function(t){return"function"!=typeof t.constructor||Object(s.a)(t)?{}:o(Object(a.a)(t))}},function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(n,r)}t.exports=e},function(t){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e){var n;!function(e,n){"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(r,i){var o=[],a=Object.getPrototypeOf,s=o.slice,u=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},l=o.push,c=o.indexOf,f={},d=f.toString,h=f.hasOwnProperty,p=h.toString,v=p.call(Object),b={},g=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},m=function(t){return null!=t&&t===t.window},y=r.document,E={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var r,i,o=(n=n||y).createElement("script");if(o.text=t,e)for(r in E)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function T(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?f[d.call(t)]||"object":typeof t}var _=function(t,e){return new _.fn.init(t,e)};function S(t){var e=!!t&&"length"in t&&t.length,n=T(t);return!g(t)&&!m(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}_.fn=_.prototype={jquery:"3.5.1",constructor:_,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=_.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return _.each(this,t)},map:function(t){return this.pushStack(_.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(_.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:o.sort,splice:o.splice},_.extend=_.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(t=arguments[s]))for(e in t)r=t[e],"__proto__"!==e&&a!==r&&(l&&r&&(_.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[e],o=i&&!Array.isArray(n)?[]:i||_.isPlainObject(n)?n:{},i=!1,a[e]=_.extend(l,o,r)):void 0!==r&&(a[e]=r));return a},_.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==d.call(t)||(e=a(t))&&("function"!=typeof(n=h.call(e,"constructor")&&e.constructor)||p.call(n)!==v))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){x(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(S(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(S(Object(t))?_.merge(n,"string"==typeof t?[t]:t):l.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:c.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i<o;i++)!e(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,e,n){var r,i,o=0,a=[];if(S(t))for(r=t.length;o<r;o++)null!=(i=e(t[o],o,n))&&a.push(i);else for(o in t)null!=(i=e(t[o],o,n))&&a.push(i);return u(a)},guid:1,support:b}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=o[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){f["[object "+e+"]"]=e.toLowerCase()}));var w=function(t){var e,n,r,i,o,a,s,u,l,c,f,d,h,p,v,b,g,m,y,E="sizzle"+1*new Date,x=t.document,T=0,_=0,S=ut(),w=ut(),A=ut(),N=ut(),I=function(t,e){return t===e&&(f=!0),0},C={}.hasOwnProperty,L=[],R=L.pop,O=L.push,k=L.push,P=L.slice,D=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",q="(?:\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",F="\\["+j+"*("+q+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+q+"))|)"+j+"*\\]",U=":("+q+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",G=new RegExp(j+"+","g"),B=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),V=new RegExp("^"+j+"*,"+j+"*"),H=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),z=new RegExp(j+"|>"),$=new RegExp(U),Y=new RegExp("^"+q+"$"),W={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){d()},at=Et((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{k.apply(L=P.call(x.childNodes),x.childNodes)}catch(t){k={apply:L.length?function(t,e){O.apply(t,P.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function st(t,e,r,i){var o,s,l,c,f,p,g,m=e&&e.ownerDocument,x=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return r;if(!i&&(d(e),e=e||h,v)){if(11!==x&&(f=J.exec(t)))if(o=f[1]){if(9===x){if(!(l=e.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&y(e,l)&&l.id===o)return r.push(l),r}else{if(f[2])return k.apply(r,e.getElementsByTagName(t)),r;if((o=f[3])&&n.getElementsByClassName&&e.getElementsByClassName)return k.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!N[t+" "]&&(!b||!b.test(t))&&(1!==x||"object"!==e.nodeName.toLowerCase())){if(g=t,m=e,1===x&&(z.test(t)||H.test(t))){for((m=tt.test(t)&&gt(e.parentNode)||e)===e&&n.scope||((c=e.getAttribute("id"))?c=c.replace(rt,it):e.setAttribute("id",c=E)),s=(p=a(t)).length;s--;)p[s]=(c?"#"+c:":scope")+" "+yt(p[s]);g=p.join(",")}try{return k.apply(r,m.querySelectorAll(g)),r}catch(e){N(t,!0)}finally{c===E&&e.removeAttribute("id")}}}return u(t.replace(B,"$1"),e,r,i)}function ut(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function lt(t){return t[E]=!0,t}function ct(t){var e=h.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ft(t,e){for(var n=t.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=e}function dt(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ht(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function vt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function bt(t){return lt((function(e){return e=+e,lt((function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=st.support={},o=st.isXML=function(t){var e=(t.ownerDocument||t).documentElement;return!Q.test(t.namespaceURI||e&&e.nodeName||"HTML")},d=st.setDocument=function(t){var e,i,a=t?t.ownerDocument||t:x;return a!=h&&9===a.nodeType&&a.documentElement?(p=(h=a).documentElement,v=!o(h),x!=h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ot,!1):i.attachEvent&&i.attachEvent("onunload",ot)),n.scope=ct((function(t){return p.appendChild(t).appendChild(h.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=ct((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ct((function(t){return t.appendChild(h.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(h.getElementsByClassName),n.getById=ct((function(t){return p.appendChild(t).id=E,!h.getElementsByName||!h.getElementsByName(E).length})),n.getById?(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&v){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&v){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&v)return e.getElementsByClassName(t)},g=[],b=[],(n.qsa=Z.test(h.querySelectorAll))&&(ct((function(t){var e;p.appendChild(t).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&b.push("[*^$]="+j+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||b.push("\\["+j+"*(?:value|"+M+")"),t.querySelectorAll("[id~="+E+"-]").length||b.push("~="),(e=h.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||b.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||b.push(":checked"),t.querySelectorAll("a#"+E+"+*").length||b.push(".#.+[+~]"),t.querySelectorAll("\\\f"),b.push("[\\r\\n\\f]")})),ct((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=h.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&b.push("name"+j+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&b.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&b.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),b.push(",.*:")}))),(n.matchesSelector=Z.test(m=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ct((function(t){n.disconnectedMatch=m.call(t,"*"),m.call(t,"[s!='']:x"),g.push("!=",U)})),b=b.length&&new RegExp(b.join("|")),g=g.length&&new RegExp(g.join("|")),e=Z.test(p.compareDocumentPosition),y=e||Z.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},I=e?function(t,e){if(t===e)return f=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t==h||t.ownerDocument==x&&y(x,t)?-1:e==h||e.ownerDocument==x&&y(x,e)?1:c?D(c,t)-D(c,e):0:4&r?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t==h?-1:e==h?1:i?-1:o?1:c?D(c,t)-D(c,e):0;if(i===o)return dt(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?dt(a[r],s[r]):a[r]==x?-1:s[r]==x?1:0},h):h},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(d(t),n.matchesSelector&&v&&!N[e+" "]&&(!g||!g.test(e))&&(!b||!b.test(e)))try{var r=m.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){N(e,!0)}return st(e,h,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=h&&d(t),y(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=h&&d(t);var i=r.attrHandle[e.toLowerCase()],o=i&&C.call(r.attrHandle,e.toLowerCase())?i(t,e,!v):void 0;return void 0!==o?o:n.attributes||!v?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},st.escape=function(t){return(t+"").replace(rt,it)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(I),f){for(;e=t[o++];)e===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return c=null,t},i=st.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},(r=st.selectors={cacheLength:50,createPseudo:lt,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return W.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&$.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+j+")"+t+"("+j+"|$)"))&&S(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=st.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(G," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,d,h,p,v=o!==a?"nextSibling":"previousSibling",b=e.parentNode,g=s&&e.nodeName.toLowerCase(),m=!u&&!s,y=!1;if(b){if(o){for(;v;){for(d=e;d=d[v];)if(s?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;p=v="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?b.firstChild:b.lastChild],a&&m){for(y=(h=(l=(c=(f=(d=b)[E]||(d[E]={}))[d.uniqueID]||(f[d.uniqueID]={}))[t]||[])[0]===T&&l[1])&&l[2],d=h&&b.childNodes[h];d=++h&&d&&d[v]||(y=h=0)||p.pop();)if(1===d.nodeType&&++y&&d===e){c[t]=[T,h,y];break}}else if(m&&(y=h=(l=(c=(f=(d=e)[E]||(d[E]={}))[d.uniqueID]||(f[d.uniqueID]={}))[t]||[])[0]===T&&l[1]),!1===y)for(;(d=++h&&d&&d[v]||(y=h=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++y||(m&&((c=(f=d[E]||(d[E]={}))[d.uniqueID]||(f[d.uniqueID]={}))[t]=[T,y]),d!==e)););return(y-=i)===r||y%r==0&&y/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return i[E]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?lt((function(t,n){for(var r,o=i(t,e),a=o.length;a--;)t[r=D(t,o[a])]=!(n[r]=o[a])})):function(t){return i(t,0,n)}):i}},pseudos:{not:lt((function(t){var e=[],n=[],r=s(t.replace(B,"$1"));return r[E]?lt((function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}})),has:lt((function(t){return function(e){return st(t,e).length>0}})),contains:lt((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||i(e)).indexOf(t)>-1}})),lang:lt((function(t){return Y.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=v?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:vt(!1),disabled:vt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return X.test(t.nodeName)},input:function(t){return K.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:bt((function(){return[0]})),last:bt((function(t,e){return[e-1]})),eq:bt((function(t,e,n){return[n<0?n+e:n]})),even:bt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:bt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:bt((function(t,e,n){for(var r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t})),gt:bt((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[e]=ht(e);for(e in{submit:!0,reset:!0})r.pseudos[e]=pt(e);function mt(){}function yt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function Et(t,e,n){var r=e.dir,i=e.next,o=i||r,a=n&&"parentNode"===o,s=_++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||a)return t(e,n,i);return!1}:function(e,n,u){var l,c,f,d=[T,s];if(u){for(;e=e[r];)if((1===e.nodeType||a)&&t(e,n,u))return!0}else for(;e=e[r];)if(1===e.nodeType||a)if(c=(f=e[E]||(e[E]={}))[e.uniqueID]||(f[e.uniqueID]={}),i&&i===e.nodeName.toLowerCase())e=e[r]||e;else{if((l=c[o])&&l[0]===T&&l[1]===s)return d[2]=l[2];if(c[o]=d,d[2]=t(e,n,u))return!0}return!1}}function xt(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function Tt(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),l&&e.push(s)));return a}function _t(t,e,n,r,i,o){return r&&!r[E]&&(r=_t(r)),i&&!i[E]&&(i=_t(i,o)),lt((function(o,a,s,u){var l,c,f,d=[],h=[],p=a.length,v=o||function(t,e,n){for(var r=0,i=e.length;r<i;r++)st(t,e[r],n);return n}(e||"*",s.nodeType?[s]:s,[]),b=!t||!o&&e?v:Tt(v,d,t,s,u),g=n?i||(o?t:p||r)?[]:a:b;if(n&&n(b,g,s,u),r)for(l=Tt(g,h),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(g[h[c]]=!(b[h[c]]=f));if(o){if(i||t){if(i){for(l=[],c=g.length;c--;)(f=g[c])&&l.push(b[c]=f);i(null,g=[],l,u)}for(c=g.length;c--;)(f=g[c])&&(l=i?D(o,f):d[c])>-1&&(o[l]=!(a[l]=f))}}else g=Tt(g===a?g.splice(p,g.length):g),i?i(null,a,g,u):k.apply(a,g)}))}function St(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],u=a?1:0,c=Et((function(t){return t===e}),s,!0),f=Et((function(t){return D(e,t)>-1}),s,!0),d=[function(t,n,r){var i=!a&&(r||n!==l)||((e=n).nodeType?c(t,n,r):f(t,n,r));return e=null,i}];u<o;u++)if(n=r.relative[t[u].type])d=[Et(xt(d),n)];else{if((n=r.filter[t[u].type].apply(null,t[u].matches))[E]){for(i=++u;i<o&&!r.relative[t[i].type];i++);return _t(u>1&&xt(d),u>1&&yt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(B,"$1"),n,u<i&&St(t.slice(u,i)),i<o&&St(t=t.slice(i)),i<o&&yt(t))}d.push(n)}return xt(d)}return mt.prototype=r.filters=r.pseudos,r.setFilters=new mt,a=st.tokenize=function(t,e){var n,i,o,a,s,u,l,c=w[t+" "];if(c)return e?0:c.slice(0);for(s=t,u=[],l=r.preFilter;s;){for(a in n&&!(i=V.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=H.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(i=W[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?st.error(t):w(t,u).slice(0)},s=st.compile=function(t,e){var n,i=[],o=[],s=A[t+" "];if(!s){for(e||(e=a(t)),n=e.length;n--;)(s=St(e[n]))[E]?i.push(s):o.push(s);(s=A(t,function(t,e){var n=e.length>0,i=t.length>0,o=function(o,a,s,u,c){var f,p,b,g=0,m="0",y=o&&[],E=[],x=l,_=o||i&&r.find.TAG("*",c),S=T+=null==x?1:Math.random()||.1,w=_.length;for(c&&(l=a==h||a||c);m!==w&&null!=(f=_[m]);m++){if(i&&f){for(p=0,a||f.ownerDocument==h||(d(f),s=!v);b=t[p++];)if(b(f,a||h,s)){u.push(f);break}c&&(T=S)}n&&((f=!b&&f)&&g--,o&&y.push(f))}if(g+=m,n&&m!==g){for(p=0;b=e[p++];)b(y,E,a,s);if(o){if(g>0)for(;m--;)y[m]||E[m]||(E[m]=R.call(u));E=Tt(E)}k.apply(u,E),c&&!o&&E.length>0&&g+e.length>1&&st.uniqueSort(u)}return c&&(T=S,l=x),y};return n?lt(o):o}(o,i))).selector=t}return s},u=st.select=function(t,e,n,i){var o,u,l,c,f,d="function"==typeof t&&t,h=!i&&a(t=d.selector||t);if(n=n||[],1===h.length){if((u=h[0]=h[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===e.nodeType&&v&&r.relative[u[1].type]){if(!(e=(r.find.ID(l.matches[0].replace(et,nt),e)||[])[0]))return n;d&&(e=e.parentNode),t=t.slice(u.shift().value.length)}for(o=W.needsContext.test(t)?0:u.length;o--&&!r.relative[c=(l=u[o]).type];)if((f=r.find[c])&&(i=f(l.matches[0].replace(et,nt),tt.test(u[0].type)&&gt(e.parentNode)||e))){if(u.splice(o,1),!(t=i.length&&yt(u)))return k.apply(n,i),n;break}}return(d||s(t,h))(i,e,!v,n,!e||tt.test(t)&&gt(e.parentNode)||e),n},n.sortStable=E.split("").sort(I).join("")===E,n.detectDuplicates=!!f,d(),n.sortDetached=ct((function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))})),ct((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ft("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ct((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ft("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ct((function(t){return null==t.getAttribute("disabled")}))||ft(M,(function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),st}(r);_.find=w,_.expr=w.selectors,_.expr[":"]=_.expr.pseudos,_.uniqueSort=_.unique=w.uniqueSort,_.text=w.getText,_.isXMLDoc=w.isXML,_.contains=w.contains,_.escapeSelector=w.escape;var A=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&_(t).is(n))break;r.push(t)}return r},N=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},I=_.expr.match.needsContext;function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var L=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(t,e,n){return g(e)?_.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?_.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?_.grep(t,(function(t){return c.call(e,t)>-1!==n})):_.filter(e,t,n)}_.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?_.find.matchesSelector(r,t)?[r]:[]:_.find.matches(t,_.grep(e,(function(t){return 1===t.nodeType})))},_.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(_(t).filter((function(){for(e=0;e<r;e++)if(_.contains(i[e],this))return!0})));for(n=this.pushStack([]),e=0;e<r;e++)_.find(t,i[e],n);return r>1?_.uniqueSort(n):n},filter:function(t){return this.pushStack(R(this,t||[],!1))},not:function(t){return this.pushStack(R(this,t||[],!0))},is:function(t){return!!R(this,"string"==typeof t&&I.test(t)?_(t):t||[],!1).length}});var O,k=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||O,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:k.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(_.merge(this,_.parseHTML(r[1],(e=e instanceof _?e[0]:e)&&e.nodeType?e.ownerDocument||e:y,!0)),L.test(r[1])&&_.isPlainObject(e))for(r in e)g(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=y.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):g(t)?void 0!==n.ready?n.ready(t):t(_):_.makeArray(t,this)}).prototype=_.fn,O=_(y);var P=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function M(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}_.fn.extend({has:function(t){var e=_(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(_.contains(this,e[t]))return!0}))},closest:function(t,e){var n,r=0,i=this.length,o=[],a="string"!=typeof t&&_(t);if(!I.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&_.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?_.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(_(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),_.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return A(t,"parentNode")},parentsUntil:function(t,e,n){return A(t,"parentNode",n)},next:function(t){return M(t,"nextSibling")},prev:function(t){return M(t,"previousSibling")},nextAll:function(t){return A(t,"nextSibling")},prevAll:function(t){return A(t,"previousSibling")},nextUntil:function(t,e,n){return A(t,"nextSibling",n)},prevUntil:function(t,e,n){return A(t,"previousSibling",n)},siblings:function(t){return N((t.parentNode||{}).firstChild,t)},children:function(t){return N(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),_.merge([],t.childNodes))}},(function(t,e){_.fn[t]=function(n,r){var i=_.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=_.filter(r,i)),this.length>1&&(D[t]||_.uniqueSort(i),P.test(t)&&i.reverse()),this.pushStack(i)}}));var j=/[^\x20\t\r\n\f]+/g;function q(t){return t}function F(t){throw t}function U(t,e,n,r){var i;try{t&&g(i=t.promise)?i.call(t).done(e).fail(n):t&&g(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}_.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return _.each(t.match(j)||[],(function(t,n){e[n]=!0})),e}(t):_.extend({},t);var e,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||t.once,r=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function e(n){_.each(n,(function(n,r){g(r)?t.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==T(r)&&e(r)}))}(arguments),n&&!e&&u()),this},remove:function(){return _.each(arguments,(function(t,e){for(var n;(n=_.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(t){return t?_.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},_.extend({Deferred:function(t){var e=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return _.Deferred((function(n){_.each(e,(function(e,r){var i=g(t[r[4]])&&t[r[4]];o[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&g(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,i){var o=0;function a(t,e,n,i){return function(){var s=this,u=arguments,l=function(){var r,l;if(!(t<o)){if((r=n.apply(s,u))===e.promise())throw new TypeError("Thenable self-resolution");g(l=r&&("object"==typeof r||"function"==typeof r)&&r.then)?i?l.call(r,a(o,e,q,i),a(o,e,F,i)):(o++,l.call(r,a(o,e,q,i),a(o,e,F,i),a(o,e,q,e.notifyWith))):(n!==q&&(s=void 0,u=[r]),(i||e.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(r){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(r,c.stackTrace),t+1>=o&&(n!==F&&(s=void 0,u=[r]),e.rejectWith(s,u))}};t?c():(_.Deferred.getStackHook&&(c.stackTrace=_.Deferred.getStackHook()),r.setTimeout(c))}}return _.Deferred((function(r){e[0][3].add(a(0,r,g(i)?i:q,r.notifyWith)),e[1][3].add(a(0,r,g(t)?t:q)),e[2][3].add(a(0,r,g(n)?n:F))})).promise()},promise:function(t){return null!=t?_.extend(t,i):i}},o={};return _.each(e,(function(t,r){var a=r[2],s=r[5];i[r[1]]=a.add,s&&a.add((function(){n=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=s.call(arguments),o=_.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?s.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(U(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||g(i[n]&&i[n].then)))return o.then();for(;n--;)U(i[n],a(n),o.reject);return o.promise()}});var G=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&G.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},_.readyException=function(t){r.setTimeout((function(){throw t}))};var B=_.Deferred();function V(){y.removeEventListener("DOMContentLoaded",V),r.removeEventListener("load",V),_.ready()}_.fn.ready=function(t){return B.then(t).catch((function(t){_.readyException(t)})),this},_.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==t&&--_.readyWait>0||B.resolveWith(y,[_]))}}),_.ready.then=B.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?r.setTimeout(_.ready):(y.addEventListener("DOMContentLoaded",V),r.addEventListener("load",V));var H=function(t,e,n,r,i,o,a){var s=0,u=t.length,l=null==n;if("object"===T(n))for(s in i=!0,n)H(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(_(t),n)})),e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:l?e.call(t):u?e(t[0],n):o},z=/^-ms-/,$=/-([a-z])/g;function Y(t,e){return e.toUpperCase()}function W(t){return t.replace(z,"ms-").replace($,Y)}var Q=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function K(){this.expando=_.expando+K.uid++}K.uid=1,K.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Q(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[W(e)]=n;else for(r in e)i[W(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][W(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(W):(e=W(e))in r?[e]:e.match(j)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||_.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!_.isEmptyObject(e)}};var X=new K,Z=new K,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,tt=/[A-Z]/g;function et(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(tt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:J.test(t)?JSON.parse(t):t)}(n)}catch(t){}Z.set(t,e,n)}else n=void 0;return n}_.extend({hasData:function(t){return Z.hasData(t)||X.hasData(t)},data:function(t,e,n){return Z.access(t,e,n)},removeData:function(t,e){Z.remove(t,e)},_data:function(t,e,n){return X.access(t,e,n)},_removeData:function(t,e){X.remove(t,e)}}),_.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=Z.get(o),1===o.nodeType&&!X.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=W(r.slice(5)),et(o,r,i[r]));X.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each((function(){Z.set(this,t)})):H(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=Z.get(o,t))||void 0!==(n=et(o,t))?n:void 0;this.each((function(){Z.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){Z.remove(this,t)}))}}),_.extend({queue:function(t,e,n){var r;if(t)return r=X.get(t,e=(e||"fx")+"queue"),n&&(!r||Array.isArray(n)?r=X.access(t,e,_.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){var n=_.queue(t,e=e||"fx"),r=n.length,i=n.shift(),o=_._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,(function(){_.dequeue(t,e)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return X.get(t,n)||X.access(t,n,{empty:_.Callbacks("once memory").add((function(){X.remove(t,[e+"queue",n])}))})}}),_.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?_.queue(this[0],t):void 0===e?this:this.each((function(){var n=_.queue(this,t,e);_._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&_.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){_.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=_.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=X.get(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var nt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rt=new RegExp("^(?:([+-])=|)("+nt+")([a-z%]*)$","i"),it=["Top","Right","Bottom","Left"],ot=y.documentElement,at=function(t){return _.contains(t.ownerDocument,t)},st={composed:!0};ot.getRootNode&&(at=function(t){return _.contains(t.ownerDocument,t)||t.getRootNode(st)===t.ownerDocument});var ut=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&at(t)&&"none"===_.css(t,"display")};function lt(t,e,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return _.css(t,e,"")},u=s(),l=n&&n[3]||(_.cssNumber[e]?"":"px"),c=t.nodeType&&(_.cssNumber[e]||"px"!==l&&+u)&&rt.exec(_.css(t,e));if(c&&c[3]!==l){for(l=l||c[3],c=+(u/=2)||1;a--;)_.style(t,e,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;_.style(t,e,(c*=2)+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ct={};function ft(t){var e,n=t.ownerDocument,r=t.nodeName,i=ct[r];return i||(e=n.body.appendChild(n.createElement(r)),i=_.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),ct[r]=i,i)}function dt(t,e){for(var n,r,i=[],o=0,a=t.length;o<a;o++)(r=t[o]).style&&(n=r.style.display,e?("none"===n&&(i[o]=X.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ut(r)&&(i[o]=ft(r))):"none"!==n&&(i[o]="none",X.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}_.fn.extend({show:function(){return dt(this,!0)},hide:function(){return dt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){ut(this)?_(this).show():_(this).hide()}))}});var ht,pt,vt=/^(?:checkbox|radio)$/i,bt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,gt=/^$|^module$|\/(?:java|ecma)script/i;ht=y.createDocumentFragment().appendChild(y.createElement("div")),(pt=y.createElement("input")).setAttribute("type","radio"),pt.setAttribute("checked","checked"),pt.setAttribute("name","t"),ht.appendChild(pt),b.checkClone=ht.cloneNode(!0).cloneNode(!0).lastChild.checked,ht.innerHTML="<textarea>x</textarea>",b.noCloneChecked=!!ht.cloneNode(!0).lastChild.defaultValue,ht.innerHTML="<option></option>",b.option=!!ht.lastChild;var mt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function yt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&C(t,e)?_.merge([t],n):n}function Et(t,e){for(var n=0,r=t.length;n<r;n++)X.set(t[n],"globalEval",!e||X.get(e[n],"globalEval"))}mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td,b.option||(mt.optgroup=mt.option=[1,"<select multiple='multiple'>","</select>"]);var xt=/<|&#?\w+;/;function Tt(t,e,n,r,i){for(var o,a,s,u,l,c,f=e.createDocumentFragment(),d=[],h=0,p=t.length;h<p;h++)if((o=t[h])||0===o)if("object"===T(o))_.merge(d,o.nodeType?[o]:o);else if(xt.test(o)){for(a=a||f.appendChild(e.createElement("div")),s=(bt.exec(o)||["",""])[1].toLowerCase(),a.innerHTML=(u=mt[s]||mt._default)[1]+_.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;_.merge(d,a.childNodes),(a=f.firstChild).textContent=""}else d.push(e.createTextNode(o));for(f.textContent="",h=0;o=d[h++];)if(r&&_.inArray(o,r)>-1)i&&i.push(o);else if(l=at(o),a=yt(f.appendChild(o),"script"),l&&Et(a),n)for(c=0;o=a[c++];)gt.test(o.type||"")&&n.push(o);return f}var _t=/^key/,St=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,wt=/^([^.]*)(?:\.(.+)|)/;function At(){return!0}function Nt(){return!1}function It(t,e){return t===function(){try{return y.activeElement}catch(t){}}()==("focus"===e)}function Ct(t,e,n,r,i,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(r=r||n,n=void 0),e)Ct(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Nt;else if(!i)return t;return 1===o&&(a=i,(i=function(t){return _().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=_.guid++)),t.each((function(){_.event.add(this,e,i,r,n)}))}function Lt(t,e,n){n?(X.set(t,e,!1),_.event.add(t,e,{namespace:!1,handler:function(t){var r,i,o=X.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(_.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=s.call(arguments),X.set(this,e,o),r=n(this,e),this[e](),o!==(i=X.get(this,e))||r?X.set(this,e,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i.value}else o.length&&(X.set(this,e,{value:_.event.trigger(_.extend(o[0],_.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===X.get(t,e)&&_.event.add(t,e,At)}_.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,d,h,p,v,b=X.get(t);if(Q(t))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&_.find.matchesSelector(ot,i),n.guid||(n.guid=_.guid++),(u=b.events)||(u=b.events=Object.create(null)),(a=b.handle)||(a=b.handle=function(e){return void 0!==_&&_.event.triggered!==e.type?_.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(j)||[""]).length;l--;)h=v=(s=wt.exec(e[l])||[])[1],p=(s[2]||"").split(".").sort(),h&&(f=_.event.special[h]||{},f=_.event.special[h=(i?f.delegateType:f.bindType)||h]||{},c=_.extend({type:h,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&_.expr.match.needsContext.test(i),namespace:p.join(".")},o),(d=u[h])||((d=u[h]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(h,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,c):d.push(c),_.event.global[h]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,d,h,p,v,b=X.hasData(t)&&X.get(t);if(b&&(u=b.events)){for(l=(e=(e||"").match(j)||[""]).length;l--;)if(h=v=(s=wt.exec(e[l])||[])[1],p=(s[2]||"").split(".").sort(),h){for(f=_.event.special[h]||{},d=u[h=(r?f.delegateType:f.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!i&&v!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(t,c));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(t,p,b.handle)||_.removeEvent(t,h,b.handle),delete u[h])}else for(h in u)_.event.remove(t,h+e[l],n,r,!0);_.isEmptyObject(u)&&X.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,s=new Array(arguments.length),u=_.event.fix(t),l=(X.get(this,"events")||Object.create(null))[u.type]||[],c=_.event.special[u.type]||{};for(s[0]=u,e=1;e<arguments.length;e++)s[e]=arguments[e];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){for(a=_.event.handlers.call(this,u,l),e=0;(i=a[e++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((_.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(t,e){var n,r,i,o,a,s=[],u=e.delegateCount,l=t.target;if(u&&l.nodeType&&!("click"===t.type&&t.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=e[n]).selector+" "]&&(a[i]=r.needsContext?_(i,this).index(l)>-1:_.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<e.length&&s.push({elem:l,handlers:e.slice(u)}),s},addProp:function(t,e){Object.defineProperty(_.Event.prototype,t,{enumerable:!0,configurable:!0,get:g(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[_.expando]?t:new _.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return vt.test(e.type)&&e.click&&C(e,"input")&&Lt(e,"click",At),!1},trigger:function(t){var e=this||t;return vt.test(e.type)&&e.click&&C(e,"input")&&Lt(e,"click"),!0},_default:function(t){var e=t.target;return vt.test(e.type)&&e.click&&C(e,"input")&&X.get(e,"click")||C(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},_.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},_.Event=function(t,e){if(!(this instanceof _.Event))return new _.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?At:Nt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&_.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:Nt,isPropagationStopped:Nt,isImmediatePropagationStopped:Nt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=At,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=At,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=At,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&_t.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&St.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},(function(t,e){_.event.special[t]={setup:function(){return Lt(this,t,It),!1},trigger:function(){return Lt(this,t),!0},delegateType:e}})),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){_.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||_.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}})),_.fn.extend({on:function(t,e,n,r){return Ct(this,t,e,n,r)},one:function(t,e,n,r){return Ct(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,_(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Nt),this.each((function(){_.event.remove(this,t,n,e)}))}});var Rt=/<script|<style|<link/i,Ot=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Pt(t,e){return C(t,"table")&&C(11!==e.nodeType?e:e.firstChild,"tr")&&_(t).children("tbody")[0]||t}function Dt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Mt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function jt(t,e){var n,r,i,o,a,s;if(1===e.nodeType){if(X.hasData(t)&&(s=X.get(t).events))for(i in X.remove(e,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)_.event.add(e,i,s[i][n]);Z.hasData(t)&&(o=Z.access(t),a=_.extend({},o),Z.set(e,a))}}function qt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&vt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ft(t,e,n,r){e=u(e);var i,o,a,s,l,c,f=0,d=t.length,h=d-1,p=e[0],v=g(p);if(v||d>1&&"string"==typeof p&&!b.checkClone&&Ot.test(p))return t.each((function(i){var o=t.eq(i);v&&(e[0]=p.call(this,i,o.html())),Ft(o,e,n,r)}));if(d&&(o=(i=Tt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=_.map(yt(i,"script"),Dt)).length;f<d;f++)l=i,f!==h&&(l=_.clone(l,!0,!0),s&&_.merge(a,yt(l,"script"))),n.call(t[f],l,f);if(s)for(c=a[a.length-1].ownerDocument,_.map(a,Mt),f=0;f<s;f++)gt.test((l=a[f]).type||"")&&!X.access(l,"globalEval")&&_.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?_._evalUrl&&!l.noModule&&_._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):x(l.textContent.replace(kt,""),l,c))}return t}function Ut(t,e,n){for(var r,i=e?_.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||_.cleanData(yt(r)),r.parentNode&&(n&&at(r)&&Et(yt(r,"script")),r.parentNode.removeChild(r));return t}_.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,o,a,s=t.cloneNode(!0),u=at(t);if(!(b.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||_.isXMLDoc(t)))for(a=yt(s),r=0,i=(o=yt(t)).length;r<i;r++)qt(o[r],a[r]);if(e)if(n)for(o=o||yt(t),a=a||yt(s),r=0,i=o.length;r<i;r++)jt(o[r],a[r]);else jt(t,s);return(a=yt(s,"script")).length>0&&Et(a,!u&&yt(t,"script")),s},cleanData:function(t){for(var e,n,r,i=_.event.special,o=0;void 0!==(n=t[o]);o++)if(Q(n)){if(e=n[X.expando]){if(e.events)for(r in e.events)i[r]?_.event.remove(n,r):_.removeEvent(n,r,e.handle);n[X.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),_.fn.extend({detach:function(t){return Ut(this,t,!0)},remove:function(t){return Ut(this,t)},text:function(t){return H(this,(function(t){return void 0===t?_.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ft(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pt(this,t).appendChild(t)}))},prepend:function(){return Ft(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Pt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ft(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ft(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(_.cleanData(yt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return _.clone(this,t,e)}))},html:function(t){return H(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Rt.test(t)&&!mt[(bt.exec(t)||["",""])[1].toLowerCase()]){t=_.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(_.cleanData(yt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ft(this,arguments,(function(e){var n=this.parentNode;_.inArray(this,t)<0&&(_.cleanData(yt(this)),n&&n.replaceChild(e,this))}),t)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){_.fn[t]=function(t){for(var n,r=[],i=_(t),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),_(i[a])[e](n),l.apply(r,n.get());return this.pushStack(r)}}));var Gt=new RegExp("^("+nt+")(?!px)[a-z%]+$","i"),Bt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=r),e.getComputedStyle(t)},Vt=function(t,e,n){var r,i,o={};for(i in e)o[i]=t.style[i],t.style[i]=e[i];for(i in r=n.call(t),e)t.style[i]=o[i];return r},Ht=new RegExp(it.join("|"),"i");function zt(t,e,n){var r,i,o,a,s=t.style;return(n=n||Bt(t))&&(""!==(a=n.getPropertyValue(e)||n[e])||at(t)||(a=_.style(t,e)),!b.pixelBoxStyles()&&Gt.test(a)&&Ht.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function $t(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ot.appendChild(l).appendChild(c);var t=r.getComputedStyle(c);n="1%"!==t.top,u=12===e(t.marginLeft),c.style.right="60%",a=36===e(t.right),i=36===e(t.width),c.style.position="absolute",o=12===e(c.offsetWidth/3),ot.removeChild(l),c=null}}function e(t){return Math.round(parseFloat(t))}var n,i,o,a,s,u,l=y.createElement("div"),c=y.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",b.clearCloneStyle="content-box"===c.style.backgroundClip,_.extend(b,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,n,i;return null==s&&(t=y.createElement("table"),e=y.createElement("tr"),n=y.createElement("div"),t.style.cssText="position:absolute;left:-11111px",e.style.height="1px",n.style.height="9px",ot.appendChild(t).appendChild(e).appendChild(n),i=r.getComputedStyle(e),s=parseInt(i.height)>3,ot.removeChild(t)),s}}))}();var Yt=["Webkit","Moz","ms"],Wt=y.createElement("div").style,Qt={};function Kt(t){return _.cssProps[t]||Qt[t]||(t in Wt?t:Qt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Yt.length;n--;)if((t=Yt[n]+e)in Wt)return t}(t)||t)}var Xt=/^(none|table(?!-c[ea]).+)/,Zt=/^--/,Jt={position:"absolute",visibility:"hidden",display:"block"},te={letterSpacing:"0",fontWeight:"400"};function ee(t,e,n){var r=rt.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function ne(t,e,n,r,i,o){var a="width"===e?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=_.css(t,n+it[a],!0,i)),r?("content"===n&&(u-=_.css(t,"padding"+it[a],!0,i)),"margin"!==n&&(u-=_.css(t,"border"+it[a]+"Width",!0,i))):(u+=_.css(t,"padding"+it[a],!0,i),"padding"!==n?u+=_.css(t,"border"+it[a]+"Width",!0,i):s+=_.css(t,"border"+it[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-u-s-.5))||0),u}function re(t,e,n){var r=Bt(t),i=(!b.boxSizingReliable()||n)&&"border-box"===_.css(t,"boxSizing",!1,r),o=i,a=zt(t,e,r),s="offset"+e[0].toUpperCase()+e.slice(1);if(Gt.test(a)){if(!n)return a;a="auto"}return(!b.boxSizingReliable()&&i||!b.reliableTrDimensions()&&C(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===_.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===_.css(t,"boxSizing",!1,r),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+ne(t,e,n||(i?"border":"content"),o,r,a)+"px"}function ie(t,e,n,r,i){return new ie.prototype.init(t,e,n,r,i)}_.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=zt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=W(e),u=Zt.test(e),l=t.style;if(u||(e=Kt(s)),a=_.cssHooks[e]||_.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:l[e];"string"==(o=typeof n)&&(i=rt.exec(n))&&i[1]&&(n=lt(t,e,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(_.cssNumber[s]?"":"px")),b.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(u?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,r){var i,o,a,s=W(e);return Zt.test(e)||(e=Kt(s)),(a=_.cssHooks[e]||_.cssHooks[s])&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=zt(t,e,r)),"normal"===i&&e in te&&(i=te[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),_.each(["height","width"],(function(t,e){_.cssHooks[e]={get:function(t,n,r){if(n)return!Xt.test(_.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?re(t,e,r):Vt(t,Jt,(function(){return re(t,e,r)}))},set:function(t,n,r){var i,o=Bt(t),a=!b.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===_.css(t,"boxSizing",!1,o),u=r?ne(t,e,r,s,o):0;return s&&a&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ne(t,e,"border",!1,o)-.5)),u&&(i=rt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=_.css(t,e)),ee(0,n,u)}}})),_.cssHooks.marginLeft=$t(b.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(zt(t,"marginLeft"))||t.getBoundingClientRect().left-Vt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),_.each({margin:"",padding:"",border:"Width"},(function(t,e){_.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+it[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(_.cssHooks[t+e].set=ee)})),_.fn.extend({css:function(t,e){return H(this,(function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=Bt(t),i=e.length;a<i;a++)o[e[a]]=_.css(t,e[a],!1,r);return o}return void 0!==n?_.style(t,e,n):_.css(t,e)}),t,e,arguments.length>1)}}),_.Tween=ie,ie.prototype={constructor:ie,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||_.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(_.cssNumber[n]?"":"px")},cur:function(){var t=ie.propHooks[this.prop];return t&&t.get?t.get(this):ie.propHooks._default.get(this)},run:function(t){var e,n=ie.propHooks[this.prop];return this.pos=e=this.options.duration?_.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ie.propHooks._default.set(this),this}},ie.prototype.init.prototype=ie.prototype,ie.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=_.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){_.fx.step[t.prop]?_.fx.step[t.prop](t):1!==t.elem.nodeType||!_.cssHooks[t.prop]&&null==t.elem.style[Kt(t.prop)]?t.elem[t.prop]=t.now:_.style(t.elem,t.prop,t.now+t.unit)}}},ie.propHooks.scrollTop=ie.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},_.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},_.fx=ie.prototype.init,_.fx.step={};var oe,ae,se=/^(?:toggle|show|hide)$/,ue=/queueHooks$/;function le(){ae&&(!1===y.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(le):r.setTimeout(le,_.fx.interval),_.fx.tick())}function ce(){return r.setTimeout((function(){oe=void 0})),oe=Date.now()}function fe(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=it[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function de(t,e,n){for(var r,i=(he.tweeners[e]||[]).concat(he.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function he(t,e,n){var r,i,o=0,a=he.prefilters.length,s=_.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var e=oe||ce(),n=Math.max(0,l.startTime+l.duration-e),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(t,[l,r,n]),r<1&&a?n:(a||s.notifyWith(t,[l,1,0]),s.resolveWith(t,[l]),!1)},l=s.promise({elem:t,props:_.extend({},e),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},n),originalProperties:e,originalOptions:n,startTime:oe||ce(),duration:n.duration,tweens:[],createTween:function(e,n){var r=_.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return e?(s.notifyWith(t,[l,1,0]),s.resolveWith(t,[l,e])):s.rejectWith(t,[l,e]),this}}),c=l.props;for(function(t,e){var n,r,i,o,a;for(n in t)if(i=e[r=W(n)],o=t[n],Array.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(a=_.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=he.prefilters[o].call(l,t,c,l.opts))return g(r.stop)&&(_._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return _.map(c,de,l),g(l.opts.start)&&l.opts.start.call(t,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),_.fx.timer(_.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l}_.Animation=_.extend(he,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return lt(n.elem,t,rt.exec(e),n),n}]},tweener:function(t,e){g(t)?(e=t,t=["*"]):t=t.match(j);for(var n,r=0,i=t.length;r<i;r++)(he.tweeners[n=t[r]]=he.tweeners[n]||[]).unshift(e)},prefilters:[function(t,e,n){var r,i,o,a,s,u,l,c,f="width"in e||"height"in e,d=this,h={},p=t.style,v=t.nodeType&&ut(t),b=X.get(t,"fxshow");for(r in n.queue||(null==(a=_._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always((function(){d.always((function(){a.unqueued--,_.queue(t,"fx").length||a.empty.fire()}))}))),e)if(se.test(i=e[r])){if(delete e[r],o=o||"toggle"===i,i===(v?"hide":"show")){if("show"!==i||!b||void 0===b[r])continue;v=!0}h[r]=b&&b[r]||_.style(t,r)}if((u=!_.isEmptyObject(e))||!_.isEmptyObject(h))for(r in f&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=b&&b.display)&&(l=X.get(t,"display")),"none"===(c=_.css(t,"display"))&&(l?c=l:(dt([t],!0),l=t.style.display||l,c=_.css(t,"display"),dt([t]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===_.css(t,"float")&&(u||(d.done((function(){p.display=l})),null==l&&(l="none"===(c=p.display)?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),u=!1,h)u||(b?"hidden"in b&&(v=b.hidden):b=X.access(t,"fxshow",{display:l}),o&&(b.hidden=!v),v&&dt([t],!0),d.done((function(){for(r in v||dt([t]),X.remove(t,"fxshow"),h)_.style(t,r,h[r])}))),u=de(v?b[r]:0,r,d),r in b||(b[r]=u.start,v&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?he.prefilters.unshift(t):he.prefilters.push(t)}}),_.speed=function(t,e,n){var r=t&&"object"==typeof t?_.extend({},t):{complete:n||!n&&e||g(t)&&t,duration:t,easing:n&&e||e&&!g(e)&&e};return _.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration=r.duration in _.fx.speeds?_.fx.speeds[r.duration]:_.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&_.dequeue(this,r.queue)},r},_.fn.extend({fadeTo:function(t,e,n,r){return this.filter(ut).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=_.isEmptyObject(t),o=_.speed(e,n,r),a=function(){var e=he(this,_.extend({},t),o);(i||X.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,i=null!=t&&t+"queueHooks",o=_.timers,a=X.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ue.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||_.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=X.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=_.timers,a=r?r.length:0;for(n.finish=!0,_.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish}))}}),_.each(["toggle","show","hide"],(function(t,e){var n=_.fn[e];_.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(fe(e,!0),t,r,i)}})),_.each({slideDown:fe("show"),slideUp:fe("hide"),slideToggle:fe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){_.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}})),_.timers=[],_.fx.tick=function(){var t,e=0,n=_.timers;for(oe=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||_.fx.stop(),oe=void 0},_.fx.timer=function(t){_.timers.push(t),_.fx.start()},_.fx.interval=13,_.fx.start=function(){ae||(ae=!0,le())},_.fx.stop=function(){ae=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(t,e){return t=_.fx&&_.fx.speeds[t]||t,this.queue(e=e||"fx",(function(e,n){var i=r.setTimeout(e,t);n.stop=function(){r.clearTimeout(i)}}))},function(){var t=y.createElement("input"),e=y.createElement("select").appendChild(y.createElement("option"));t.type="checkbox",b.checkOn=""!==t.value,b.optSelected=e.selected,(t=y.createElement("input")).value="t",t.type="radio",b.radioValue="t"===t.value}();var pe,ve=_.expr.attrHandle;_.fn.extend({attr:function(t,e){return H(this,_.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){_.removeAttr(this,t)}))}}),_.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?_.prop(t,e,n):(1===o&&_.isXMLDoc(t)||(i=_.attrHooks[e.toLowerCase()]||(_.expr.match.bool.test(e)?pe:void 0)),void 0!==n?null===n?void _.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=_.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!b.radioValue&&"radio"===e&&C(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(j);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),pe={set:function(t,e,n){return!1===e?_.removeAttr(t,n):t.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=ve[e]||_.find.attr;ve[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=ve[a],ve[a]=i,i=null!=n(t,e,r)?a:null,ve[a]=o),i}}));var be=/^(?:input|select|textarea|button)$/i,ge=/^(?:a|area)$/i;function me(t){return(t.match(j)||[]).join(" ")}function ye(t){return t.getAttribute&&t.getAttribute("class")||""}function Ee(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(j)||[]}_.fn.extend({prop:function(t,e){return H(this,_.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[_.propFix[t]||t]}))}}),_.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&_.isXMLDoc(t)||(i=_.propHooks[e=_.propFix[e]||e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=_.find.attr(t,"tabindex");return e?parseInt(e,10):be.test(t.nodeName)||ge.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),b.optSelected||(_.propHooks.selected={get:function(){return null},set:function(){}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(g(t))return this.each((function(e){_(this).addClass(t.call(this,e,ye(this)))}));if((e=Ee(t)).length)for(;n=this[u++];)if(i=ye(n),r=1===n.nodeType&&" "+me(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=me(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(g(t))return this.each((function(e){_(this).removeClass(t.call(this,e,ye(this)))}));if(!arguments.length)return this.attr("class","");if((e=Ee(t)).length)for(;n=this[u++];)if(i=ye(n),r=1===n.nodeType&&" "+me(i)+" "){for(a=0;o=e[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=me(r))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):g(t)?this.each((function(n){_(this).toggleClass(t.call(this,n,ye(this),e),e)})):this.each((function(){var e,i,o,a;if(r)for(i=0,o=_(this),a=Ee(t);e=a[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=ye(this))&&X.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":X.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+me(ye(n))+" ").indexOf(e)>-1)return!0;return!1}});var xe=/\r/g;_.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=g(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,_(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=_.map(i,(function(t){return null==t?"":t+""}))),(e=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=_.valHooks[i.type]||_.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(xe,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(t){var e=_.find.attr(t,"value");return null!=e?e:me(_.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(e=_(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,r,i=t.options,o=_.makeArray(e),a=i.length;a--;)((r=i[a]).selected=_.inArray(_.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=_.inArray(_(t).val(),e)>-1}},b.checkOn||(_.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),b.focusin="onfocusin"in r;var Te=/^(?:focusinfocus|focusoutblur)$/,_e=function(t){t.stopPropagation()};_.extend(_.event,{trigger:function(t,e,n,i){var o,a,s,u,l,c,f,d,p=[n||y],v=h.call(t,"type")?t.type:t,b=h.call(t,"namespace")?t.namespace.split("."):[];if(a=d=s=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!Te.test(v+_.event.triggered)&&(v.indexOf(".")>-1&&(b=v.split("."),v=b.shift(),b.sort()),l=v.indexOf(":")<0&&"on"+v,(t=t[_.expando]?t:new _.Event(v,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:_.makeArray(e,[t]),f=_.event.special[v]||{},i||!f.trigger||!1!==f.trigger.apply(n,e))){if(!i&&!f.noBubble&&!m(n)){for(Te.test((u=f.delegateType||v)+v)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||y)&&p.push(s.defaultView||s.parentWindow||r)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)d=a,t.type=o>1?u:f.bindType||v,(c=(X.get(a,"events")||Object.create(null))[t.type]&&X.get(a,"handle"))&&c.apply(a,e),(c=l&&a[l])&&c.apply&&Q(a)&&(t.result=c.apply(a,e),!1===t.result&&t.preventDefault());return t.type=v,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),e)||!Q(n)||l&&g(n[v])&&!m(n)&&((s=n[l])&&(n[l]=null),_.event.triggered=v,t.isPropagationStopped()&&d.addEventListener(v,_e),n[v](),t.isPropagationStopped()&&d.removeEventListener(v,_e),_.event.triggered=void 0,s&&(n[l]=s)),t.result}},simulate:function(t,e,n){var r=_.extend(new _.Event,n,{type:t,isSimulated:!0});_.event.trigger(r,null,e)}}),_.fn.extend({trigger:function(t,e){return this.each((function(){_.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return _.event.trigger(t,e,n,!0)}}),b.focusin||_.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){_.event.simulate(e,t.target,_.event.fix(t))};_.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=X.access(r,e);i||r.addEventListener(t,n,!0),X.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=X.access(r,e)-1;i?X.access(r,e,i):(r.removeEventListener(t,n,!0),X.remove(r,e))}}}));var Se=r.location,we={guid:Date.now()},Ae=/\?/;_.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||_.error("Invalid XML: "+t),e};var Ne=/\[\]$/,Ie=/\r?\n/g,Ce=/^(?:submit|button|image|reset|file)$/i,Le=/^(?:input|select|textarea|keygen)/i;function Re(t,e,n,r){var i;if(Array.isArray(e))_.each(e,(function(e,i){n||Ne.test(t)?r(t,i):Re(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==T(e))r(t,e);else for(i in e)Re(t+"["+i+"]",e[i],n,r)}_.param=function(t,e){var n,r=[],i=function(t,e){var n=g(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!_.isPlainObject(t))_.each(t,(function(){i(this.name,this.value)}));else for(n in t)Re(n,t[n],e,i);return r.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=_.prop(this,"elements");return t?_.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!_(this).is(":disabled")&&Le.test(this.nodeName)&&!Ce.test(t)&&(this.checked||!vt.test(t))})).map((function(t,e){var n=_(this).val();return null==n?null:Array.isArray(n)?_.map(n,(function(t){return{name:e.name,value:t.replace(Ie,"\r\n")}})):{name:e.name,value:n.replace(Ie,"\r\n")}})).get()}});var Oe=/%20/g,ke=/#.*$/,Pe=/([?&])_=[^&]*/,De=/^(.*?):[ \t]*([^\r\n]*)$/gm,Me=/^(?:GET|HEAD)$/,je=/^\/\//,qe={},Fe={},Ue="*/".concat("*"),Ge=y.createElement("a");function Be(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(j)||[];if(g(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Ve(t,e,n,r){var i={},o=t===Fe;function a(s){var u;return i[s]=!0,_.each(t[s]||[],(function(t,s){var l=s(e,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(e.dataTypes.unshift(l),a(l),!1)})),u}return a(e.dataTypes[0])||!i["*"]&&a("*")}function He(t,e){var n,r,i=_.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&_.extend(!0,t,r),t}Ge.href=Se.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Se.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Se.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ue,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?He(He(t,_.ajaxSettings),e):He(_.ajaxSettings,t)},ajaxPrefilter:Be(qe),ajaxTransport:Be(Fe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var n,i,o,a,s,u,l,c,f,d,h=_.ajaxSetup({},e=e||{}),p=h.context||h,v=h.context&&(p.nodeType||p.jquery)?_(p):_.event,b=_.Deferred(),g=_.Callbacks("once memory"),m=h.statusCode||{},E={},x={},T="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(l){if(!a)for(a={};e=De.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(t,e){return null==l&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,E[t]=e),this},overrideMimeType:function(t){return null==l&&(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)S.always(t[S.status]);else for(e in t)m[e]=[m[e],t[e]];return this},abort:function(t){var e=t||T;return n&&n.abort(e),w(0,e),this}};if(b.promise(S),h.url=((t||h.url||Se.href)+"").replace(je,Se.protocol+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(j)||[""],null==h.crossDomain){u=y.createElement("a");try{u.href=h.url,u.href=u.href,h.crossDomain=Ge.protocol+"//"+Ge.host!=u.protocol+"//"+u.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=_.param(h.data,h.traditional)),Ve(qe,h,e,S),l)return S;for(f in(c=_.event&&h.global)&&0==_.active++&&_.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Me.test(h.type),i=h.url.replace(ke,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Oe,"+")):(d=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(Ae.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(Pe,"$1"),d=(Ae.test(i)?"&":"?")+"_="+we.guid+++d),h.url=i+d),h.ifModified&&(_.lastModified[i]&&S.setRequestHeader("If-Modified-Since",_.lastModified[i]),_.etag[i]&&S.setRequestHeader("If-None-Match",_.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||e.contentType)&&S.setRequestHeader("Content-Type",h.contentType),S.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ue+"; q=0.01":""):h.accepts["*"]),h.headers)S.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(p,S,h)||l))return S.abort();if(T="abort",g.add(h.complete),S.done(h.success),S.fail(h.error),n=Ve(Fe,h,e,S)){if(S.readyState=1,c&&v.trigger("ajaxSend",[S,h]),l)return S;h.async&&h.timeout>0&&(s=r.setTimeout((function(){S.abort("timeout")}),h.timeout));try{l=!1,n.send(E,w)}catch(t){if(l)throw t;w(-1,t)}}else w(-1,"No Transport");function w(t,e,a,u){var f,d,y,E,x,T=e;l||(l=!0,s&&r.clearTimeout(s),n=void 0,o=u||"",S.readyState=t>0?4:0,f=t>=200&&t<300||304===t,a&&(E=function(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(h,S,a)),!f&&_.inArray("script",h.dataTypes)>-1&&(h.converters["text script"]=function(){}),E=function(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(h,E,S,f),f?(h.ifModified&&((x=S.getResponseHeader("Last-Modified"))&&(_.lastModified[i]=x),(x=S.getResponseHeader("etag"))&&(_.etag[i]=x)),204===t||"HEAD"===h.type?T="nocontent":304===t?T="notmodified":(T=E.state,d=E.data,f=!(y=E.error))):(y=T,!t&&T||(T="error",t<0&&(t=0))),S.status=t,S.statusText=(e||T)+"",f?b.resolveWith(p,[d,T,S]):b.rejectWith(p,[S,T,y]),S.statusCode(m),m=void 0,c&&v.trigger(f?"ajaxSuccess":"ajaxError",[S,h,f?d:y]),g.fireWith(p,[S,T]),c&&(v.trigger("ajaxComplete",[S,h]),--_.active||_.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,n){return _.get(t,e,n,"json")},getScript:function(t,e){return _.get(t,void 0,e,"script")}}),_.each(["get","post"],(function(t,e){_[e]=function(t,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),_.ajax(_.extend({url:t,type:e,dataType:i,data:n,success:r},_.isPlainObject(t)&&t))}})),_.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),_._evalUrl=function(t,e,n){return _.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){_.globalEval(t,e,n)}})},_.fn.extend({wrapAll:function(t){var e;return this[0]&&(g(t)&&(t=t.call(this[0])),e=_(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return g(t)?this.each((function(e){_(this).wrapInner(t.call(this,e))})):this.each((function(){var e=_(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=g(t);return this.each((function(n){_(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(t){return!_.expr.pseudos.visible(t)},_.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var ze={0:200,1223:204},$e=_.ajaxSettings.xhr();b.cors=!!$e&&"withCredentials"in $e,b.ajax=$e=!!$e,_.ajaxTransport((function(t){var e,n;if(b.cors||$e&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(ze[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){e&&n()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),_.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return _.globalEval(t),t}}}),_.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),_.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=_("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),y.head.appendChild(e[0])},abort:function(){n&&n()}}}));var Ye,We=[],Qe=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=We.pop()||_.expando+"_"+we.guid++;return this[t]=!0,t}}),_.ajaxPrefilter("json jsonp",(function(t,e,n){var i,o,a,s=!1!==t.jsonp&&(Qe.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qe.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=g(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Qe,"$1"+i):!1!==t.jsonp&&(t.url+=(Ae.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||_.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},n.always((function(){void 0===o?_(r).removeProp(i):r[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,We.push(i)),a&&g(o)&&o(a[0]),a=o=void 0})),"script"})),b.createHTMLDocument=((Ye=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ye.childNodes.length),_.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(b.createHTMLDocument?((r=(e=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,e.head.appendChild(r)):e=y),o=!n&&[],(i=L.exec(t))?[e.createElement(i[1])]:(i=Tt([t],e,o),o&&o.length&&_(o).remove(),_.merge([],i.childNodes)));var r,i,o},_.fn.load=function(t,e,n){var r,i,o,a=this,s=t.indexOf(" ");return s>-1&&(r=me(t.slice(s)),t=t.slice(0,s)),g(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),a.length>0&&_.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(r?_("<div>").append(_.parseHTML(t)).find(r):t)})).always(n&&function(t,e){a.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},_.expr.pseudos.animated=function(t){return _.grep(_.timers,(function(e){return t===e.elem})).length},_.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,l=_.css(t,"position"),c=_(t),f={};"static"===l&&(t.style.position="relative"),s=c.offset(),o=_.css(t,"top"),u=_.css(t,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),g(e)&&(e=e.call(t,n,_.extend({},s))),null!=e.top&&(f.top=e.top-s.top+a),null!=e.left&&(f.left=e.left-s.left+i),"using"in e?e.using.call(t,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},_.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){_.offset.setOffset(this,t,e)}));var e,n,r=this[0];return r?r.getClientRects().length?{top:(e=r.getBoundingClientRect()).top+(n=r.ownerDocument.defaultView).pageYOffset,left:e.left+n.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===_.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===_.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=_(t).offset()).top+=_.css(t,"borderTopWidth",!0),i.left+=_.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-_.css(r,"marginTop",!0),left:e.left-i.left-_.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===_.css(t,"position");)t=t.offsetParent;return t||ot}))}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;_.fn[t]=function(r){return H(this,(function(t,r,i){var o;if(m(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[e]:t[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i}),t,r,arguments.length)}})),_.each(["top","left"],(function(t,e){_.cssHooks[e]=$t(b.pixelPosition,(function(t,n){if(n)return n=zt(t,e),Gt.test(n)?_(t).position()[e]+"px":n}))})),_.each({Height:"height",Width:"width"},(function(t,e){_.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){_.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return H(this,(function(e,n,i){var o;return m(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?_.css(e,n,s):_.style(e,n,i,s)}),e,a?i:void 0,a)}}))})),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){_.fn[e]=function(t){return this.on(e,t)}})),_.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){_.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var Ke=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;_.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),g(t))return r=s.call(arguments,2),(i=function(){return t.apply(e||this,r.concat(s.call(arguments)))}).guid=t.guid=t.guid||_.guid++,i},_.holdReady=function(t){t?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=C,_.isFunction=g,_.isWindow=m,_.camelCase=W,_.type=T,_.now=Date.now,_.isNumeric=function(t){var e=_.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},_.trim=function(t){return null==t?"":(t+"").replace(Ke,"")},void 0===(n=function(){return _}.apply(e,[]))||(t.exports=n);var Xe=r.jQuery,Ze=r.$;return _.noConflict=function(t){return r.$===_&&(r.$=Ze),t&&r.jQuery===_&&(r.jQuery=Xe),_},void 0===i&&(r.jQuery=r.$=_),_}))},function(t,e,n){var r=n(62),i=n(46);e.a=function(t,e){for(var n=0,o=(e=Object(r.a)(e,t)).length;null!=t&&n<o;)t=t[Object(i.a)(e[n++])];return n&&n==o?t:void 0}},function(t,e){e.a=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},function(t,e,n){var r=n(70),i=n(26);e.a=function(t,e){return t&&Object(r.a)(t,e,i.a)}},function(t,e,n){var r=n(31),i=n(50);function o(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i.a;++e<n;)this.add(t[e])}o.prototype.add=o.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},o.prototype.has=function(t){return this.__data__.has(t)};var a=o,s=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},u=function(t,e){return t.has(e)},l=function(t,e,n,r,i,o){var l=1&n,c=t.length,f=e.length;if(c!=f&&!(l&&f>c))return!1;var d=o.get(t);if(d&&o.get(e))return d==e;var h=-1,p=!0,v=2&n?new a:void 0;for(o.set(t,e),o.set(e,t);++h<c;){var b=t[h],g=e[h];if(r)var m=l?r(g,b,h,e,t,o):r(b,g,h,t,e,o);if(void 0!==m){if(m)continue;p=!1;break}if(v){if(!s(e,(function(t,e){if(!u(v,e)&&(b===t||i(b,t,n,r,o)))return v.push(e)}))){p=!1;break}}else if(b!==g&&!i(b,g,n,r,o)){p=!1;break}}return o.delete(t),o.delete(e),p},c=n(13),f=n(52),d=n(19),h=n(104),p=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},v=c.a?c.a.prototype:void 0,b=v?v.valueOf:void 0,g=function(t,e,n,r,i,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new f.a(t),new f.a(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Object(d.a)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=h.a;case"[object Set]":if(s||(s=p),t.size!=e.size&&!(1&r))return!1;var u=a.get(t);if(u)return u==e;r|=2,a.set(t,e);var c=l(s(t),s(e),r,i,o,a);return a.delete(t),c;case"[object Symbol]":if(b)return b.call(t)==b.call(e)}return!1},m=n(79),y=Object.prototype.hasOwnProperty,E=n(27),x=n(6),T=n(22),_=n(36),S="[object Object]",w=Object.prototype.hasOwnProperty,A=function(t,e,n,i,o,a){var s=Object(x.a)(t),u=Object(x.a)(e),c=s?"[object Array]":Object(E.a)(t),f=u?"[object Array]":Object(E.a)(e),d=(c="[object Arguments]"==c?S:c)==S,h=(f="[object Arguments]"==f?S:f)==S,p=c==f;if(p&&Object(T.a)(t)){if(!Object(T.a)(e))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new r.a),s||Object(_.a)(t)?l(t,e,n,i,o,a):g(t,e,c,n,i,o,a);if(!(1&n)){var v=d&&w.call(t,"__wrapped__"),b=h&&w.call(e,"__wrapped__");if(v||b){var A=v?t.value():t,N=b?e.value():e;return a||(a=new r.a),o(A,N,n,i,a)}}return!!p&&(a||(a=new r.a),function(t,e,n,r,i,o){var a=1&n,s=Object(m.a)(t),u=s.length;if(u!=Object(m.a)(e).length&&!a)return!1;for(var l=u;l--;){var c=s[l];if(!(a?c in e:y.call(e,c)))return!1}var f=o.get(t);if(f&&o.get(e))return f==e;var d=!0;o.set(t,e),o.set(e,t);for(var h=a;++l<u;){var p=t[c=s[l]],v=e[c];if(r)var b=a?r(v,p,c,e,t,o):r(p,v,c,t,e,o);if(!(void 0===b?p===v||i(p,v,n,r,o):b)){d=!1;break}h||(h="constructor"==c)}if(d&&!h){var g=t.constructor,E=e.constructor;g==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof E&&E instanceof E||(d=!1)}return o.delete(t),o.delete(e),d}(t,e,n,i,o,a))},N=n(9);e.a=function t(e,n,r,i,o){return e===n||(null==e||null==n||!Object(N.a)(e)&&!Object(N.a)(n)?e!=e&&n!=n:A(e,n,r,i,t,o))}},function(t,e,n){var r=n(90),i=n(60),o=n(26);e.a=function(t){return Object(r.a)(t,o.a,i.a)}},function(t,e,n){!function(t){function e(e,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(e,i,"rangeFinder");"number"==typeof n&&(n=t.Pos(n,0));var s=r(e,i,"minFoldSize");function u(t){var r=a(e,n);if(!r||r.to.line-r.from.line<s)return null;for(var i=e.findMarksAt(r.from),u=0;u<i.length;++u)if(i[u].__isFold&&"fold"!==o){if(!t)return null;r.cleared=!0,i[u].clear()}return r}var l=u(!0);if(r(e,i,"scanUp"))for(;!l&&n.line>e.firstLine();)n=t.Pos(n.line-1,0),l=u(!1);if(l&&!l.cleared&&"unfold"!==o){var c=function(t,e,n){var i=r(t,e,"widget");if("function"==typeof i&&(i=i(n.from,n.to)),"string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}(e,i,l);t.on(c,"mousedown",(function(e){f.clear(),t.e_preventDefault(e)}));var f=e.markText(l.from,l.to,{replacedWith:c,clearOnEnter:r(e,i,"clearOnEnter"),__isFold:!0});f.on("clear",(function(n,r){t.signal(e,"unfold",e,n,r)})),t.signal(e,"fold",e,l.from,l.to)}}t.newFoldFunction=function(t,n){return function(r,i){e(r,i,{rangeFinder:t,widget:n})}},t.defineExtension("foldCode",(function(t,n,r){e(this,t,n,r)})),t.defineExtension("isFolded",(function(t){for(var e=this.findMarksAt(t),n=0;n<e.length;++n)if(e[n].__isFold)return!0})),t.commands.toggleFold=function(t){t.foldCode(t.getCursor())},t.commands.fold=function(t){t.foldCode(t.getCursor(),null,"fold")},t.commands.unfold=function(t){t.foldCode(t.getCursor(),null,"unfold")},t.commands.foldAll=function(e){e.operation((function(){for(var n=e.firstLine(),r=e.lastLine();n<=r;n++)e.foldCode(t.Pos(n,0),null,"fold")}))},t.commands.unfoldAll=function(e){e.operation((function(){for(var n=e.firstLine(),r=e.lastLine();n<=r;n++)e.foldCode(t.Pos(n,0),null,"unfold")}))},t.registerHelper("fold","combine",(function(){var t=Array.prototype.slice.call(arguments,0);return function(e,n){for(var r=0;r<t.length;++r){var i=t[r](e,n);if(i)return i}}})),t.registerHelper("fold","auto",(function(t,e){for(var n=t.getHelpers(e,"fold"),r=0;r<n.length;r++){var i=n[r](t,e);if(i)return i}}));var n={rangeFinder:t.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function r(t,e,r){if(e&&void 0!==e[r])return e[r];var i=t.options.foldOptions;return i&&void 0!==i[r]?i[r]:n[r]}t.defineOption("foldOptions",null),t.defineExtension("foldOption",(function(t,e){return r(this,t,e)}))}(n(4))},function(t,e,n){var r=n(3),i=n(72),o=n(108),a=n(109);function s(e){var n="function"==typeof Map?new Map:void 0;return t.exports=s=function(t){if(null===t||!o(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return a(t,arguments,r(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),i(e,t)},s(e)}t.exports=s},function(t,e){e.a=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e){e.a=function(t){return function(){return t}}},function(t,e,n){var r=n(31),i=n(28),o=n(19),a=function(t,e,n){(void 0!==n&&!Object(o.a)(t[e],n)||void 0===n&&!(e in t))&&Object(i.a)(t,e,n)},s=n(70),u=n(67),l=n(68),c=n(66),f=n(71),d=n(24),h=n(6),p=n(16),v=n(9),b=function(t){return Object(v.a)(t)&&Object(p.a)(t)},g=n(22),m=n(41),y=n(5),E=n(14),x=n(49),T=Function.prototype.toString,_=Object.prototype.hasOwnProperty,S=T.call(Object),w=function(t){if(!Object(v.a)(t)||"[object Object]"!=Object(E.a)(t))return!1;var e=Object(x.a)(t);if(null===e)return!0;var n=_.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&T.call(n)==S},A=n(36),N=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},I=n(29),C=n(35),L=function(t,e,n,r,i,o,s){var p=N(t,n),v=N(e,n),E=s.get(v);if(E)a(t,n,E);else{var x=o?o(p,v,n+"",t,e,s):void 0,T=void 0===x;if(T){var _=Object(h.a)(v),S=!_&&Object(g.a)(v),L=!_&&!S&&Object(A.a)(v);x=v,_||S||L?Object(h.a)(p)?x=p:b(p)?x=Object(c.a)(p):S?(T=!1,x=Object(u.a)(v,!0)):L?(T=!1,x=Object(l.a)(v,!0)):x=[]:w(v)||Object(d.a)(v)?(x=p,Object(d.a)(p)?x=function(t){return Object(I.a)(t,Object(C.a)(t))}(p):Object(y.a)(p)&&!Object(m.a)(p)||(x=Object(f.a)(v))):T=!1}T&&(s.set(v,x),i(x,v,r,o,s),s.delete(v)),a(t,n,x)}};e.a=function t(e,n,i,o,u){e!==n&&Object(s.a)(n,(function(s,l){if(u||(u=new r.a),Object(y.a)(s))L(e,n,l,i,t,o,u);else{var c=o?o(N(e,l),s,l+"",e,n,u):void 0;void 0===c&&(c=s),a(e,l,c)}}),C.a)}},function(t,e,n){var r=n(5),i=n(33),o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.a=function(t){var e=function(t){return t?(t=function(t){if("number"==typeof t)return t;if(Object(i.a)(t))return NaN;if(Object(r.a)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Object(r.a)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=s.test(t);return n||u.test(t)?l(t.slice(2),n?2:8):a.test(t)?NaN:+t}(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(42),i=n(88),o=n(87),a=n(19),s=n(16),u=n(43),l=n(5),c=function(t,e,n){if(!Object(l.a)(n))return!1;var r=typeof e;return!!("number"==r?Object(s.a)(n)&&Object(u.a)(e,n.length):"string"==r&&e in n)&&Object(a.a)(n[e],t)};e.a=function(t){return function(t){return Object(o.a)(Object(i.a)(t,void 0,r.a),t+"")}((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&c(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e}))}},function(t,e,n){var r=n(83),i=n(44),o=n(42),a=i.a?function(t,e){return Object(i.a)(t,"toString",{configurable:!0,enumerable:!1,value:Object(r.a)(e),writable:!0})}:o.a,s=Date.now,u=function(t){var e=0,n=0;return function(){var r=s(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(a);e.a=u},function(t,e){var n=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},r=Math.max;e.a=function(t,e,i){return e=r(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=r(o.length-e,0),u=Array(s);++a<s;)u[a]=o[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=o[a];return l[e]=i(u),n(t,this,l)}}},function(t,e,n){var r=n(94);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}},function(t,e,n){var r=n(76),i=n(6);e.a=function(t,e,n){var o=e(t);return Object(i.a)(t)?o:Object(r.a)(o,n(t))}},function(t,e){e.a=function(){return[]}},function(t,e){e.a=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},function(t,e,n){var r=n(34),i=n(65),o=Object(i.a)(Object.keys,Object),a=Object.prototype.hasOwnProperty;e.a=function(t){if(!Object(r.a)(t))return o(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}},function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return null!==t&&"object"===e(t)}},function(t,e,n){!function(t){var e,n,r=t.Pos;function i(t,e){for(var n=function(t){var e=t.flags;return null!=e?e:(t.ignoreCase?"i":"")+(t.global?"g":"")+(t.multiline?"m":"")}(t),r=n,i=0;i<e.length;i++)-1==r.indexOf(e.charAt(i))&&(r+=e.charAt(i));return n==r?t:new RegExp(t.source,r)}function o(t){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(t.source)}function a(t,e,n){e=i(e,"g");for(var o=n.line,a=n.ch,s=t.lastLine();o<=s;o++,a=0){e.lastIndex=a;var u=t.getLine(o),l=e.exec(u);if(l)return{from:r(o,l.index),to:r(o,l.index+l[0].length),match:l}}}function s(t,e,n){if(!o(e))return a(t,e,n);e=i(e,"gm");for(var s,u=1,l=n.line,c=t.lastLine();l<=c;){for(var f=0;f<u&&!(l>c);f++){var d=t.getLine(l++);s=null==s?d:s+"\n"+d}u*=2,e.lastIndex=n.ch;var h=e.exec(s);if(h){var p=s.slice(0,h.index).split("\n"),v=h[0].split("\n"),b=n.line+p.length-1,g=p[p.length-1].length;return{from:r(b,g),to:r(b+v.length-1,1==v.length?g+v[0].length:v[v.length-1].length),match:h}}}}function u(t,e,n){for(var r,i=0;i<=t.length;){e.lastIndex=i;var o=e.exec(t);if(!o)break;var a=o.index+o[0].length;if(a>t.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function l(t,e,n){e=i(e,"g");for(var o=n.line,a=n.ch,s=t.firstLine();o>=s;o--,a=-1){var l=t.getLine(o),c=u(l,e,a<0?0:l.length-a);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function c(t,e,n){if(!o(e))return l(t,e,n);e=i(e,"gm");for(var a,s=1,c=t.getLine(n.line).length-n.ch,f=n.line,d=t.firstLine();f>=d;){for(var h=0;h<s&&f>=d;h++){var p=t.getLine(f--);a=null==a?p:p+"\n"+a}s*=2;var v=u(a,e,c);if(v){var b=a.slice(0,v.index).split("\n"),g=v[0].split("\n"),m=f+b.length,y=b[b.length-1].length;return{from:r(m,y),to:r(m+g.length-1,1==g.length?y+g[0].length:g[g.length-1].length),match:v}}}}function f(t,e,n,r){if(t.length==e.length)return n;for(var i=0,o=n+Math.max(0,t.length-e.length);;){if(i==o)return i;var a=i+o>>1,s=r(t.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function d(t,i,o,a){if(!i.length)return null;var s=a?e:n,u=s(i).split(/\r|\n\r?/);t:for(var l=o.line,c=o.ch,d=t.lastLine()+1-u.length;l<=d;l++,c=0){var h=t.getLine(l).slice(c),p=s(h);if(1==u.length){var v=p.indexOf(u[0]);if(-1==v)continue t;return o=f(h,p,v,s)+c,{from:r(l,f(h,p,v,s)+c),to:r(l,f(h,p,v+u[0].length,s)+c)}}var b=p.length-u[0].length;if(p.slice(b)==u[0]){for(var g=1;g<u.length-1;g++)if(s(t.getLine(l+g))!=u[g])continue t;var m=t.getLine(l+u.length-1),y=s(m),E=u[u.length-1];if(y.slice(0,E.length)==E)return{from:r(l,f(h,p,b,s)+c),to:r(l+u.length-1,f(m,y,E.length,s))}}}}function h(t,i,o,a){if(!i.length)return null;var s=a?e:n,u=s(i).split(/\r|\n\r?/);t:for(var l=o.line,c=o.ch,d=t.firstLine()-1+u.length;l>=d;l--,c=-1){var h=t.getLine(l);c>-1&&(h=h.slice(0,c));var p=s(h);if(1==u.length){var v=p.lastIndexOf(u[0]);if(-1==v)continue t;return{from:r(l,f(h,p,v,s)),to:r(l,f(h,p,v+u[0].length,s))}}var b=u[u.length-1];if(p.slice(0,b.length)==b){var g=1;for(o=l-u.length+1;g<u.length-1;g++)if(s(t.getLine(o+g))!=u[g])continue t;var m=t.getLine(l+1-u.length),y=s(m);if(y.slice(y.length-u[0].length)==u[0])return{from:r(l+1-u.length,f(m,y,m.length-u[0].length,s)),to:r(l,f(h,p,b.length,s))}}}}function p(t,e,n,o){var u;this.atOccurrence=!1,this.doc=t,n=n?t.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof o?u=o.caseFold:(u=o,o=null),"string"==typeof e?(null==u&&(u=!1),this.matches=function(n,r){return(n?h:d)(t,e,r,u)}):(e=i(e,"gm"),this.matches=o&&!1===o.multiline?function(n,r){return(n?l:a)(t,e,r)}:function(n,r){return(n?c:s)(t,e,r)})}String.prototype.normalize?(e=function(t){return t.normalize("NFD").toLowerCase()},n=function(t){return t.normalize("NFD")}):(e=function(t){return t.toLowerCase()},n=function(t){return t}),p.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){for(var n=this.matches(e,this.doc.clipPos(e?this.pos.from:this.pos.to));n&&0==t.cmpPos(n.from,n.to);)e?n.from.ch?n.from=r(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(e,this.doc.clipPos(r(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=r(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(e,r(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var i=r(e?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(e,n){if(this.atOccurrence){var i=t.splitLines(e);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},t.defineExtension("getSearchCursor",(function(t,e,n){return new p(this.doc,t,e,n)})),t.defineDocExtension("getSearchCursor",(function(t,e,n){return new p(this,t,e,n)})),t.defineExtension("selectMatches",(function(e,n){for(var r=[],i=this.getSearchCursor(e,this.getCursor("from"),n);i.findNext()&&!(t.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(4))},function(t,e){e.a=function(){return!1}},function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}},function(t,e,n){!function(t){t.defineOption("foldGutter",!1,(function(e,r,i){var o;i&&i!=t.Init&&(e.clearGutter(e.state.foldGutter.options.gutter),e.state.foldGutter=null,e.off("gutterClick",u),e.off("changes",l),e.off("viewportChange",c),e.off("fold",f),e.off("unfold",f),e.off("swapDoc",l)),r&&(e.state.foldGutter=new n((!0===(o=r)&&(o={}),null==o.gutter&&(o.gutter="CodeMirror-foldgutter"),null==o.indicatorOpen&&(o.indicatorOpen="CodeMirror-foldgutter-open"),null==o.indicatorFolded&&(o.indicatorFolded="CodeMirror-foldgutter-folded"),o)),s(e),e.on("gutterClick",u),e.on("changes",l),e.on("viewportChange",c),e.on("fold",f),e.on("unfold",f),e.on("swapDoc",l))}));var e=t.Pos;function n(t){this.options=t,this.from=this.to=0}function r(t,n){for(var r=t.findMarks(e(n,0),e(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold){var o=r[i].find(-1);if(o&&o.line===n)return r[i]}}function i(t){if("string"==typeof t){var e=document.createElement("div");return e.className=t+" CodeMirror-guttermarker-subtle",e}return t.cloneNode(!0)}function o(t,n,o){var s=t.state.foldGutter.options,u=n-1,l=t.foldOption(s,"minFoldSize"),c=t.foldOption(s,"rangeFinder"),f="string"==typeof s.indicatorFolded&&a(s.indicatorFolded),d="string"==typeof s.indicatorOpen&&a(s.indicatorOpen);t.eachLine(n,o,(function(n){++u;var o=null,a=n.gutterMarkers;if(a&&(a=a[s.gutter]),r(t,u)){if(f&&a&&f.test(a.className))return;o=i(s.indicatorFolded)}else{var h=e(u,0),p=c&&c(t,h);if(p&&p.to.line-p.from.line>=l){if(d&&a&&d.test(a.className))return;o=i(s.indicatorOpen)}}(o||a)&&t.setGutterMarker(n,s.gutter,o)}))}function a(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}function s(t){var e=t.getViewport(),n=t.state.foldGutter;n&&(t.operation((function(){o(t,e.from,e.to)})),n.from=e.from,n.to=e.to)}function u(t,n,i){var o=t.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var s=r(t,n);s?s.clear():t.foldCode(e(n,0),a)}}}function l(t){var e=t.state.foldGutter;if(e){var n=e.options;e.from=e.to=0,clearTimeout(e.changeUpdate),e.changeUpdate=setTimeout((function(){s(t)}),n.foldOnChangeTimeSpan||600)}}function c(t){var e=t.state.foldGutter;if(e){var n=e.options;clearTimeout(e.changeUpdate),e.changeUpdate=setTimeout((function(){var n=t.getViewport();e.from==e.to||n.from-e.to>20||e.from-n.to>20?s(t):t.operation((function(){n.from<e.from&&(o(t,n.from,e.from),e.from=n.from),n.to>e.to&&(o(t,e.to,n.to),e.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function f(t,e){var n=t.state.foldGutter;if(n){var r=e.line;r>=n.from&&r<n.to&&o(t,r,r+1)}}}(n(4),n(80))},function(t,e,n){!function(t){var e=t.Pos;function n(t,e){return t.line-e.line||t.ch-e.ch}var r="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=new RegExp("<(/?)(["+r+"]["+r+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function o(t,e,n,r){this.line=e,this.ch=n,this.cm=t,this.text=t.getLine(e),this.min=r?Math.max(r.from,t.firstLine()):t.firstLine(),this.max=r?Math.min(r.to-1,t.lastLine()):t.lastLine()}function a(t,n){var r=t.cm.getTokenTypeAt(e(t.line,n));return r&&/\btag\b/.test(r)}function s(t){if(!(t.line>=t.max))return t.ch=0,t.text=t.cm.getLine(++t.line),!0}function u(t){if(!(t.line<=t.min))return t.text=t.cm.getLine(--t.line),t.ch=t.text.length,!0}function l(t){for(;;){var e=t.text.indexOf(">",t.ch);if(-1==e){if(s(t))continue;return}if(a(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e+1}}function c(t){for(;;){var e=t.ch?t.text.lastIndexOf("<",t.ch-1):-1;if(-1==e){if(u(t))continue;return}if(a(t,e+1)){i.lastIndex=e,t.ch=e;var n=i.exec(t.text);if(n&&n.index==e)return n}else t.ch=e}}function f(t){for(;;){i.lastIndex=t.ch;var e=i.exec(t.text);if(!e){if(s(t))continue;return}if(a(t,e.index+1))return t.ch=e.index+e[0].length,e;t.ch=e.index+1}}function d(t){for(;;){var e=t.ch?t.text.lastIndexOf(">",t.ch-1):-1;if(-1==e){if(u(t))continue;return}if(a(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e}}function h(t,n){for(var r=[];;){var i,o=f(t),a=t.line,s=t.ch-(o?o[0].length:0);if(!o||!(i=l(t)))return;if("selfClose"!=i)if(o[1]){for(var u=r.length-1;u>=0;--u)if(r[u]==o[2]){r.length=u;break}if(u<0&&(!n||n==o[2]))return{tag:o[2],from:e(a,s),to:e(t.line,t.ch)}}else r.push(o[2])}}function p(t,n){for(var r=[];;){var i=d(t);if(!i)return;if("selfClose"!=i){var o=t.line,a=t.ch,s=c(t);if(!s)return;if(s[1])r.push(s[2]);else{for(var u=r.length-1;u>=0;--u)if(r[u]==s[2]){r.length=u;break}if(u<0&&(!n||n==s[2]))return{tag:s[2],from:e(t.line,t.ch),to:e(o,a)}}}else c(t)}}t.registerHelper("fold","xml",(function(t,r){for(var i=new o(t,r.line,0);;){var a=f(i);if(!a||i.line!=r.line)return;var s=l(i);if(!s)return;if(!a[1]&&"selfClose"!=s){var u=e(i.line,i.ch),c=h(i,a[2]);return c&&n(c.from,u)>0?{from:u,to:c.from}:null}}})),t.findMatchingTag=function(t,r,i){var a=new o(t,r.line,r.ch,i);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var s=l(a),u=s&&e(a.line,a.ch),f=s&&c(a);if(s&&f&&!(n(a,r)>0)){var d={from:e(a.line,a.ch),to:u,tag:f[2]};return"selfClose"==s?{open:d,close:null,at:"open"}:f[1]?{open:p(a,f[2]),close:d,at:"close"}:{open:d,close:h(a=new o(t,u.line,u.ch,i),f[2]),at:"open"}}}},t.findEnclosingTag=function(t,e,n,r){for(var i=new o(t,e.line,e.ch,n);;){var a=p(i,r);if(!a)break;var s=h(new o(t,e.line,e.ch,n),a.tag);if(s)return{open:a,close:s}}},t.scanForClosingTag=function(t,e,n,r){return h(new o(t,e.line,e.ch,r?{from:0,to:r}:null),n)}}(n(4))},function(t,e,n){!function(t){t.registerHelper("fold","brace",(function(e,n){var r,i=n.line,o=e.getLine(i);function a(a){for(var s=n.ch,u=0;;){var l=s<=0?-1:o.lastIndexOf(a,s-1);if(-1!=l){if(1==u&&l<n.ch)break;if(r=e.getTokenTypeAt(t.Pos(i,l+1)),!/^(comment|string)/.test(r))return l+1;s=l-1}else{if(1==u)break;u=1,s=o.length}}}var s="{",u="}",l=a("{");if(null==l&&(s="[",u="]",l=a("[")),null!=l){var c,f,d=1,h=e.lastLine();t:for(var p=i;p<=h;++p)for(var v=e.getLine(p),b=p==i?l:0;;){var g=v.indexOf(s,b),m=v.indexOf(u,b);if(g<0&&(g=v.length),m<0&&(m=v.length),(b=Math.min(g,m))==v.length)break;if(e.getTokenTypeAt(t.Pos(p,b+1))==r)if(b==g)++d;else if(!--d){c=p,f=b;break t}++b}if(null!=c&&i!=c)return{from:t.Pos(i,l),to:t.Pos(c,f)}}})),t.registerHelper("fold","import",(function(e,n){function r(n){if(n<e.firstLine()||n>e.lastLine())return null;var r=e.getTokenAt(t.Pos(n,1));if(/\S/.test(r.string)||(r=e.getTokenAt(t.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(e.lastLine(),n+10);i<=o;++i){var a=e.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:t.Pos(i,a)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var u=r(s.line+1);if(null==u)break;s=u.end}return{from:e.clipPos(t.Pos(o,a.startCh+1)),to:s}})),t.registerHelper("fold","include",(function(e,n){function r(n){if(n<e.firstLine()||n>e.lastLine())return null;var r=e.getTokenAt(t.Pos(n,1));return/\S/.test(r.string)||(r=e.getTokenAt(t.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:t.Pos(i,o+1),to:e.clipPos(t.Pos(a))}}))}(n(4))},function(t,e,n){!function(t){var e=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=t.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(t){return t&&t.bracketRegex||/[(){}[\]]/}function o(t,e,o){var s=t.getLineHandle(e.line),u=e.ch-1,l=o&&o.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var c=i(o),f=!l&&u>=0&&c.test(s.text.charAt(u))&&r[s.text.charAt(u)]||c.test(s.text.charAt(u+1))&&r[s.text.charAt(++u)];if(!f)return null;var d=">"==f.charAt(1)?1:-1;if(o&&o.strict&&d>0!=(u==e.ch))return null;var h=t.getTokenTypeAt(n(e.line,u+1)),p=a(t,n(e.line,u+(d>0?1:0)),d,h||null,o);return null==p?null:{from:n(e.line,u),to:p&&p.pos,match:p&&p.ch==f.charAt(0),forward:d>0}}function a(t,e,o,a,s){for(var u=s&&s.maxScanLineLength||1e4,l=s&&s.maxScanLines||1e3,c=[],f=i(s),d=o>0?Math.min(e.line+l,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-l),h=e.line;h!=d;h+=o){var p=t.getLine(h);if(p){var v=o>0?0:p.length-1,b=o>0?p.length:-1;if(!(p.length>u))for(h==e.line&&(v=e.ch-(o<0?1:0));v!=b;v+=o){var g=p.charAt(v);if(f.test(g)&&(void 0===a||t.getTokenTypeAt(n(h,v+1))==a)){var m=r[g];if(m&&">"==m.charAt(1)==o>0)c.push(g);else{if(!c.length)return{pos:n(h,v),ch:g};c.pop()}}}}}return h-o!=(o>0?t.lastLine():t.firstLine())&&null}function s(t,r,i){for(var a=t.state.matchBrackets.maxHighlightLineLength||1e3,s=[],u=t.listSelections(),l=0;l<u.length;l++){var c=u[l].empty()&&o(t,u[l].head,i);if(c&&t.getLine(c.from.line).length<=a){var f=c.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(t.markText(c.from,n(c.from.line,c.from.ch+1),{className:f})),c.to&&t.getLine(c.to.line).length<=a&&s.push(t.markText(c.to,n(c.to.line,c.to.ch+1),{className:f}))}}if(s.length){e&&t.state.focused&&t.focus();var d=function(){t.operation((function(){for(var t=0;t<s.length;t++)s[t].clear()}))};if(!r)return d;setTimeout(d,800)}}function u(t){t.operation((function(){t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null),t.state.matchBrackets.currentlyHighlighted=s(t,!1,t.state.matchBrackets)}))}t.defineOption("matchBrackets",!1,(function(e,n,r){function i(t){t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)}r&&r!=t.Init&&(e.off("cursorActivity",u),e.off("focus",u),e.off("blur",i),i(e)),n&&(e.state.matchBrackets="object"==typeof n?n:{},e.on("cursorActivity",u),e.on("focus",u),e.on("blur",i))})),t.defineExtension("matchBrackets",(function(){s(this,!0)})),t.defineExtension("findMatchingBracket",(function(t,e,n){return(n||"boolean"==typeof e)&&(n?(n.strict=e,e=n):e=e?{strict:!0}:null),o(this,t,e)})),t.defineExtension("scanForBracket",(function(t,e,n,r){return a(this,t,e,n,r)}))}(n(4))},function(){},function(t,e){e.a=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e,n){var r=function(t,e){return null!=t&&e in Object(t)},i=n(62),o=n(24),a=n(6),s=n(43),u=n(48),l=n(46);e.a=function(t,e){return null!=t&&function(t,e,n){for(var r=-1,c=(e=Object(i.a)(e,t)).length,f=!1;++r<c;){var d=Object(l.a)(e[r]);if(!(f=null!=t&&n(t,d)))break;t=t[d]}return f||++r!=c?f:!!(c=null==t?0:t.length)&&Object(u.a)(c)&&Object(s.a)(d,c)&&(Object(a.a)(t)||Object(o.a)(t))}(t,e,r)}},function(t){t.exports=function(){var t=Object.hasOwnProperty,e=Object.setPrototypeOf,n=Object.isFrozen,r=Object.keys,i=Object.freeze,o=Object.seal,a="undefined"!=typeof Reflect&&Reflect,s=a.apply,u=a.construct;s||(s=function(t,e,n){return t.apply(e,n)}),i||(i=function(t){return t}),o||(o=function(t){return t}),u||(u=function(t,e){return new(Function.prototype.bind.apply(t,[null].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e))))});var l=_(Array.prototype.forEach),c=_(Array.prototype.indexOf),f=_(Array.prototype.join),d=_(Array.prototype.pop),h=_(Array.prototype.push),p=_(Array.prototype.slice),v=_(String.prototype.toLowerCase),b=_(String.prototype.match),g=_(String.prototype.replace),m=_(String.prototype.indexOf),y=_(String.prototype.trim),E=_(RegExp.prototype.test),x=S(RegExp),T=S(TypeError);function _(t){return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return s(t,e,r)}}function S(t){return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return u(t,n)}}function w(t,r){e&&e(t,null);for(var i=r.length;i--;){var o=r[i];if("string"==typeof o){var a=v(o);a!==o&&(n(r)||(r[i]=a),o=a)}t[o]=!0}return t}function A(e){var n={},r=void 0;for(r in e)s(t,e,[r])&&(n[r]=e[r]);return n}var N=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),I=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"]),C=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),L=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),R=i(["#text"]),O=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),k=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),D=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),M=o(/\{\{[\s\S]*|[\s\S]*\}\}/gm),j=o(/<%[\s\S]*|[\s\S]*%>/gm),q=o(/^data-[\-\w.\u00B7-\uFFFF]/),F=o(/^aria-[\-\w]+$/),U=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=o(/^(?:\w+script|data):/i),B=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function H(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var z=function(){return"undefined"==typeof window?null:window},$=function(t,e){if("object"!==(void 0===t?"undefined":V(t))||"function"!=typeof t.createPolicy)return null;var n=null;e.currentScript&&e.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=e.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z(),n=function(e){return t(e)};if(n.version="2.0.12",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var o=e.document,a=!1,s=e.document,u=e.DocumentFragment,_=e.HTMLTemplateElement,S=e.Node,Y=e.NodeFilter,W=e.NamedNodeMap,Q=void 0===W?e.NamedNodeMap||e.MozNamedAttrMap:W,K=e.Text,X=e.Comment,Z=e.DOMParser,J=e.trustedTypes;if("function"==typeof _){var tt=s.createElement("template");tt.content&&tt.content.ownerDocument&&(s=tt.content.ownerDocument)}var et=$(J,o),nt=et&&Pt?et.createHTML(""):"",rt=s,it=rt.implementation,ot=rt.createNodeIterator,at=rt.getElementsByTagName,st=rt.createDocumentFragment,ut=o.importNode,lt={};n.isSupported=it&&void 0!==it.createHTMLDocument&&9!==s.documentMode;var ct=M,ft=j,dt=q,ht=F,pt=G,vt=B,bt=U,gt=null,mt=w({},[].concat(H(N),H(I),H(C),H(L),H(R))),yt=null,Et=w({},[].concat(H(O),H(k),H(P),H(D))),xt=null,Tt=null,_t=!0,St=!0,wt=!1,At=!1,Nt=!1,It=!1,Ct=!1,Lt=!1,Rt=!1,Ot=!1,kt=!1,Pt=!1,Dt=!0,Mt=!0,jt=!1,qt={},Ft=w({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ut=null,Gt=w({},["audio","video","img","source","image","track"]),Bt=null,Vt=w({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ht=null,zt=s.createElement("form"),$t=function(t){Ht&&Ht===t||(t&&"object"===(void 0===t?"undefined":V(t))||(t={}),gt="ALLOWED_TAGS"in t?w({},t.ALLOWED_TAGS):mt,yt="ALLOWED_ATTR"in t?w({},t.ALLOWED_ATTR):Et,Bt="ADD_URI_SAFE_ATTR"in t?w(A(Vt),t.ADD_URI_SAFE_ATTR):Vt,Ut="ADD_DATA_URI_TAGS"in t?w(A(Gt),t.ADD_DATA_URI_TAGS):Gt,xt="FORBID_TAGS"in t?w({},t.FORBID_TAGS):{},Tt="FORBID_ATTR"in t?w({},t.FORBID_ATTR):{},_t=!1!==t.ALLOW_ARIA_ATTR,St=!1!==t.ALLOW_DATA_ATTR,wt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,At=t.SAFE_FOR_JQUERY||!1,It=t.WHOLE_DOCUMENT||!1,Rt=t.RETURN_DOM||!1,kt=t.RETURN_DOM_IMPORT||!1,Pt=t.RETURN_TRUSTED_TYPE||!1,Lt=t.FORCE_BODY||!1,Dt=!1!==t.SANITIZE_DOM,Mt=!1!==t.KEEP_CONTENT,jt=t.IN_PLACE||!1,bt=t.ALLOWED_URI_REGEXP||bt,(Nt=t.SAFE_FOR_TEMPLATES||!1)&&(St=!1),(Ot=t.RETURN_DOM_FRAGMENT||!1)&&(Rt=!0),(qt="USE_PROFILES"in t&&t.USE_PROFILES)&&(gt=w({},[].concat(H(R))),yt=[],!0===qt.html&&(w(gt,N),w(yt,O)),!0===qt.svg&&(w(gt,I),w(yt,k),w(yt,D)),!0===qt.svgFilters&&(w(gt,C),w(yt,k),w(yt,D)),!0===qt.mathMl&&(w(gt,L),w(yt,P),w(yt,D))),t.ADD_TAGS&&(gt===mt&&(gt=A(gt)),w(gt,t.ADD_TAGS)),t.ADD_ATTR&&(yt===Et&&(yt=A(yt)),w(yt,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&w(Bt,t.ADD_URI_SAFE_ATTR),Mt&&(gt["#text"]=!0),It&&w(gt,["html","head","body"]),gt.table&&(w(gt,["tbody"]),delete xt.tbody),i&&i(t),Ht=t)},Yt=function(t){h(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.outerHTML=nt}},Wt=function(t,e){try{h(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){h(n.removed,{attribute:null,from:e})}e.removeAttribute(t)},Qt=function(t){var e=void 0,n=void 0;if(Lt)t="<remove></remove>"+t;else{var r=b(t,/^[\r\n\t ]+/);n=r&&r[0]}var i=et?et.createHTML(t):t;try{e=(new Z).parseFromString(i,"text/html")}catch(t){}if(a&&w(xt,["title"]),!e||!e.documentElement){var o=(e=it.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=i}return t&&n&&e.body.insertBefore(s.createTextNode(n),e.body.childNodes[0]||null),at.call(e,It?"html":"body")[0]};n.isSupported&&function(){try{var t=Qt("<x/><title>&lt;/title&gt;&lt;img&gt;");E(/<\/title/,t.querySelector("title").innerHTML)&&(a=!0)}catch(t){}}();var Kt=function(t){return ot.call(t.ownerDocument||t,t,Y.SHOW_ELEMENT|Y.SHOW_COMMENT|Y.SHOW_TEXT,(function(){return Y.FILTER_ACCEPT}),!1)},Xt=function(t){return!(t instanceof K||t instanceof X||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof Q&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI)},Zt=function(t){return"object"===(void 0===S?"undefined":V(S))?t instanceof S:t&&"object"===(void 0===t?"undefined":V(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Jt=function(t,e,r){lt[t]&&l(lt[t],(function(t){t.call(n,e,r,Ht)}))},te=function(t){var e=void 0;if(Jt("beforeSanitizeElements",t,null),Xt(t))return Yt(t),!0;var r=v(t.nodeName);if(Jt("uponSanitizeElement",t,{tagName:r,allowedTags:gt}),("svg"===r||"math"===r)&&0!==t.querySelectorAll("p, br").length)return Yt(t),!0;if(!gt[r]||xt[r]){if(Mt&&!Ft[r]&&"function"==typeof t.insertAdjacentHTML)try{var i=t.innerHTML;t.insertAdjacentHTML("AfterEnd",et?et.createHTML(i):i)}catch(t){}return Yt(t),!0}return"noscript"===r&&E(/<\/noscript/i,t.innerHTML)||"noembed"===r&&E(/<\/noembed/i,t.innerHTML)?(Yt(t),!0):(!At||t.firstElementChild||t.content&&t.content.firstElementChild||!E(/</g,t.textContent)||(h(n.removed,{element:t.cloneNode()}),t.innerHTML=g(t.innerHTML?t.innerHTML:t.textContent,/</g,"&lt;")),Nt&&3===t.nodeType&&(e=g(e=t.textContent,ct," "),e=g(e,ft," "),t.textContent!==e&&(h(n.removed,{element:t.cloneNode()}),t.textContent=e)),Jt("afterSanitizeElements",t,null),!1)},ee=function(t,e,n){if(Dt&&("id"===e||"name"===e)&&(n in s||n in zt))return!1;if(St&&E(dt,e));else if(_t&&E(ht,e));else{if(!yt[e]||Tt[e])return!1;if(Bt[e]);else if(E(bt,g(n,vt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==m(n,"data:")||!Ut[t])if(wt&&!E(pt,g(n,vt,"")));else if(n)return!1}return!0},ne=function(t){var e=void 0,i=void 0,o=void 0,a=void 0,s=void 0;Jt("beforeSanitizeAttributes",t,null);var u=t.attributes;if(u){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:yt};for(s=u.length;s--;){var h=e=u[s],b=h.name,m=h.namespaceURI;if(i=y(e.value),o=v(b),l.attrName=o,l.attrValue=i,l.keepAttr=!0,l.forceKeepAttr=void 0,Jt("uponSanitizeAttribute",t,l),i=l.attrValue,!l.forceKeepAttr){if("name"===o&&"IMG"===t.nodeName&&u.id)a=u.id,u=p(u,[]),Wt("id",t),Wt(b,t),c(u,a)>s&&t.setAttribute("id",a.value);else{if("INPUT"===t.nodeName&&"type"===o&&"file"===i&&l.keepAttr&&(yt[o]||!Tt[o]))continue;"id"===b&&t.setAttribute(b,""),Wt(b,t)}if(l.keepAttr)if(At&&E(/\/>/i,i))Wt(b,t);else if(E(/svg|math/i,t.namespaceURI)&&E(x("</("+f(r(Ft),"|")+")","i"),i))Wt(b,t);else{Nt&&(i=g(i,ct," "),i=g(i,ft," "));var T=t.nodeName.toLowerCase();if(ee(T,o,i))try{m?t.setAttributeNS(m,b,i):t.setAttribute(b,i),d(n.removed)}catch(t){}}}}Jt("afterSanitizeAttributes",t,null)}},re=function t(e){var n=void 0,r=Kt(e);for(Jt("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)Jt("uponSanitizeShadowNode",n,null),te(n)||(n.content instanceof u&&t(n.content),ne(n));Jt("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t,r){var i=void 0,a=void 0,s=void 0,l=void 0,c=void 0;if(t||(t="\x3c!--\x3e"),"string"!=typeof t&&!Zt(t)){if("function"!=typeof t.toString)throw T("toString is not a function");if("string"!=typeof(t=t.toString()))throw T("dirty is not a string, aborting")}if(!n.isSupported){if("object"===V(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof t)return e.toStaticHTML(t);if(Zt(t))return e.toStaticHTML(t.outerHTML)}return t}if(Ct||$t(r),n.removed=[],"string"==typeof t&&(jt=!1),jt);else if(t instanceof S)1===(a=(i=Qt("\x3c!--\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a);else{if(!Rt&&!Nt&&!It&&-1===t.indexOf("<"))return et&&Pt?et.createHTML(t):t;if(!(i=Qt(t)))return Rt?null:nt}i&&Lt&&Yt(i.firstChild);for(var f=Kt(jt?t:i);s=f.nextNode();)3===s.nodeType&&s===l||te(s)||(s.content instanceof u&&re(s.content),ne(s),l=s);if(l=null,jt)return t;if(Rt){if(Ot)for(c=st.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return kt&&(c=ut.call(o,c,!0)),c}var d=It?i.outerHTML:i.innerHTML;return Nt&&(d=g(d,ct," "),d=g(d,ft," ")),et&&Pt?et.createHTML(d):d},n.setConfig=function(t){$t(t),Ct=!0},n.clearConfig=function(){Ht=null,Ct=!1},n.isValidAttribute=function(t,e,n){Ht||$t({});var r=v(t),i=v(e);return ee(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&(lt[t]=lt[t]||[],h(lt[t],e))},n.removeHook=function(t){lt[t]&&d(lt[t])},n.removeHooks=function(t){lt[t]&&(lt[t]=[])},n.removeAllHooks=function(){lt={}},n}()}()},function(t){var e=function(t){var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n,r){var i=Object.create((e&&e.prototype instanceof c?e:c).prototype),o=new T(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=y(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,o),i}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l={};function c(){}function f(){}function d(){}var h={};h[i]=function(){return this};var p=Object.getPrototypeOf,v=p&&p(p(_([])));v&&v!==e&&n.call(v,i)&&(h=v);var b=d.prototype=c.prototype=Object.create(h);function g(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function m(t,e){var r;this._invoke=function(i,o){function a(){return new e((function(r,a){!function r(i,o,a,s){var l=u(t[i],t,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function y(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,y(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function _(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return f.prototype=b.constructor=d,d.constructor=f,d[a]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},g(m.prototype),m.prototype[o]=function(){return this},t.AsyncIterator=m,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new m(s(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(b),b[a]="Generator",b[i]=function(){return this},b.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=_,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:_(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},function(t){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")}},function(t,e,n){var r=n(72),i=n(110);function o(e,n,a){return t.exports=o=i()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&r(o,n.prototype),o},o.apply(null,arguments)}t.exports=o},function(t){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}},function(t,e,n){var r=n(112),i=n(113),o=[n(120)];t.exports=r.createStore(i,o)},function(t,e,n){var r=n(40),i=r.slice,o=r.pluck,a=r.each,s=r.bind,u=r.create,l=r.isList,c=r.isFunction,f=r.isObject;t.exports={createStore:h};var d={version:"2.0.12",enabled:!1,get:function(t,e){var n=this.storage.read(this._namespacePrefix+t);return this._deserialize(n,e)},set:function(t,e){return void 0===e?this.remove(t):(this.storage.write(this._namespacePrefix+t,this._serialize(e)),e)},remove:function(t){this.storage.remove(this._namespacePrefix+t)},each:function(t){var e=this;this.storage.each((function(n,r){t.call(e,e._deserialize(n),(r||"").replace(e._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(t){return this._namespacePrefix=="__storejs_"+t+"_"},createStore:function(){return h.apply(this,arguments)},addPlugin:function(t){this._addPlugin(t)},namespace:function(t){return h(this.storage,this.plugins,t)}};function h(t,e,n){n||(n=""),t&&!l(t)&&(t=[t]),e&&!l(e)&&(e=[e]);var r=n?"__storejs_"+n+"_":"",h=n?new RegExp("^"+r):null;if(!/^[a-zA-Z0-9_\-]*$/.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var p=u({_namespacePrefix:r,_namespaceRegexp:h,_testStorage:function(t){try{var e="__storejs__test__";t.write(e,e);var n=t.read(e)===e;return t.remove(e),n}catch(t){return!1}},_assignPluginFnProp:function(t,e){var n=this[e];this[e]=function(){var e=i(arguments,0),r=this;function o(){if(n)return a(arguments,(function(t,n){e[n]=t})),n.apply(r,e)}var s=[o].concat(e);return t.apply(r,s)}},_serialize:function(t){return JSON.stringify(t)},_deserialize:function(t,e){if(!t)return e;var n="";try{n=JSON.parse(t)}catch(e){n=t}return void 0!==n?n:e},_addStorage:function(t){this.enabled||this._testStorage(t)&&(this.storage=t,this.enabled=!0)},_addPlugin:function(t){var e=this;if(l(t))a(t,(function(t){e._addPlugin(t)}));else if(!o(this.plugins,(function(e){return t===e}))){if(this.plugins.push(t),!c(t))throw new Error("Plugins must be function values that return objects");var n=t.call(this);if(!f(n))throw new Error("Plugins must return an object of function properties");a(n,(function(n,r){if(!c(n))throw new Error("Bad plugin property: "+r+" from plugin "+t.name+". Plugins should only return functions.");e._assignPluginFnProp(n,r)}))}},addStorage:function(t){!function(){var t="undefined"==typeof console?null:console;if(t){var e=t.warn?t.warn:t.log;e.apply(t,arguments)}}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(t)}},d,{plugins:[]});return p.raw={},a(p,(function(t,e){c(t)&&(p.raw[e]=s(p,t))})),a(t,(function(t){p._addStorage(t)})),a(e,(function(t){p._addPlugin(t)})),p}},function(t,e,n){t.exports=[n(114),n(115),n(116),n(117),n(118),n(119)]},function(t,e,n){var r=n(40).Global;function i(){return r.localStorage}function o(t){return i().getItem(t)}t.exports={name:"localStorage",read:o,write:function(t,e){return i().setItem(t,e)},each:function(t){for(var e=i().length-1;e>=0;e--){var n=i().key(e);t(o(n),n)}},remove:function(t){return i().removeItem(t)},clearAll:function(){return i().clear()}}},function(t,e,n){var r=n(40).Global;t.exports={name:"oldFF-globalStorage",read:function(t){return i[t]},write:function(t,e){i[t]=e},each:o,remove:function(t){return i.removeItem(t)},clearAll:function(){o((function(t){delete i[t]}))}};var i=r.globalStorage;function o(t){for(var e=i.length-1;e>=0;e--){var n=i.key(e);t(i[n],n)}}},function(t,e,n){var r=n(40).Global;t.exports={name:"oldIE-userDataStorage",write:function(t,e){if(!a){var n=u(t);o((function(t){t.setAttribute(n,e),t.save("storejs")}))}},read:function(t){if(!a){var e=u(t),n=null;return o((function(t){n=t.getAttribute(e)})),n}},each:function(t){o((function(e){for(var n=e.XMLDocument.documentElement.attributes,r=n.length-1;r>=0;r--){var i=n[r];t(e.getAttribute(i.name),i.name)}}))},remove:function(t){var e=u(t);o((function(t){t.removeAttribute(e),t.save("storejs")}))},clearAll:function(){o((function(t){var e=t.XMLDocument.documentElement.attributes;t.load("storejs");for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save("storejs")}))}};var i=r.document,o=function(){if(!i||!i.documentElement||!i.documentElement.addBehavior)return null;var t,e,n;try{(e=new ActiveXObject("htmlfile")).open(),e.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),e.close(),n=(t=e.w.frames[0].document).createElement("div")}catch(e){n=i.createElement("div"),t=i.body}return function(e){var r=[].slice.call(arguments,0);r.unshift(n),t.appendChild(n),n.addBehavior("#default#userData"),n.load("storejs"),e.apply(this,r),t.removeChild(n)}}(),a=(r.navigator?r.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./),s=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function u(t){return t.replace(/^\d/,"___$&").replace(s,"___")}},function(t,e,n){var r=n(40),i=r.Global,o=r.trim;t.exports={name:"cookieStorage",read:function(t){if(!t||!l(t))return null;var e="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(a.cookie.replace(new RegExp(e),"$1"))},write:function(t,e){t&&(a.cookie=escape(t)+"="+escape(e)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")},each:s,remove:u,clearAll:function(){s((function(t,e){u(e)}))}};var a=i.document;function s(t){for(var e=a.cookie.split(/; ?/g),n=e.length-1;n>=0;n--)if(o(e[n])){var r=e[n].split("="),i=unescape(r[0]);t(unescape(r[1]),i)}}function u(t){t&&l(t)&&(a.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function l(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(a.cookie)}},function(t,e,n){var r=n(40).Global;function i(){return r.sessionStorage}function o(t){return i().getItem(t)}t.exports={name:"sessionStorage",read:o,write:function(t,e){return i().setItem(t,e)},each:function(t){for(var e=i().length-1;e>=0;e--){var n=i().key(e);t(o(n),n)}},remove:function(t){return i().removeItem(t)},clearAll:function(){return i().clear()}}},function(t){t.exports={name:"memoryStorage",read:function(t){return e[t]},write:function(t,n){e[t]=n},each:function(t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},remove:function(t){delete e[t]},clearAll:function(){e={}}};var e={}},function(t,e,n){t.exports=function(){return n(121),{}}},function(module,exports){"object"!=typeof JSON&&(JSON={}),function(){var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(t){return t<10?"0"+t:t}function this_value(){return this.valueOf()}function quote(t){return rx_escapable.lastIndex=0,rx_escapable.test(t)?'"'+t.replace(rx_escapable,(function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function str(t,e){var n,r,i,o,a,s=gap,u=e[t];switch(u&&"object"==typeof u&&"function"==typeof u.toJSON&&(u=u.toJSON(t)),"function"==typeof rep&&(u=rep.call(e,t,u)),typeof u){case"string":return quote(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(u)){for(o=u.length,n=0;n<o;n+=1)a[n]=str(n,u)||"null";return i=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+s+"]":"["+a.join(",")+"]",gap=s,i}if(rep&&"object"==typeof rep)for(o=rep.length,n=0;n<o;n+=1)"string"==typeof rep[n]&&(i=str(r=rep[n],u))&&a.push(quote(r)+(gap?": ":":")+i);else for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(i=str(r,u))&&a.push(quote(r)+(gap?": ":":")+i);return i=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+s+"}":"{"+a.join(",")+"}",gap=s,i}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value),"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(t,e,n){var r;if(gap="",indent="","number"==typeof n)for(r=0;r<n;r+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(t,e){var n,r,i=t[e];if(i&&"object"==typeof i)for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(void 0!==(r=walk(i,n))?i[n]=r:delete i[n]);return reviver.call(t,e,i)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},function(t){t.exports=function(t){if(Array.isArray(t))return t}},function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(t,e,n){var r=n(94);t.exports=function(t){if(Array.isArray(t))return r(t)}},function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(){},function(){},function(t){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<r.length;i++)if((n=r[i])===e||n.fn===e){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t){t.exports=r,r.default=r,r.stable=o,r.stableStringify=o;var e=[],n=[];function r(t,r,i){var o;for(function t(r,i,o,a){var s;if("object"==typeof r&&null!==r){for(s=0;s<o.length;s++)if(o[s]===r){var u=Object.getOwnPropertyDescriptor(a,i);return void(void 0!==u.get?u.configurable?(Object.defineProperty(a,i,{value:"[Circular]"}),e.push([a,i,r,u])):n.push([r,i]):(a[i]="[Circular]",e.push([a,i,r])))}if(o.push(r),Array.isArray(r))for(s=0;s<r.length;s++)t(r[s],s,o,r);else{var l=Object.keys(r);for(s=0;s<l.length;s++){var c=l[s];t(r[c],c,o,r)}}o.pop()}}(t,"",[],void 0),o=0===n.length?JSON.stringify(t,r,i):JSON.stringify(t,a(r),i);0!==e.length;){var s=e.pop();4===s.length?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}return o}function i(t,e){return t<e?-1:t>e?1:0}function o(t,r,o){var s,u=function t(r,o,a,s){var u;if("object"==typeof r&&null!==r){for(u=0;u<a.length;u++)if(a[u]===r){var l=Object.getOwnPropertyDescriptor(s,o);return void(void 0!==l.get?l.configurable?(Object.defineProperty(s,o,{value:"[Circular]"}),e.push([s,o,r,l])):n.push([r,o]):(s[o]="[Circular]",e.push([s,o,r])))}if("function"==typeof r.toJSON)return;if(a.push(r),Array.isArray(r))for(u=0;u<r.length;u++)t(r[u],u,a,r);else{var c={},f=Object.keys(r).sort(i);for(u=0;u<f.length;u++){var d=f[u];t(r[d],d,a,r),c[d]=r[d]}if(void 0===s)return c;e.push([s,o,r]),s[o]=c}a.pop()}}(t,"",[],void 0)||t;for(s=0===n.length?JSON.stringify(u,r,o):JSON.stringify(u,a(r),o);0!==e.length;){var l=e.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}return s}function a(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(n.length>0)for(var i=0;i<n.length;i++){var o=n[i];if(o[1]===e&&o[0]===r){r="[Circular]",n.splice(i,1);break}}return t.call(this,e,r)}}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(95);function o(t){if(t)return function(t){for(var e in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,e)&&(t[e]=o.prototype[e]);return t}(t)}t.exports=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},o.prototype.parse=function(t){return this._parser=t,this},o.prototype.responseType=function(t){return this._responseType=t,this},o.prototype.serialize=function(t){return this._serializer=t,this},o.prototype.timeout=function(t){if(!t||"object"!==r(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},o.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var a=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];o.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(t,e);if(!0===n)return!0;if(!1===n)return!1}catch(t){console.error(t)}if(e&&e.status&&e.status>=500&&501!==e.status)return!0;if(t){if(t.code&&a.includes(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},o.prototype.then=function(t,e){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(t,e){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)e(n.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=n.status,t.method=n.method,t.url=n.url,e(t)}})),r.end((function(n,r){n?e(n):t(r)}))}))}return this._fullfilledPromise.then(t,e)},o.prototype.catch=function(t){return this.then(void 0,t)},o.prototype.use=function(t){return t(this),this},o.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},o.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},o.prototype.get=function(t){return this._header[t.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(t,e){if(i(t)){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},o.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},o.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(i(t)){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.field(n,t[n]);return this}if(Array.isArray(e)){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&this.field(t,e[r]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),this._getFormData().append(t,e),this},o.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},o.prototype._auth=function(t,e,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(t,":").concat(e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},o.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},o.prototype.redirects=function(t){return this._maxRedirects=t,this},o.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(t){var e=i(t),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&i(this._data))for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this._data[r]=t[r]);else"string"==typeof t?(n||this.type("form"),this._data="application/x-www-form-urlencoded"===(n=this._header["content-type"])?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||n||this.type("json"),this},o.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},o.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var n=this.url.slice(e+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,e)+"?"+n.join("&")}}},o.prototype._appendQueryString=function(){console.warn("Unsupported")},o.prototype._timeoutError=function(t,e,n){if(!this._aborted){var r=new Error("".concat(t+e,"ms exceeded"));r.timeout=e,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},o.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},function(t,e,n){var r=n(132);function i(t){if(t)return function(t){for(var e in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,e)&&(t[e]=i.prototype[e]);return t}(t)}t.exports=i,i.prototype.get=function(t){return this.header[t.toLowerCase()]},i.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=r.type(e);var n=r.params(e);for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(this[i]=n[i]);this.links={};try{t.link&&(this.links=r.parseLinks(t.link))}catch(t){}},i.prototype._setStatusProperties=function(t){var e=t/100|0;this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t}},function(t,e){e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){return t.split(/ *; */).reduce((function(t,e){var n=e.split(/ *= */),r=n.shift(),i=n.shift();return r&&i&&(t[r]=i),t}),{})},e.parseLinks=function(t){return t.split(/ *, */).reduce((function(t,e){var n=e.split(/ *; */),r=n[0].slice(1,-1);return t[n[1].split(/ *= */)[1].slice(1,-1)]=r,t}),{})},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},function(t){function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(t){n.prototype[t]=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this._defaults.push({fn:t,args:n}),this}})),n.prototype._setDefaults=function(t){this._defaults.forEach((function(n){t[n.fn].apply(t,function(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n.args))}))},t.exports=n},function(t){t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}},function(t){var e=new RegExp("%[a-f0-9]{2}","gi"),n=new RegExp("(%[a-f0-9]{2})+","gi");function r(t,e){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;var n=t.slice(0,e=e||1),i=t.slice(e);return Array.prototype.concat.call([],r(n),r(i))}function i(t){try{return decodeURIComponent(t)}catch(o){for(var n=t.match(e),i=1;i<n.length;i++)n=(t=r(n,i).join("")).match(e);return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},r=n.exec(t);r;){try{e[r[0]]=decodeURIComponent(r[0])}catch(t){var o=i(r[0]);o!==r[0]&&(e[r[0]]=o)}r=n.exec(t)}e["%C2"]="�";for(var a=Object.keys(e),s=0;s<a.length;s++){var u=a[s];t=t.replace(new RegExp(u,"g"),e[u])}return t}(t)}}},function(t){t.exports=function(t,e){if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];var n=t.indexOf(e);return-1===n?[t]:[t.slice(0,n),t.slice(n+e.length)]}},function(){},function(t){t.exports={table:{"*[&&,valueLogical]":{"&&":["[&&,valueLogical]","*[&&,valueLogical]"],AS:[],")":[],",":[],"||":[],";":[]},"*[,,expression]":{",":["[,,expression]","*[,,expression]"],")":[]},"*[,,objectPath]":{",":["[,,objectPath]","*[,,objectPath]"],".":[],";":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[,,object]":{",":["[,,object]","*[,,object]"],".":[],";":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[/,pathEltOrInverse]":{"/":["[/,pathEltOrInverse]","*[/,pathEltOrInverse]"],"|":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],"<<":[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[;,?[or([verbPath,verbSimple]),objectList]]":{";":["[;,?[or([verbPath,verbSimple]),objectList]]","*[;,?[or([verbPath,verbSimple]),objectList]]"],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[UNION,groupGraphPattern]":{UNION:["[UNION,groupGraphPattern]","*[UNION,groupGraphPattern]"],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],"<<":[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[graphPatternNotTriples,?.,?triplesBlock]":{"{":["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":[]},"*[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["[quadsNotTriples,?.,?triplesTemplate]","*[quadsNotTriples,?.,?triplesTemplate]"],"}":[]},"*[|,pathOneInPropertySet]":{"|":["[|,pathOneInPropertySet]","*[|,pathOneInPropertySet]"],")":[]},"*[|,pathSequence]":{"|":["[|,pathSequence]","*[|,pathSequence]"],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],"<<":[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[||,conditionalAndExpression]":{"||":["[||,conditionalAndExpression]","*[||,conditionalAndExpression]"],AS:[],")":[],",":[],";":[]},"*dataBlockValue":{UNDEF:["dataBlockValue","*dataBlockValue"],IRI_REF:["dataBlockValue","*dataBlockValue"],TRUE:["dataBlockValue","*dataBlockValue"],FALSE:["dataBlockValue","*dataBlockValue"],"<<":["dataBlockValue","*dataBlockValue"],PNAME_LN:["dataBlockValue","*dataBlockValue"],PNAME_NS:["dataBlockValue","*dataBlockValue"],STRING_LITERAL1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL2:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG2:["dataBlockValue","*dataBlockValue"],INTEGER:["dataBlockValue","*dataBlockValue"],DECIMAL:["dataBlockValue","*dataBlockValue"],DOUBLE:["dataBlockValue","*dataBlockValue"],INTEGER_POSITIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_POSITIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_POSITIVE:["dataBlockValue","*dataBlockValue"],INTEGER_NEGATIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_NEGATIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_NEGATIVE:["dataBlockValue","*dataBlockValue"],"}":[],")":[]},"*datasetClause":{FROM:["datasetClause","*datasetClause"],WHERE:[],"{":[]},"*describeDatasetClause":{FROM:["describeDatasetClause","*describeDatasetClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],VALUES:[],$:[]},"*graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],"<<":["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"],")":[]},"*graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],"<<":["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"],")":[]},"*groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"*havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"*or([[(,*dataBlockValue,)],NIL])":{"(":["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],NIL:["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],"}":[]},"*or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],";":[]},"*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"*or([baseDecl,prefixDecl])":{BASE:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],PREFIX:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],$:[],CONSTRUCT:[],DESCRIBE:[],ASK:[],INSERT:[],DELETE:[],SELECT:[],LOAD:[],CLEAR:[],DROP:[],ADD:[],MOVE:[],COPY:[],CREATE:[],WITH:[]},"*or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],WHERE:[],"{":[],FROM:[]},"*or([varOrIRIref,embeddedTriple])":{"<<":["or([varOrIRIref,embeddedTriple])","*or([varOrIRIref,embeddedTriple])"],VAR1:["or([varOrIRIref,embeddedTriple])","*or([varOrIRIref,embeddedTriple])"],VAR2:["or([varOrIRIref,embeddedTriple])","*or([varOrIRIref,embeddedTriple])"],IRI_REF:["or([varOrIRIref,embeddedTriple])","*or([varOrIRIref,embeddedTriple])"],PNAME_LN:["or([varOrIRIref,embeddedTriple])","*or([varOrIRIref,embeddedTriple])"],PNAME_NS:["or([varOrIRIref,embeddedTriple])","*or([varOrIRIref,embeddedTriple])"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],FROM:[],VALUES:[],$:[]},"*orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"*usingClause":{USING:["usingClause","*usingClause"],WHERE:[]},"*var":{VAR1:["var","*var"],VAR2:["var","*var"],")":[]},"+graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],"<<":["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"]},"+graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],"<<":["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"]},"+groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"]},"+havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"]},"+or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"]},"+or([varOrIRIref,embeddedTriple])":{"<<":["or([varOrIRIref,embeddedTriple])","*or([varOrIRIref,embeddedTriple])"],VAR1:["or([varOrIRIref,embeddedTriple])","*or([varOrIRIref,embeddedTriple])"],VAR2:["or([varOrIRIref,embeddedTriple])","*or([varOrIRIref,embeddedTriple])"],IRI_REF:["or([varOrIRIref,embeddedTriple])","*or([varOrIRIref,embeddedTriple])"],PNAME_LN:["or([varOrIRIref,embeddedTriple])","*or([varOrIRIref,embeddedTriple])"],PNAME_NS:["or([varOrIRIref,embeddedTriple])","*or([varOrIRIref,embeddedTriple])"]},"+orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"]},"?.":{".":["."],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],"<<":[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?DISTINCT":{DISTINCT:["DISTINCT"],"!":[],"+":[],"-":[],VAR1:[],VAR2:[],"(":[],STR:[],LANG:[],LANGMATCHES:[],DATATYPE:[],BOUND:[],IRI:[],URI:[],BNODE:[],RAND:[],ABS:[],CEIL:[],FLOOR:[],ROUND:[],CONCAT:[],STRLEN:[],UCASE:[],LCASE:[],ENCODE_FOR_URI:[],CONTAINS:[],STRSTARTS:[],STRENDS:[],STRBEFORE:[],STRAFTER:[],YEAR:[],MONTH:[],DAY:[],HOURS:[],MINUTES:[],SECONDS:[],TIMEZONE:[],TZ:[],NOW:[],UUID:[],STRUUID:[],MD5:[],SHA1:[],SHA256:[],SHA384:[],SHA512:[],COALESCE:[],IF:[],STRLANG:[],STRDT:[],SAMETERM:[],ISIRI:[],ISURI:[],ISBLANK:[],ISLITERAL:[],ISNUMERIC:[],TRUE:[],FALSE:[],"<<":[],COUNT:[],SUM:[],MIN:[],MAX:[],AVG:[],SAMPLE:[],GROUP_CONCAT:[],SUBSTR:[],REPLACE:[],REGEX:[],EXISTS:[],NOT:[],IRI_REF:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],PNAME_LN:[],PNAME_NS:[],"*":[]},"?GRAPH":{GRAPH:["GRAPH"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT":{SILENT:["SILENT"],VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_1":{SILENT:["SILENT"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_2":{SILENT:["SILENT"],GRAPH:[],DEFAULT:[],NAMED:[],ALL:[]},"?SILENT_3":{SILENT:["SILENT"],GRAPH:[]},"?SILENT_4":{SILENT:["SILENT"],DEFAULT:[],GRAPH:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?WHERE":{WHERE:["WHERE"],"{":[]},"?[,,expression]":{",":["[,,expression]"],")":[]},"?[.,?constructTriples]":{".":["[.,?constructTriples]"],"}":[]},"?[.,?triplesBlock]":{".":["[.,?triplesBlock]"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[.,?triplesTemplate]":{".":["[.,?triplesTemplate]"],"}":[],GRAPH:[]},"?[;,SEPARATOR,=,string]":{";":["[;,SEPARATOR,=,string]"],")":[]},"?[;,update]":{";":["[;,update]"],$:[]},"?[AS,var]":{AS:["[AS,var]"],")":[]},"?[INTO,graphRef]":{INTO:["[INTO,graphRef]"],";":[],$:[]},"?[or([verbPath,verbSimple]),objectList]":{VAR1:["[or([verbPath,verbSimple]),objectList]"],VAR2:["[or([verbPath,verbSimple]),objectList]"],"^":["[or([verbPath,verbSimple]),objectList]"],a:["[or([verbPath,verbSimple]),objectList]"],"!":["[or([verbPath,verbSimple]),objectList]"],"(":["[or([verbPath,verbSimple]),objectList]"],IRI_REF:["[or([verbPath,verbSimple]),objectList]"],PNAME_LN:["[or([verbPath,verbSimple]),objectList]"],PNAME_NS:["[or([verbPath,verbSimple]),objectList]"],";":[],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],"^":["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],IRI_REF:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_LN:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_NS:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],")":[]},"?[update1,?[;,update]]":{INSERT:["[update1,?[;,update]]"],DELETE:["[update1,?[;,update]]"],LOAD:["[update1,?[;,update]]"],CLEAR:["[update1,?[;,update]]"],DROP:["[update1,?[;,update]]"],ADD:["[update1,?[;,update]]"],MOVE:["[update1,?[;,update]]"],COPY:["[update1,?[;,update]]"],CREATE:["[update1,?[;,update]]"],WITH:["[update1,?[;,update]]"],$:[]},"?argList":{NIL:["argList"],"(":["argList"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],"*":[],"/":[],";":[]},"?constructTriples":{VAR1:["constructTriples"],VAR2:["constructTriples"],NIL:["constructTriples"],"(":["constructTriples"],"[":["constructTriples"],IRI_REF:["constructTriples"],TRUE:["constructTriples"],FALSE:["constructTriples"],BLANK_NODE_LABEL:["constructTriples"],ANON:["constructTriples"],"<<":["constructTriples"],PNAME_LN:["constructTriples"],PNAME_NS:["constructTriples"],STRING_LITERAL1:["constructTriples"],STRING_LITERAL2:["constructTriples"],STRING_LITERAL_LONG1:["constructTriples"],STRING_LITERAL_LONG2:["constructTriples"],INTEGER:["constructTriples"],DECIMAL:["constructTriples"],DOUBLE:["constructTriples"],INTEGER_POSITIVE:["constructTriples"],DECIMAL_POSITIVE:["constructTriples"],DOUBLE_POSITIVE:["constructTriples"],INTEGER_NEGATIVE:["constructTriples"],DECIMAL_NEGATIVE:["constructTriples"],DOUBLE_NEGATIVE:["constructTriples"],"}":[]},"?groupClause":{GROUP:["groupClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"?havingClause":{HAVING:["havingClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"?insertClause":{INSERT:["insertClause"],WHERE:[],USING:[]},"?limitClause":{LIMIT:["limitClause"],VALUES:[],$:[],"}":[]},"?limitOffsetClauses":{LIMIT:["limitOffsetClauses"],OFFSET:["limitOffsetClauses"],VALUES:[],$:[],"}":[]},"?offsetClause":{OFFSET:["offsetClause"],VALUES:[],$:[],"}":[]},"?or([DISTINCT,REDUCED])":{DISTINCT:["or([DISTINCT,REDUCED])"],REDUCED:["or([DISTINCT,REDUCED])"],"*":[],"(":[],VAR1:[],VAR2:[]},"?or([LANGTAG,[^^,iriRef]])":{LANGTAG:["or([LANGTAG,[^^,iriRef]])"],"^^":["or([LANGTAG,[^^,iriRef]])"],UNDEF:[],IRI_REF:[],TRUE:[],FALSE:[],"<<":[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],VAR1:[],VAR2:[],"^":[],a:[],"!":[],"(":[],".":[],";":[],",":[],AS:[],")":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],"*":[],"/":[],"}":[],">>":[],"[":[],NIL:[],BLANK_NODE_LABEL:[],ANON:[],"]":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])"],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"!=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IN:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AS:[],")":[],",":[],"||":[],"&&":[],";":[]},"?orderClause":{ORDER:["orderClause"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"?pathMod":{"*":["pathMod"],"?":["pathMod"],"+":["pathMod"],"{":["pathMod"],"|":[],"/":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],"<<":[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"?triplesBlock":{VAR1:["triplesBlock"],VAR2:["triplesBlock"],NIL:["triplesBlock"],"(":["triplesBlock"],"[":["triplesBlock"],IRI_REF:["triplesBlock"],TRUE:["triplesBlock"],FALSE:["triplesBlock"],BLANK_NODE_LABEL:["triplesBlock"],ANON:["triplesBlock"],"<<":["triplesBlock"],PNAME_LN:["triplesBlock"],PNAME_NS:["triplesBlock"],STRING_LITERAL1:["triplesBlock"],STRING_LITERAL2:["triplesBlock"],STRING_LITERAL_LONG1:["triplesBlock"],STRING_LITERAL_LONG2:["triplesBlock"],INTEGER:["triplesBlock"],DECIMAL:["triplesBlock"],DOUBLE:["triplesBlock"],INTEGER_POSITIVE:["triplesBlock"],DECIMAL_POSITIVE:["triplesBlock"],DOUBLE_POSITIVE:["triplesBlock"],INTEGER_NEGATIVE:["triplesBlock"],DECIMAL_NEGATIVE:["triplesBlock"],DOUBLE_NEGATIVE:["triplesBlock"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?triplesTemplate":{VAR1:["triplesTemplate"],VAR2:["triplesTemplate"],NIL:["triplesTemplate"],"(":["triplesTemplate"],"[":["triplesTemplate"],IRI_REF:["triplesTemplate"],TRUE:["triplesTemplate"],FALSE:["triplesTemplate"],BLANK_NODE_LABEL:["triplesTemplate"],ANON:["triplesTemplate"],"<<":["triplesTemplate"],PNAME_LN:["triplesTemplate"],PNAME_NS:["triplesTemplate"],STRING_LITERAL1:["triplesTemplate"],STRING_LITERAL2:["triplesTemplate"],STRING_LITERAL_LONG1:["triplesTemplate"],STRING_LITERAL_LONG2:["triplesTemplate"],INTEGER:["triplesTemplate"],DECIMAL:["triplesTemplate"],DOUBLE:["triplesTemplate"],INTEGER_POSITIVE:["triplesTemplate"],DECIMAL_POSITIVE:["triplesTemplate"],DOUBLE_POSITIVE:["triplesTemplate"],INTEGER_NEGATIVE:["triplesTemplate"],DECIMAL_NEGATIVE:["triplesTemplate"],DOUBLE_NEGATIVE:["triplesTemplate"],"}":[],GRAPH:[]},"?whereClause":{WHERE:["whereClause"],"{":["whereClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],VALUES:[],$:[]},"[!=,numericExpression]":{"!=":["!=","numericExpression"]},"[&&,valueLogical]":{"&&":["&&","valueLogical"]},"[(,*dataBlockValue,)]":{"(":["(","*dataBlockValue",")"]},"[(,*var,)]":{"(":["(","*var",")"]},"[(,expression,)]":{"(":["(","expression",")"]},"[(,expression,AS,var,)]":{"(":["(","expression","AS","var",")"]},"[*,unaryExpression]":{"*":["*","unaryExpression"]},"[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]":{WHERE:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"],FROM:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"]},"[+,multiplicativeExpression]":{"+":["+","multiplicativeExpression"]},"[,,expression]":{",":[",","expression"]},"[,,integer,}]":{",":[",","integer","}"]},"[,,objectPath]":{",":[",","objectPath"]},"[,,object]":{",":[",","object"]},"[,,or([},[integer,}]])]":{",":[",","or([},[integer,}]])"]},"[-,multiplicativeExpression]":{"-":["-","multiplicativeExpression"]},"[.,?constructTriples]":{".":[".","?constructTriples"]},"[.,?triplesBlock]":{".":[".","?triplesBlock"]},"[.,?triplesTemplate]":{".":[".","?triplesTemplate"]},"[/,pathEltOrInverse]":{"/":["/","pathEltOrInverse"]},"[/,unaryExpression]":{"/":["/","unaryExpression"]},"[;,?[or([verbPath,verbSimple]),objectList]]":{";":[";","?[or([verbPath,verbSimple]),objectList]"]},"[;,SEPARATOR,=,string]":{";":[";","SEPARATOR","=","string"]},"[;,update]":{";":[";","update"]},"[<,numericExpression]":{"<":["<","numericExpression"]},"[<=,numericExpression]":{"<=":["<=","numericExpression"]},"[=,numericExpression]":{"=":["=","numericExpression"]},"[>,numericExpression]":{">":[">","numericExpression"]},"[>=,numericExpression]":{">=":[">=","numericExpression"]},"[AS,var]":{AS:["AS","var"]},"[IN,expressionList]":{IN:["IN","expressionList"]},"[INTO,graphRef]":{INTO:["INTO","graphRef"]},"[NAMED,iriRef]":{NAMED:["NAMED","iriRef"]},"[NOT,IN,expressionList]":{NOT:["NOT","IN","expressionList"]},"[UNION,groupGraphPattern]":{UNION:["UNION","groupGraphPattern"]},"[^^,iriRef]":{"^^":["^^","iriRef"]},"[constructTemplate,*datasetClause,whereClause,solutionModifier]":{"{":["constructTemplate","*datasetClause","whereClause","solutionModifier"]},"[deleteClause,?insertClause]":{DELETE:["deleteClause","?insertClause"]},"[graphPatternNotTriples,?.,?triplesBlock]":{"{":["graphPatternNotTriples","?.","?triplesBlock"],OPTIONAL:["graphPatternNotTriples","?.","?triplesBlock"],MINUS:["graphPatternNotTriples","?.","?triplesBlock"],GRAPH:["graphPatternNotTriples","?.","?triplesBlock"],SERVICE:["graphPatternNotTriples","?.","?triplesBlock"],FILTER:["graphPatternNotTriples","?.","?triplesBlock"],BIND:["graphPatternNotTriples","?.","?triplesBlock"],VALUES:["graphPatternNotTriples","?.","?triplesBlock"]},"[integer,or([[,,or([},[integer,}]])],}])]":{INTEGER:["integer","or([[,,or([},[integer,}]])],}])"]},"[integer,}]":{INTEGER:["integer","}"]},"[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]":{INTEGER_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"]},"[or([verbPath,verbSimple]),objectList]":{VAR1:["or([verbPath,verbSimple])","objectList"],VAR2:["or([verbPath,verbSimple])","objectList"],"^":["or([verbPath,verbSimple])","objectList"],a:["or([verbPath,verbSimple])","objectList"],"!":["or([verbPath,verbSimple])","objectList"],"(":["or([verbPath,verbSimple])","objectList"],IRI_REF:["or([verbPath,verbSimple])","objectList"],PNAME_LN:["or([verbPath,verbSimple])","objectList"],PNAME_NS:["or([verbPath,verbSimple])","objectList"]},"[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],"^":["pathOneInPropertySet","*[|,pathOneInPropertySet]"],IRI_REF:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_LN:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_NS:["pathOneInPropertySet","*[|,pathOneInPropertySet]"]},"[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["quadsNotTriples","?.","?triplesTemplate"]},"[update1,?[;,update]]":{INSERT:["update1","?[;,update]"],DELETE:["update1","?[;,update]"],LOAD:["update1","?[;,update]"],CLEAR:["update1","?[;,update]"],DROP:["update1","?[;,update]"],ADD:["update1","?[;,update]"],MOVE:["update1","?[;,update]"],COPY:["update1","?[;,update]"],CREATE:["update1","?[;,update]"],WITH:["update1","?[;,update]"]},"[|,pathOneInPropertySet]":{"|":["|","pathOneInPropertySet"]},"[|,pathSequence]":{"|":["|","pathSequence"]},"[||,conditionalAndExpression]":{"||":["||","conditionalAndExpression"]},add:{ADD:["ADD","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},additiveExpression:{"!":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"+":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"(":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANGMATCHES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DATATYPE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BOUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BNODE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],RAND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ABS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CEIL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FLOOR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ROUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLEN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ENCODE_FOR_URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONTAINS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRSTARTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRENDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRBEFORE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRAFTER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],YEAR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MONTH:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DAY:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],HOURS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MINUTES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SECONDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TIMEZONE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TZ:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOW:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRUUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MD5:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA256:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA384:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA512:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COALESCE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRDT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMETERM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISIRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISURI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISBLANK:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISLITERAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISNUMERIC:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TRUE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FALSE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"<<":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COUNT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MIN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MAX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AVG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMPLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],GROUP_CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUBSTR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REPLACE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REGEX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],EXISTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI_REF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_LN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_NS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"]},aggregate:{COUNT:["COUNT","(","?DISTINCT","or([*,expression])",")"],SUM:["SUM","(","?DISTINCT","expression",")"],MIN:["MIN","(","?DISTINCT","expression",")"],MAX:["MAX","(","?DISTINCT","expression",")"],AVG:["AVG","(","?DISTINCT","expression",")"],SAMPLE:["SAMPLE","(","?DISTINCT","expression",")"],GROUP_CONCAT:["GROUP_CONCAT","(","?DISTINCT","expression","?[;,SEPARATOR,=,string]",")"]},allowBnodes:{"}":[]},allowVars:{"}":[],UNDEF:[],IRI_REF:[],TRUE:[],FALSE:[],"<<":[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],")":[]},argList:{NIL:["NIL"],"(":["(","?DISTINCT","expression","*[,,expression]",")"]},askQuery:{ASK:["ASK","*datasetClause","whereClause","solutionModifier"]},baseDecl:{BASE:["BASE","IRI_REF"]},bind:{BIND:["BIND","(","expression","AS","var",")"]},blankNode:{BLANK_NODE_LABEL:["BLANK_NODE_LABEL"],ANON:["ANON"]},blankNodePropertyList:{"[":["[","propertyListNotEmpty","]"]},blankNodePropertyListPath:{"[":["[","propertyListPathNotEmpty","]"]},booleanLiteral:{TRUE:["TRUE"],FALSE:["FALSE"]},brackettedExpression:{"(":["(","expression",")"]},builtInCall:{STR:["STR","(","expression",")"],LANG:["LANG","(","expression",")"],LANGMATCHES:["LANGMATCHES","(","expression",",","expression",")"],DATATYPE:["DATATYPE","(","expression",")"],BOUND:["BOUND","(","var",")"],IRI:["IRI","(","expression",")"],URI:["URI","(","expression",")"],BNODE:["BNODE","or([[(,expression,)],NIL])"],RAND:["RAND","NIL"],ABS:["ABS","(","expression",")"],CEIL:["CEIL","(","expression",")"],FLOOR:["FLOOR","(","expression",")"],ROUND:["ROUND","(","expression",")"],CONCAT:["CONCAT","expressionList"],SUBSTR:["substringExpression"],STRLEN:["STRLEN","(","expression",")"],REPLACE:["strReplaceExpression"],UCASE:["UCASE","(","expression",")"],LCASE:["LCASE","(","expression",")"],ENCODE_FOR_URI:["ENCODE_FOR_URI","(","expression",")"],CONTAINS:["CONTAINS","(","expression",",","expression",")"],STRSTARTS:["STRSTARTS","(","expression",",","expression",")"],STRENDS:["STRENDS","(","expression",",","expression",")"],STRBEFORE:["STRBEFORE","(","expression",",","expression",")"],STRAFTER:["STRAFTER","(","expression",",","expression",")"],YEAR:["YEAR","(","expression",")"],MONTH:["MONTH","(","expression",")"],DAY:["DAY","(","expression",")"],HOURS:["HOURS","(","expression",")"],MINUTES:["MINUTES","(","expression",")"],SECONDS:["SECONDS","(","expression",")"],TIMEZONE:["TIMEZONE","(","expression",")"],TZ:["TZ","(","expression",")"],NOW:["NOW","NIL"],UUID:["UUID","NIL"],STRUUID:["STRUUID","NIL"],MD5:["MD5","(","expression",")"],SHA1:["SHA1","(","expression",")"],SHA256:["SHA256","(","expression",")"],SHA384:["SHA384","(","expression",")"],SHA512:["SHA512","(","expression",")"],COALESCE:["COALESCE","expressionList"],IF:["IF","(","expression",",","expression",",","expression",")"],STRLANG:["STRLANG","(","expression",",","expression",")"],STRDT:["STRDT","(","expression",",","expression",")"],SAMETERM:["SAMETERM","(","expression",",","expression",")"],ISIRI:["ISIRI","(","expression",")"],ISURI:["ISURI","(","expression",")"],ISBLANK:["ISBLANK","(","expression",")"],ISLITERAL:["ISLITERAL","(","expression",")"],ISNUMERIC:["ISNUMERIC","(","expression",")"],REGEX:["regexExpression"],EXISTS:["existsFunc"],NOT:["notExistsFunc"]},clear:{CLEAR:["CLEAR","?SILENT_2","graphRefAll"]},collection:{"(":["(","+graphNode",")"]},collectionPath:{"(":["(","+graphNodePath",")"]},conditionalAndExpression:{"!":["valueLogical","*[&&,valueLogical]"],"+":["valueLogical","*[&&,valueLogical]"],"-":["valueLogical","*[&&,valueLogical]"],VAR1:["valueLogical","*[&&,valueLogical]"],VAR2:["valueLogical","*[&&,valueLogical]"],"(":["valueLogical","*[&&,valueLogical]"],STR:["valueLogical","*[&&,valueLogical]"],LANG:["valueLogical","*[&&,valueLogical]"],LANGMATCHES:["valueLogical","*[&&,valueLogical]"],DATATYPE:["valueLogical","*[&&,valueLogical]"],BOUND:["valueLogical","*[&&,valueLogical]"],IRI:["valueLogical","*[&&,valueLogical]"],URI:["valueLogical","*[&&,valueLogical]"],BNODE:["valueLogical","*[&&,valueLogical]"],RAND:["valueLogical","*[&&,valueLogical]"],ABS:["valueLogical","*[&&,valueLogical]"],CEIL:["valueLogical","*[&&,valueLogical]"],FLOOR:["valueLogical","*[&&,valueLogical]"],ROUND:["valueLogical","*[&&,valueLogical]"],CONCAT:["valueLogical","*[&&,valueLogical]"],STRLEN:["valueLogical","*[&&,valueLogical]"],UCASE:["valueLogical","*[&&,valueLogical]"],LCASE:["valueLogical","*[&&,valueLogical]"],ENCODE_FOR_URI:["valueLogical","*[&&,valueLogical]"],CONTAINS:["valueLogical","*[&&,valueLogical]"],STRSTARTS:["valueLogical","*[&&,valueLogical]"],STRENDS:["valueLogical","*[&&,valueLogical]"],STRBEFORE:["valueLogical","*[&&,valueLogical]"],STRAFTER:["valueLogical","*[&&,valueLogical]"],YEAR:["valueLogical","*[&&,valueLogical]"],MONTH:["valueLogical","*[&&,valueLogical]"],DAY:["valueLogical","*[&&,valueLogical]"],HOURS:["valueLogical","*[&&,valueLogical]"],MINUTES:["valueLogical","*[&&,valueLogical]"],SECONDS:["valueLogical","*[&&,valueLogical]"],TIMEZONE:["valueLogical","*[&&,valueLogical]"],TZ:["valueLogical","*[&&,valueLogical]"],NOW:["valueLogical","*[&&,valueLogical]"],UUID:["valueLogical","*[&&,valueLogical]"],STRUUID:["valueLogical","*[&&,valueLogical]"],MD5:["valueLogical","*[&&,valueLogical]"],SHA1:["valueLogical","*[&&,valueLogical]"],SHA256:["valueLogical","*[&&,valueLogical]"],SHA384:["valueLogical","*[&&,valueLogical]"],SHA512:["valueLogical","*[&&,valueLogical]"],COALESCE:["valueLogical","*[&&,valueLogical]"],IF:["valueLogical","*[&&,valueLogical]"],STRLANG:["valueLogical","*[&&,valueLogical]"],STRDT:["valueLogical","*[&&,valueLogical]"],SAMETERM:["valueLogical","*[&&,valueLogical]"],ISIRI:["valueLogical","*[&&,valueLogical]"],ISURI:["valueLogical","*[&&,valueLogical]"],ISBLANK:["valueLogical","*[&&,valueLogical]"],ISLITERAL:["valueLogical","*[&&,valueLogical]"],ISNUMERIC:["valueLogical","*[&&,valueLogical]"],TRUE:["valueLogical","*[&&,valueLogical]"],FALSE:["valueLogical","*[&&,valueLogical]"],"<<":["valueLogical","*[&&,valueLogical]"],COUNT:["valueLogical","*[&&,valueLogical]"],SUM:["valueLogical","*[&&,valueLogical]"],MIN:["valueLogical","*[&&,valueLogical]"],MAX:["valueLogical","*[&&,valueLogical]"],AVG:["valueLogical","*[&&,valueLogical]"],SAMPLE:["valueLogical","*[&&,valueLogical]"],GROUP_CONCAT:["valueLogical","*[&&,valueLogical]"],SUBSTR:["valueLogical","*[&&,valueLogical]"],REPLACE:["valueLogical","*[&&,valueLogical]"],REGEX:["valueLogical","*[&&,valueLogical]"],EXISTS:["valueLogical","*[&&,valueLogical]"],NOT:["valueLogical","*[&&,valueLogical]"],IRI_REF:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL2:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG2:["valueLogical","*[&&,valueLogical]"],INTEGER:["valueLogical","*[&&,valueLogical]"],DECIMAL:["valueLogical","*[&&,valueLogical]"],DOUBLE:["valueLogical","*[&&,valueLogical]"],INTEGER_POSITIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_POSITIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_POSITIVE:["valueLogical","*[&&,valueLogical]"],INTEGER_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_NEGATIVE:["valueLogical","*[&&,valueLogical]"],PNAME_LN:["valueLogical","*[&&,valueLogical]"],PNAME_NS:["valueLogical","*[&&,valueLogical]"]},conditionalOrExpression:{"!":["conditionalAndExpression","*[||,conditionalAndExpression]"],"+":["conditionalAndExpression","*[||,conditionalAndExpression]"],"-":["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR1:["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR2:["conditionalAndExpression","*[||,conditionalAndExpression]"],"(":["conditionalAndExpression","*[||,conditionalAndExpression]"],STR:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANGMATCHES:["conditionalAndExpression","*[||,conditionalAndExpression]"],DATATYPE:["conditionalAndExpression","*[||,conditionalAndExpression]"],BOUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],BNODE:["conditionalAndExpression","*[||,conditionalAndExpression]"],RAND:["conditionalAndExpression","*[||,conditionalAndExpression]"],ABS:["conditionalAndExpression","*[||,conditionalAndExpression]"],CEIL:["conditionalAndExpression","*[||,conditionalAndExpression]"],FLOOR:["conditionalAndExpression","*[||,conditionalAndExpression]"],ROUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLEN:["conditionalAndExpression","*[||,conditionalAndExpression]"],UCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],LCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],ENCODE_FOR_URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONTAINS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRSTARTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRENDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRBEFORE:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRAFTER:["conditionalAndExpression","*[||,conditionalAndExpression]"],YEAR:["conditionalAndExpression","*[||,conditionalAndExpression]"],MONTH:["conditionalAndExpression","*[||,conditionalAndExpression]"],DAY:["conditionalAndExpression","*[||,conditionalAndExpression]"],HOURS:["conditionalAndExpression","*[||,conditionalAndExpression]"],MINUTES:["conditionalAndExpression","*[||,conditionalAndExpression]"],SECONDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],TIMEZONE:["conditionalAndExpression","*[||,conditionalAndExpression]"],TZ:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOW:["conditionalAndExpression","*[||,conditionalAndExpression]"],UUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRUUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],MD5:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA1:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA256:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA384:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA512:["conditionalAndExpression","*[||,conditionalAndExpression]"],COALESCE:["conditionalAndExpression","*[||,conditionalAndExpression]"],IF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRDT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMETERM:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISIRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISURI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISBLANK:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISLITERAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISNUMERIC:["conditionalAndExpression","*[||,conditionalAndExpression]"],TRUE:["conditionalAndExpression","*[||,conditionalAndExpression]"],FALSE:["conditionalAndExpression","*[||,conditionalAndExpression]"],"<<":["conditionalAndExpression","*[||,conditionalAndExpression]"],COUNT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUM:["conditionalAndExpression","*[||,conditionalAndExpression]"],MIN:["conditionalAndExpression","*[||,conditionalAndExpression]"],MAX:["conditionalAndExpression","*[||,conditionalAndExpression]"],AVG:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMPLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],GROUP_CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUBSTR:["conditionalAndExpression","*[||,conditionalAndExpression]"],REPLACE:["conditionalAndExpression","*[||,conditionalAndExpression]"],REGEX:["conditionalAndExpression","*[||,conditionalAndExpression]"],EXISTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOT:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI_REF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL2:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG2:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_LN:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_NS:["conditionalAndExpression","*[||,conditionalAndExpression]"]},constraint:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"]},constructQuery:{CONSTRUCT:["CONSTRUCT","or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])"]},constructTemplate:{"{":["{","?constructTriples","}"]},constructTriples:{VAR1:["triplesSameSubject","?[.,?constructTriples]"],VAR2:["triplesSameSubject","?[.,?constructTriples]"],NIL:["triplesSameSubject","?[.,?constructTriples]"],"(":["triplesSameSubject","?[.,?constructTriples]"],"[":["triplesSameSubject","?[.,?constructTriples]"],IRI_REF:["triplesSameSubject","?[.,?constructTriples]"],TRUE:["triplesSameSubject","?[.,?constructTriples]"],FALSE:["triplesSameSubject","?[.,?constructTriples]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?constructTriples]"],ANON:["triplesSameSubject","?[.,?constructTriples]"],"<<":["triplesSameSubject","?[.,?constructTriples]"],PNAME_LN:["triplesSameSubject","?[.,?constructTriples]"],PNAME_NS:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL2:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?constructTriples]"],INTEGER:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"]},copy:{COPY:["COPY","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},create:{CREATE:["CREATE","?SILENT_3","graphRef"]},dataBlock:{NIL:["or([inlineDataOneVar,inlineDataFull])"],"(":["or([inlineDataOneVar,inlineDataFull])"],VAR1:["or([inlineDataOneVar,inlineDataFull])"],VAR2:["or([inlineDataOneVar,inlineDataFull])"]},dataBlockValue:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],"<<":["disallowVars","embeddedTriple","allowVars"],UNDEF:["UNDEF"]},datasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},defaultGraphClause:{IRI_REF:["sourceSelector"],PNAME_LN:["sourceSelector"],PNAME_NS:["sourceSelector"]},delete1:{DATA:["DATA","quadDataNoBnodes"],WHERE:["WHERE","quadPatternNoBnodes"],"{":["quadPatternNoBnodes","?insertClause","*usingClause","WHERE","groupGraphPattern"]},deleteClause:{DELETE:["DELETE","quadPattern"]},describeDatasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},describeQuery:{DESCRIBE:["DESCRIBE","or([+or([varOrIRIref,embeddedTriple]),*])","*describeDatasetClause","?whereClause","solutionModifier"]},disallowBnodes:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],"<<":[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},disallowVars:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],"<<":[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},drop:{DROP:["DROP","?SILENT_2","graphRefAll"]},embeddedTriple:{"<<":["<<","varOrTerm","verb","varOrTerm",">>"]},existsFunc:{EXISTS:["EXISTS","groupGraphPattern"]},expression:{"!":["conditionalOrExpression"],"+":["conditionalOrExpression"],"-":["conditionalOrExpression"],VAR1:["conditionalOrExpression"],VAR2:["conditionalOrExpression"],"(":["conditionalOrExpression"],STR:["conditionalOrExpression"],LANG:["conditionalOrExpression"],LANGMATCHES:["conditionalOrExpression"],DATATYPE:["conditionalOrExpression"],BOUND:["conditionalOrExpression"],IRI:["conditionalOrExpression"],URI:["conditionalOrExpression"],BNODE:["conditionalOrExpression"],RAND:["conditionalOrExpression"],ABS:["conditionalOrExpression"],CEIL:["conditionalOrExpression"],FLOOR:["conditionalOrExpression"],ROUND:["conditionalOrExpression"],CONCAT:["conditionalOrExpression"],STRLEN:["conditionalOrExpression"],UCASE:["conditionalOrExpression"],LCASE:["conditionalOrExpression"],ENCODE_FOR_URI:["conditionalOrExpression"],CONTAINS:["conditionalOrExpression"],STRSTARTS:["conditionalOrExpression"],STRENDS:["conditionalOrExpression"],STRBEFORE:["conditionalOrExpression"],STRAFTER:["conditionalOrExpression"],YEAR:["conditionalOrExpression"],MONTH:["conditionalOrExpression"],DAY:["conditionalOrExpression"],HOURS:["conditionalOrExpression"],MINUTES:["conditionalOrExpression"],SECONDS:["conditionalOrExpression"],TIMEZONE:["conditionalOrExpression"],TZ:["conditionalOrExpression"],NOW:["conditionalOrExpression"],UUID:["conditionalOrExpression"],STRUUID:["conditionalOrExpression"],MD5:["conditionalOrExpression"],SHA1:["conditionalOrExpression"],SHA256:["conditionalOrExpression"],SHA384:["conditionalOrExpression"],SHA512:["conditionalOrExpression"],COALESCE:["conditionalOrExpression"],IF:["conditionalOrExpression"],STRLANG:["conditionalOrExpression"],STRDT:["conditionalOrExpression"],SAMETERM:["conditionalOrExpression"],ISIRI:["conditionalOrExpression"],ISURI:["conditionalOrExpression"],ISBLANK:["conditionalOrExpression"],ISLITERAL:["conditionalOrExpression"],ISNUMERIC:["conditionalOrExpression"],TRUE:["conditionalOrExpression"],FALSE:["conditionalOrExpression"],"<<":["conditionalOrExpression"],COUNT:["conditionalOrExpression"],SUM:["conditionalOrExpression"],MIN:["conditionalOrExpression"],MAX:["conditionalOrExpression"],AVG:["conditionalOrExpression"],SAMPLE:["conditionalOrExpression"],GROUP_CONCAT:["conditionalOrExpression"],SUBSTR:["conditionalOrExpression"],REPLACE:["conditionalOrExpression"],REGEX:["conditionalOrExpression"],EXISTS:["conditionalOrExpression"],NOT:["conditionalOrExpression"],IRI_REF:["conditionalOrExpression"],STRING_LITERAL1:["conditionalOrExpression"],STRING_LITERAL2:["conditionalOrExpression"],STRING_LITERAL_LONG1:["conditionalOrExpression"],STRING_LITERAL_LONG2:["conditionalOrExpression"],INTEGER:["conditionalOrExpression"],DECIMAL:["conditionalOrExpression"],DOUBLE:["conditionalOrExpression"],INTEGER_POSITIVE:["conditionalOrExpression"],DECIMAL_POSITIVE:["conditionalOrExpression"],DOUBLE_POSITIVE:["conditionalOrExpression"],INTEGER_NEGATIVE:["conditionalOrExpression"],DECIMAL_NEGATIVE:["conditionalOrExpression"],DOUBLE_NEGATIVE:["conditionalOrExpression"],PNAME_LN:["conditionalOrExpression"],PNAME_NS:["conditionalOrExpression"]},expressionList:{NIL:["NIL"],"(":["(","expression","*[,,expression]",")"]},filter:{FILTER:["FILTER","constraint"]},functionCall:{IRI_REF:["iriRef","argList"],PNAME_LN:["iriRef","argList"],PNAME_NS:["iriRef","argList"]},graphGraphPattern:{GRAPH:["GRAPH","varOrIRIref","groupGraphPattern"]},graphNode:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],"<<":["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNode"],"[":["triplesNode"]},graphNodePath:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],"<<":["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNodePath"],"[":["triplesNodePath"]},graphOrDefault:{DEFAULT:["DEFAULT"],IRI_REF:["?GRAPH","iriRef"],PNAME_LN:["?GRAPH","iriRef"],PNAME_NS:["?GRAPH","iriRef"],GRAPH:["?GRAPH","iriRef"]},graphPatternNotTriples:{"{":["groupOrUnionGraphPattern"],OPTIONAL:["optionalGraphPattern"],MINUS:["minusGraphPattern"],GRAPH:["graphGraphPattern"],SERVICE:["serviceGraphPattern"],FILTER:["filter"],BIND:["bind"],VALUES:["inlineData"]},graphRef:{GRAPH:["GRAPH","iriRef"]},graphRefAll:{GRAPH:["graphRef"],DEFAULT:["DEFAULT"],NAMED:["NAMED"],ALL:["ALL"]},graphTerm:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],BLANK_NODE_LABEL:["blankNode"],ANON:["blankNode"],"<<":["embeddedTriple"],NIL:["NIL"]},groupClause:{GROUP:["GROUP","BY","+groupCondition"]},groupCondition:{STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"],"(":["(","expression","?[AS,var]",")"],VAR1:["var"],VAR2:["var"]},groupGraphPattern:{"{":["{","or([subSelect,groupGraphPatternSub])","}"]},groupGraphPatternSub:{"{":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],NIL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"(":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"[":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],IRI_REF:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],TRUE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FALSE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BLANK_NODE_LABEL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],ANON:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"<<":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_LN:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_NS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"]},groupOrUnionGraphPattern:{"{":["groupGraphPattern","*[UNION,groupGraphPattern]"]},havingClause:{HAVING:["HAVING","+havingCondition"]},havingCondition:{"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"]},inlineData:{VALUES:["VALUES","dataBlock"]},inlineDataFull:{NIL:["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"],"(":["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"]},inlineDataOneVar:{VAR1:["var","{","*dataBlockValue","}"],VAR2:["var","{","*dataBlockValue","}"]},insert1:{DATA:["DATA","quadData"],"{":["quadPattern","*usingClause","WHERE","groupGraphPattern"]},insertClause:{INSERT:["INSERT","quadPattern"]},integer:{INTEGER:["INTEGER"]},iriRef:{IRI_REF:["IRI_REF"],PNAME_LN:["prefixedName"],PNAME_NS:["prefixedName"]},iriRefOrFunction:{IRI_REF:["iriRef","?argList"],PNAME_LN:["iriRef","?argList"],PNAME_NS:["iriRef","?argList"]},limitClause:{LIMIT:["LIMIT","INTEGER"]},limitOffsetClauses:{LIMIT:["limitClause","?offsetClause"],OFFSET:["offsetClause","?limitClause"]},load:{LOAD:["LOAD","?SILENT_1","iriRef","?[INTO,graphRef]"]},minusGraphPattern:{MINUS:["MINUS","groupGraphPattern"]},modify:{WITH:["WITH","iriRef","or([[deleteClause,?insertClause],insertClause])","*usingClause","WHERE","groupGraphPattern"]},move:{MOVE:["MOVE","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},multiplicativeExpression:{"!":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"+":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"-":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"(":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANGMATCHES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DATATYPE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BOUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BNODE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],RAND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ABS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CEIL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FLOOR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ROUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLEN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ENCODE_FOR_URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONTAINS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRSTARTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRENDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRBEFORE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRAFTER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],YEAR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MONTH:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DAY:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],HOURS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MINUTES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SECONDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TIMEZONE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TZ:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOW:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRUUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MD5:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA256:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA384:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA512:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COALESCE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRDT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMETERM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISIRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISURI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISBLANK:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISLITERAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISNUMERIC:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TRUE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FALSE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"<<":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COUNT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MIN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MAX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],AVG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMPLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],GROUP_CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUBSTR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REPLACE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REGEX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],EXISTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI_REF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_LN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_NS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"]},namedGraphClause:{NAMED:["NAMED","sourceSelector"]},notExistsFunc:{NOT:["NOT","EXISTS","groupGraphPattern"]},numericExpression:{"!":["additiveExpression"],"+":["additiveExpression"],"-":["additiveExpression"],VAR1:["additiveExpression"],VAR2:["additiveExpression"],"(":["additiveExpression"],STR:["additiveExpression"],LANG:["additiveExpression"],LANGMATCHES:["additiveExpression"],DATATYPE:["additiveExpression"],BOUND:["additiveExpression"],IRI:["additiveExpression"],URI:["additiveExpression"],BNODE:["additiveExpression"],RAND:["additiveExpression"],ABS:["additiveExpression"],CEIL:["additiveExpression"],FLOOR:["additiveExpression"],ROUND:["additiveExpression"],CONCAT:["additiveExpression"],STRLEN:["additiveExpression"],UCASE:["additiveExpression"],LCASE:["additiveExpression"],ENCODE_FOR_URI:["additiveExpression"],CONTAINS:["additiveExpression"],STRSTARTS:["additiveExpression"],STRENDS:["additiveExpression"],STRBEFORE:["additiveExpression"],STRAFTER:["additiveExpression"],YEAR:["additiveExpression"],MONTH:["additiveExpression"],DAY:["additiveExpression"],HOURS:["additiveExpression"],MINUTES:["additiveExpression"],SECONDS:["additiveExpression"],TIMEZONE:["additiveExpression"],TZ:["additiveExpression"],NOW:["additiveExpression"],UUID:["additiveExpression"],STRUUID:["additiveExpression"],MD5:["additiveExpression"],SHA1:["additiveExpression"],SHA256:["additiveExpression"],SHA384:["additiveExpression"],SHA512:["additiveExpression"],COALESCE:["additiveExpression"],IF:["additiveExpression"],STRLANG:["additiveExpression"],STRDT:["additiveExpression"],SAMETERM:["additiveExpression"],ISIRI:["additiveExpression"],ISURI:["additiveExpression"],ISBLANK:["additiveExpression"],ISLITERAL:["additiveExpression"],ISNUMERIC:["additiveExpression"],TRUE:["additiveExpression"],FALSE:["additiveExpression"],"<<":["additiveExpression"],COUNT:["additiveExpression"],SUM:["additiveExpression"],MIN:["additiveExpression"],MAX:["additiveExpression"],AVG:["additiveExpression"],SAMPLE:["additiveExpression"],GROUP_CONCAT:["additiveExpression"],SUBSTR:["additiveExpression"],REPLACE:["additiveExpression"],REGEX:["additiveExpression"],EXISTS:["additiveExpression"],NOT:["additiveExpression"],IRI_REF:["additiveExpression"],STRING_LITERAL1:["additiveExpression"],STRING_LITERAL2:["additiveExpression"],STRING_LITERAL_LONG1:["additiveExpression"],STRING_LITERAL_LONG2:["additiveExpression"],INTEGER:["additiveExpression"],DECIMAL:["additiveExpression"],DOUBLE:["additiveExpression"],INTEGER_POSITIVE:["additiveExpression"],DECIMAL_POSITIVE:["additiveExpression"],DOUBLE_POSITIVE:["additiveExpression"],INTEGER_NEGATIVE:["additiveExpression"],DECIMAL_NEGATIVE:["additiveExpression"],DOUBLE_NEGATIVE:["additiveExpression"],PNAME_LN:["additiveExpression"],PNAME_NS:["additiveExpression"]},numericLiteral:{INTEGER:["numericLiteralUnsigned"],DECIMAL:["numericLiteralUnsigned"],DOUBLE:["numericLiteralUnsigned"],INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},numericLiteralNegative:{INTEGER_NEGATIVE:["INTEGER_NEGATIVE"],DECIMAL_NEGATIVE:["DECIMAL_NEGATIVE"],DOUBLE_NEGATIVE:["DOUBLE_NEGATIVE"]},numericLiteralPositive:{INTEGER_POSITIVE:["INTEGER_POSITIVE"],DECIMAL_POSITIVE:["DECIMAL_POSITIVE"],DOUBLE_POSITIVE:["DOUBLE_POSITIVE"]},numericLiteralUnsigned:{INTEGER:["INTEGER"],DECIMAL:["DECIMAL"],DOUBLE:["DOUBLE"]},object:{"(":["graphNode"],"[":["graphNode"],VAR1:["graphNode"],VAR2:["graphNode"],NIL:["graphNode"],IRI_REF:["graphNode"],TRUE:["graphNode"],FALSE:["graphNode"],BLANK_NODE_LABEL:["graphNode"],ANON:["graphNode"],"<<":["graphNode"],PNAME_LN:["graphNode"],PNAME_NS:["graphNode"],STRING_LITERAL1:["graphNode"],STRING_LITERAL2:["graphNode"],STRING_LITERAL_LONG1:["graphNode"],STRING_LITERAL_LONG2:["graphNode"],INTEGER:["graphNode"],DECIMAL:["graphNode"],DOUBLE:["graphNode"],INTEGER_POSITIVE:["graphNode"],DECIMAL_POSITIVE:["graphNode"],DOUBLE_POSITIVE:["graphNode"],INTEGER_NEGATIVE:["graphNode"],DECIMAL_NEGATIVE:["graphNode"],DOUBLE_NEGATIVE:["graphNode"]},objectList:{"(":["object","*[,,object]"],"[":["object","*[,,object]"],VAR1:["object","*[,,object]"],VAR2:["object","*[,,object]"],NIL:["object","*[,,object]"],IRI_REF:["object","*[,,object]"],TRUE:["object","*[,,object]"],FALSE:["object","*[,,object]"],BLANK_NODE_LABEL:["object","*[,,object]"],ANON:["object","*[,,object]"],"<<":["object","*[,,object]"],PNAME_LN:["object","*[,,object]"],PNAME_NS:["object","*[,,object]"],STRING_LITERAL1:["object","*[,,object]"],STRING_LITERAL2:["object","*[,,object]"],STRING_LITERAL_LONG1:["object","*[,,object]"],STRING_LITERAL_LONG2:["object","*[,,object]"],INTEGER:["object","*[,,object]"],DECIMAL:["object","*[,,object]"],DOUBLE:["object","*[,,object]"],INTEGER_POSITIVE:["object","*[,,object]"],DECIMAL_POSITIVE:["object","*[,,object]"],DOUBLE_POSITIVE:["object","*[,,object]"],INTEGER_NEGATIVE:["object","*[,,object]"],DECIMAL_NEGATIVE:["object","*[,,object]"],DOUBLE_NEGATIVE:["object","*[,,object]"]},objectListPath:{"(":["objectPath","*[,,objectPath]"],"[":["objectPath","*[,,objectPath]"],VAR1:["objectPath","*[,,objectPath]"],VAR2:["objectPath","*[,,objectPath]"],NIL:["objectPath","*[,,objectPath]"],IRI_REF:["objectPath","*[,,objectPath]"],TRUE:["objectPath","*[,,objectPath]"],FALSE:["objectPath","*[,,objectPath]"],BLANK_NODE_LABEL:["objectPath","*[,,objectPath]"],ANON:["objectPath","*[,,objectPath]"],"<<":["objectPath","*[,,objectPath]"],PNAME_LN:["objectPath","*[,,objectPath]"],PNAME_NS:["objectPath","*[,,objectPath]"],STRING_LITERAL1:["objectPath","*[,,objectPath]"],STRING_LITERAL2:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG1:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG2:["objectPath","*[,,objectPath]"],INTEGER:["objectPath","*[,,objectPath]"],DECIMAL:["objectPath","*[,,objectPath]"],DOUBLE:["objectPath","*[,,objectPath]"],INTEGER_POSITIVE:["objectPath","*[,,objectPath]"],DECIMAL_POSITIVE:["objectPath","*[,,objectPath]"],DOUBLE_POSITIVE:["objectPath","*[,,objectPath]"],INTEGER_NEGATIVE:["objectPath","*[,,objectPath]"],DECIMAL_NEGATIVE:["objectPath","*[,,objectPath]"],DOUBLE_NEGATIVE:["objectPath","*[,,objectPath]"]},objectPath:{"(":["graphNodePath"],"[":["graphNodePath"],VAR1:["graphNodePath"],VAR2:["graphNodePath"],NIL:["graphNodePath"],IRI_REF:["graphNodePath"],TRUE:["graphNodePath"],FALSE:["graphNodePath"],BLANK_NODE_LABEL:["graphNodePath"],ANON:["graphNodePath"],"<<":["graphNodePath"],PNAME_LN:["graphNodePath"],PNAME_NS:["graphNodePath"],STRING_LITERAL1:["graphNodePath"],STRING_LITERAL2:["graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath"],INTEGER:["graphNodePath"],DECIMAL:["graphNodePath"],DOUBLE:["graphNodePath"],INTEGER_POSITIVE:["graphNodePath"],DECIMAL_POSITIVE:["graphNodePath"],DOUBLE_POSITIVE:["graphNodePath"],INTEGER_NEGATIVE:["graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath"]},offsetClause:{OFFSET:["OFFSET","INTEGER"]},optionalGraphPattern:{OPTIONAL:["OPTIONAL","groupGraphPattern"]},"or([*,expression])":{"*":["*"],"!":["expression"],"+":["expression"],"-":["expression"],VAR1:["expression"],VAR2:["expression"],"(":["expression"],STR:["expression"],LANG:["expression"],LANGMATCHES:["expression"],DATATYPE:["expression"],BOUND:["expression"],IRI:["expression"],URI:["expression"],BNODE:["expression"],RAND:["expression"],ABS:["expression"],CEIL:["expression"],FLOOR:["expression"],ROUND:["expression"],CONCAT:["expression"],STRLEN:["expression"],UCASE:["expression"],LCASE:["expression"],ENCODE_FOR_URI:["expression"],CONTAINS:["expression"],STRSTARTS:["expression"],STRENDS:["expression"],STRBEFORE:["expression"],STRAFTER:["expression"],YEAR:["expression"],MONTH:["expression"],DAY:["expression"],HOURS:["expression"],MINUTES:["expression"],SECONDS:["expression"],TIMEZONE:["expression"],TZ:["expression"],NOW:["expression"],UUID:["expression"],STRUUID:["expression"],MD5:["expression"],SHA1:["expression"],SHA256:["expression"],SHA384:["expression"],SHA512:["expression"],COALESCE:["expression"],IF:["expression"],STRLANG:["expression"],STRDT:["expression"],SAMETERM:["expression"],ISIRI:["expression"],ISURI:["expression"],ISBLANK:["expression"],ISLITERAL:["expression"],ISNUMERIC:["expression"],TRUE:["expression"],FALSE:["expression"],"<<":["expression"],COUNT:["expression"],SUM:["expression"],MIN:["expression"],MAX:["expression"],AVG:["expression"],SAMPLE:["expression"],GROUP_CONCAT:["expression"],SUBSTR:["expression"],REPLACE:["expression"],REGEX:["expression"],EXISTS:["expression"],NOT:["expression"],IRI_REF:["expression"],STRING_LITERAL1:["expression"],STRING_LITERAL2:["expression"],STRING_LITERAL_LONG1:["expression"],STRING_LITERAL_LONG2:["expression"],INTEGER:["expression"],DECIMAL:["expression"],DOUBLE:["expression"],INTEGER_POSITIVE:["expression"],DECIMAL_POSITIVE:["expression"],DOUBLE_POSITIVE:["expression"],INTEGER_NEGATIVE:["expression"],DECIMAL_NEGATIVE:["expression"],DOUBLE_NEGATIVE:["expression"],PNAME_LN:["expression"],PNAME_NS:["expression"]},"or([+or([var,[(,expression,AS,var,)]]),*])":{"(":["+or([var,[(,expression,AS,var,)]])"],VAR1:["+or([var,[(,expression,AS,var,)]])"],VAR2:["+or([var,[(,expression,AS,var,)]])"],"*":["*"]},"or([+or([varOrIRIref,embeddedTriple]),*])":{"<<":["+or([varOrIRIref,embeddedTriple])"],VAR1:["+or([varOrIRIref,embeddedTriple])"],VAR2:["+or([varOrIRIref,embeddedTriple])"],IRI_REF:["+or([varOrIRIref,embeddedTriple])"],PNAME_LN:["+or([varOrIRIref,embeddedTriple])"],PNAME_NS:["+or([varOrIRIref,embeddedTriple])"],"*":["*"]},"or([ASC,DESC])":{ASC:["ASC"],DESC:["DESC"]},"or([DISTINCT,REDUCED])":{DISTINCT:["DISTINCT"],REDUCED:["REDUCED"]},"or([LANGTAG,[^^,iriRef]])":{LANGTAG:["LANGTAG"],"^^":["[^^,iriRef]"]},"or([NIL,[(,*var,)]])":{NIL:["NIL"],"(":["[(,*var,)]"]},"or([[(,*dataBlockValue,)],NIL])":{"(":["[(,*dataBlockValue,)]"],NIL:["NIL"]},"or([[(,expression,)],NIL])":{"(":["[(,expression,)]"],NIL:["NIL"]},"or([[*,unaryExpression],[/,unaryExpression]])":{"*":["[*,unaryExpression]"],"/":["[/,unaryExpression]"]},"or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["[+,multiplicativeExpression]"],"-":["[-,multiplicativeExpression]"],INTEGER_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],INTEGER_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"]},"or([[,,or([},[integer,}]])],}])":{",":["[,,or([},[integer,}]])]"],"}":["}"]},"or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["[=,numericExpression]"],"!=":["[!=,numericExpression]"],"<":["[<,numericExpression]"],">":["[>,numericExpression]"],"<=":["[<=,numericExpression]"],">=":["[>=,numericExpression]"],IN:["[IN,expressionList]"],NOT:["[NOT,IN,expressionList]"]},"or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])":{"{":["[constructTemplate,*datasetClause,whereClause,solutionModifier]"],WHERE:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"],FROM:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"]},"or([[deleteClause,?insertClause],insertClause])":{DELETE:["[deleteClause,?insertClause]"],INSERT:["insertClause"]},"or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])":{INTEGER:["[integer,or([[,,or([},[integer,}]])],}])]"],",":["[,,integer,}]"]},"or([baseDecl,prefixDecl])":{BASE:["baseDecl"],PREFIX:["prefixDecl"]},"or([defaultGraphClause,namedGraphClause])":{IRI_REF:["defaultGraphClause"],PNAME_LN:["defaultGraphClause"],PNAME_NS:["defaultGraphClause"],NAMED:["namedGraphClause"]},"or([inlineDataOneVar,inlineDataFull])":{VAR1:["inlineDataOneVar"],VAR2:["inlineDataOneVar"],NIL:["inlineDataFull"],"(":["inlineDataFull"]},"or([iriRef,[NAMED,iriRef]])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],NAMED:["[NAMED,iriRef]"]},"or([iriRef,a])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"]},"or([numericLiteralPositive,numericLiteralNegative])":{INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},"or([queryAll,updateAll])":{CONSTRUCT:["queryAll"],DESCRIBE:["queryAll"],ASK:["queryAll"],SELECT:["queryAll"],INSERT:["updateAll"],DELETE:["updateAll"],LOAD:["updateAll"],CLEAR:["updateAll"],DROP:["updateAll"],ADD:["updateAll"],MOVE:["updateAll"],COPY:["updateAll"],CREATE:["updateAll"],WITH:["updateAll"],$:["updateAll"]},"or([selectQuery,constructQuery,describeQuery,askQuery])":{SELECT:["selectQuery"],CONSTRUCT:["constructQuery"],DESCRIBE:["describeQuery"],ASK:["askQuery"]},"or([subSelect,groupGraphPatternSub])":{SELECT:["subSelect"],"{":["groupGraphPatternSub"],OPTIONAL:["groupGraphPatternSub"],MINUS:["groupGraphPatternSub"],GRAPH:["groupGraphPatternSub"],SERVICE:["groupGraphPatternSub"],FILTER:["groupGraphPatternSub"],BIND:["groupGraphPatternSub"],VALUES:["groupGraphPatternSub"],VAR1:["groupGraphPatternSub"],VAR2:["groupGraphPatternSub"],NIL:["groupGraphPatternSub"],"(":["groupGraphPatternSub"],"[":["groupGraphPatternSub"],IRI_REF:["groupGraphPatternSub"],TRUE:["groupGraphPatternSub"],FALSE:["groupGraphPatternSub"],BLANK_NODE_LABEL:["groupGraphPatternSub"],ANON:["groupGraphPatternSub"],"<<":["groupGraphPatternSub"],PNAME_LN:["groupGraphPatternSub"],PNAME_NS:["groupGraphPatternSub"],STRING_LITERAL1:["groupGraphPatternSub"],STRING_LITERAL2:["groupGraphPatternSub"],STRING_LITERAL_LONG1:["groupGraphPatternSub"],STRING_LITERAL_LONG2:["groupGraphPatternSub"],INTEGER:["groupGraphPatternSub"],DECIMAL:["groupGraphPatternSub"],DOUBLE:["groupGraphPatternSub"],INTEGER_POSITIVE:["groupGraphPatternSub"],DECIMAL_POSITIVE:["groupGraphPatternSub"],DOUBLE_POSITIVE:["groupGraphPatternSub"],INTEGER_NEGATIVE:["groupGraphPatternSub"],DECIMAL_NEGATIVE:["groupGraphPatternSub"],DOUBLE_NEGATIVE:["groupGraphPatternSub"],"}":["groupGraphPatternSub"]},"or([var,[(,expression,AS,var,)]])":{VAR1:["var"],VAR2:["var"],"(":["[(,expression,AS,var,)]"]},"or([varOrIRIref,embeddedTriple])":{VAR1:["varOrIRIref"],VAR2:["varOrIRIref"],IRI_REF:["varOrIRIref"],PNAME_LN:["varOrIRIref"],PNAME_NS:["varOrIRIref"],"<<":["embeddedTriple"]},"or([verbPath,verbSimple])":{"^":["verbPath"],a:["verbPath"],"!":["verbPath"],"(":["verbPath"],IRI_REF:["verbPath"],PNAME_LN:["verbPath"],PNAME_NS:["verbPath"],VAR1:["verbSimple"],VAR2:["verbSimple"]},"or([},[integer,}]])":{"}":["}"],INTEGER:["[integer,}]"]},orderClause:{ORDER:["ORDER","BY","+orderCondition"]},orderCondition:{ASC:["or([ASC,DESC])","brackettedExpression"],DESC:["or([ASC,DESC])","brackettedExpression"],"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"],VAR1:["var"],VAR2:["var"]},path:{"^":["pathAlternative"],a:["pathAlternative"],"!":["pathAlternative"],"(":["pathAlternative"],IRI_REF:["pathAlternative"],PNAME_LN:["pathAlternative"],PNAME_NS:["pathAlternative"]},pathAlternative:{"^":["pathSequence","*[|,pathSequence]"],a:["pathSequence","*[|,pathSequence]"],"!":["pathSequence","*[|,pathSequence]"],"(":["pathSequence","*[|,pathSequence]"],IRI_REF:["pathSequence","*[|,pathSequence]"],PNAME_LN:["pathSequence","*[|,pathSequence]"],PNAME_NS:["pathSequence","*[|,pathSequence]"]},pathElt:{a:["pathPrimary","?pathMod"],"!":["pathPrimary","?pathMod"],"(":["pathPrimary","?pathMod"],IRI_REF:["pathPrimary","?pathMod"],PNAME_LN:["pathPrimary","?pathMod"],PNAME_NS:["pathPrimary","?pathMod"]},pathEltOrInverse:{a:["pathElt"],"!":["pathElt"],"(":["pathElt"],IRI_REF:["pathElt"],PNAME_LN:["pathElt"],PNAME_NS:["pathElt"],"^":["^","pathElt"]},pathMod:{"*":["*"],"?":["?"],"+":["+"],"{":["{","or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])"]},pathNegatedPropertySet:{a:["pathOneInPropertySet"],"^":["pathOneInPropertySet"],IRI_REF:["pathOneInPropertySet"],PNAME_LN:["pathOneInPropertySet"],PNAME_NS:["pathOneInPropertySet"],"(":["(","?[pathOneInPropertySet,*[|,pathOneInPropertySet]]",")"]},pathOneInPropertySet:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"],"^":["^","or([iriRef,a])"]},pathPrimary:{IRI_REF:["storeProperty","iriRef"],PNAME_LN:["storeProperty","iriRef"],PNAME_NS:["storeProperty","iriRef"],a:["storeProperty","a"],"!":["!","pathNegatedPropertySet"],"(":["(","path",")"]},pathSequence:{"^":["pathEltOrInverse","*[/,pathEltOrInverse]"],a:["pathEltOrInverse","*[/,pathEltOrInverse]"],"!":["pathEltOrInverse","*[/,pathEltOrInverse]"],"(":["pathEltOrInverse","*[/,pathEltOrInverse]"],IRI_REF:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_LN:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_NS:["pathEltOrInverse","*[/,pathEltOrInverse]"]},prefixDecl:{PREFIX:["PREFIX","PNAME_NS","IRI_REF"]},prefixedName:{PNAME_LN:["PNAME_LN"],PNAME_NS:["PNAME_NS"]},primaryExpression:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["iriRefOrFunction"],PNAME_LN:["iriRefOrFunction"],PNAME_NS:["iriRefOrFunction"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],"<<":["embeddedTriple"],VAR1:["var"],VAR2:["var"],COUNT:["aggregate"],SUM:["aggregate"],MIN:["aggregate"],MAX:["aggregate"],AVG:["aggregate"],SAMPLE:["aggregate"],GROUP_CONCAT:["aggregate"]},prologue:{BASE:["*or([baseDecl,prefixDecl])"],PREFIX:["*or([baseDecl,prefixDecl])"],$:["*or([baseDecl,prefixDecl])"],CONSTRUCT:["*or([baseDecl,prefixDecl])"],DESCRIBE:["*or([baseDecl,prefixDecl])"],ASK:["*or([baseDecl,prefixDecl])"],INSERT:["*or([baseDecl,prefixDecl])"],DELETE:["*or([baseDecl,prefixDecl])"],SELECT:["*or([baseDecl,prefixDecl])"],LOAD:["*or([baseDecl,prefixDecl])"],CLEAR:["*or([baseDecl,prefixDecl])"],DROP:["*or([baseDecl,prefixDecl])"],ADD:["*or([baseDecl,prefixDecl])"],MOVE:["*or([baseDecl,prefixDecl])"],COPY:["*or([baseDecl,prefixDecl])"],CREATE:["*or([baseDecl,prefixDecl])"],WITH:["*or([baseDecl,prefixDecl])"]},propertyList:{VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],"^":["propertyListNotEmpty"],a:["propertyListNotEmpty"],"!":["propertyListNotEmpty"],"(":["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"}":[],GRAPH:[]},propertyListNotEmpty:{VAR1:["or([verbPath,verbSimple])","objectList","*[;,?[or([verbPath,verbSimple]),objectList]]"],VAR2:["or([verbPath,verbSimple])","objectList","*[;,?[or([verbPath,verbSimple]),objectList]]"],"^":["or([verbPath,verbSimple])","objectList","*[;,?[or([verbPath,verbSimple]),objectList]]"],a:["or([verbPath,verbSimple])","objectList","*[;,?[or([verbPath,verbSimple]),objectList]]"],"!":["or([verbPath,verbSimple])","objectList","*[;,?[or([verbPath,verbSimple]),objectList]]"],"(":["or([verbPath,verbSimple])","objectList","*[;,?[or([verbPath,verbSimple]),objectList]]"],IRI_REF:["or([verbPath,verbSimple])","objectList","*[;,?[or([verbPath,verbSimple]),objectList]]"],PNAME_LN:["or([verbPath,verbSimple])","objectList","*[;,?[or([verbPath,verbSimple]),objectList]]"],PNAME_NS:["or([verbPath,verbSimple])","objectList","*[;,?[or([verbPath,verbSimple]),objectList]]"]},propertyListPath:{VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],"^":["propertyListNotEmpty"],a:["propertyListNotEmpty"],"!":["propertyListNotEmpty"],"(":["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},propertyListPathNotEmpty:{VAR1:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectList]]"],VAR2:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectList]]"],"^":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectList]]"],a:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectList]]"],"!":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectList]]"],"(":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectList]]"],IRI_REF:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectList]]"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectList]]"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectList]]"]},quadData:{"{":["{","disallowVars","quads","allowVars","}"]},quadDataNoBnodes:{"{":["{","disallowBnodes","disallowVars","quads","allowVars","allowBnodes","}"]},quadPattern:{"{":["{","quads","}"]},quadPatternNoBnodes:{"{":["{","disallowBnodes","quads","allowBnodes","}"]},quads:{GRAPH:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],NIL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"(":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"[":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],IRI_REF:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],TRUE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],FALSE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],BLANK_NODE_LABEL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],ANON:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"<<":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_LN:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_NS:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"}":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"]},quadsNotTriples:{GRAPH:["GRAPH","varOrIRIref","{","?triplesTemplate","}"]},queryAll:{CONSTRUCT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],DESCRIBE:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],ASK:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],SELECT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"]},rdfLiteral:{STRING_LITERAL1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL2:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG2:["string","?or([LANGTAG,[^^,iriRef]])"]},regexExpression:{REGEX:["REGEX","(","expression",",","expression","?[,,expression]",")"]},relationalExpression:{"!":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"+":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"-":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"(":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANGMATCHES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DATATYPE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BOUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BNODE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],RAND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ABS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CEIL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FLOOR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ROUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLEN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ENCODE_FOR_URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONTAINS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRSTARTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRENDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRBEFORE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRAFTER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],YEAR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MONTH:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DAY:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],HOURS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MINUTES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SECONDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TIMEZONE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TZ:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOW:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRUUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MD5:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA256:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA384:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA512:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COALESCE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRDT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMETERM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISIRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISURI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISBLANK:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISLITERAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISNUMERIC:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TRUE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FALSE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<<":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COUNT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MIN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MAX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AVG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMPLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],GROUP_CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUBSTR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REPLACE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REGEX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],EXISTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI_REF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_LN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_NS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"]},selectClause:{SELECT:["SELECT","?or([DISTINCT,REDUCED])","or([+or([var,[(,expression,AS,var,)]]),*])"]},selectQuery:{SELECT:["selectClause","*datasetClause","whereClause","solutionModifier"]},serviceGraphPattern:{SERVICE:["SERVICE","?SILENT","varOrIRIref","groupGraphPattern"]},solutionModifier:{LIMIT:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],OFFSET:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],ORDER:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],HAVING:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],GROUP:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],VALUES:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],$:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],"}":["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"]},sourceSelector:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},sparql11:{$:["prologue","or([queryAll,updateAll])","$"],CONSTRUCT:["prologue","or([queryAll,updateAll])","$"],DESCRIBE:["prologue","or([queryAll,updateAll])","$"],ASK:["prologue","or([queryAll,updateAll])","$"],INSERT:["prologue","or([queryAll,updateAll])","$"],DELETE:["prologue","or([queryAll,updateAll])","$"],SELECT:["prologue","or([queryAll,updateAll])","$"],LOAD:["prologue","or([queryAll,updateAll])","$"],CLEAR:["prologue","or([queryAll,updateAll])","$"],DROP:["prologue","or([queryAll,updateAll])","$"],ADD:["prologue","or([queryAll,updateAll])","$"],MOVE:["prologue","or([queryAll,updateAll])","$"],COPY:["prologue","or([queryAll,updateAll])","$"],CREATE:["prologue","or([queryAll,updateAll])","$"],WITH:["prologue","or([queryAll,updateAll])","$"],BASE:["prologue","or([queryAll,updateAll])","$"],PREFIX:["prologue","or([queryAll,updateAll])","$"]},storeProperty:{VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[],a:[]},strReplaceExpression:{REPLACE:["REPLACE","(","expression",",","expression",",","expression","?[,,expression]",")"]},string:{STRING_LITERAL1:["STRING_LITERAL1"],STRING_LITERAL2:["STRING_LITERAL2"],STRING_LITERAL_LONG1:["STRING_LITERAL_LONG1"],STRING_LITERAL_LONG2:["STRING_LITERAL_LONG2"]},subSelect:{SELECT:["selectClause","whereClause","solutionModifier","valuesClause"]},substringExpression:{SUBSTR:["SUBSTR","(","expression",",","expression","?[,,expression]",")"]},triplesBlock:{VAR1:["triplesSameSubjectPath","?[.,?triplesBlock]"],VAR2:["triplesSameSubjectPath","?[.,?triplesBlock]"],NIL:["triplesSameSubjectPath","?[.,?triplesBlock]"],"(":["triplesSameSubjectPath","?[.,?triplesBlock]"],"[":["triplesSameSubjectPath","?[.,?triplesBlock]"],IRI_REF:["triplesSameSubjectPath","?[.,?triplesBlock]"],TRUE:["triplesSameSubjectPath","?[.,?triplesBlock]"],FALSE:["triplesSameSubjectPath","?[.,?triplesBlock]"],BLANK_NODE_LABEL:["triplesSameSubjectPath","?[.,?triplesBlock]"],ANON:["triplesSameSubjectPath","?[.,?triplesBlock]"],"<<":["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_LN:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_NS:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL2:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG2:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"]},triplesNode:{"(":["collection"],"[":["blankNodePropertyList"]},triplesNodePath:{"(":["collectionPath"],"[":["blankNodePropertyListPath"]},triplesSameSubject:{VAR1:["varOrTerm","propertyListNotEmpty"],VAR2:["varOrTerm","propertyListNotEmpty"],NIL:["varOrTerm","propertyListNotEmpty"],IRI_REF:["varOrTerm","propertyListNotEmpty"],TRUE:["varOrTerm","propertyListNotEmpty"],FALSE:["varOrTerm","propertyListNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListNotEmpty"],ANON:["varOrTerm","propertyListNotEmpty"],"<<":["varOrTerm","propertyListNotEmpty"],PNAME_LN:["varOrTerm","propertyListNotEmpty"],PNAME_NS:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListNotEmpty"],INTEGER:["varOrTerm","propertyListNotEmpty"],DECIMAL:["varOrTerm","propertyListNotEmpty"],DOUBLE:["varOrTerm","propertyListNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListNotEmpty"],"(":["triplesNode","propertyList"],"[":["triplesNode","propertyList"]},triplesSameSubjectPath:{VAR1:["varOrTerm","propertyListPathNotEmpty"],VAR2:["varOrTerm","propertyListPathNotEmpty"],NIL:["varOrTerm","propertyListPathNotEmpty"],IRI_REF:["varOrTerm","propertyListPathNotEmpty"],TRUE:["varOrTerm","propertyListPathNotEmpty"],FALSE:["varOrTerm","propertyListPathNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListPathNotEmpty"],ANON:["varOrTerm","propertyListPathNotEmpty"],"<<":["varOrTerm","propertyListPathNotEmpty"],PNAME_LN:["varOrTerm","propertyListPathNotEmpty"],PNAME_NS:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListPathNotEmpty"],INTEGER:["varOrTerm","propertyListPathNotEmpty"],DECIMAL:["varOrTerm","propertyListPathNotEmpty"],DOUBLE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],"(":["triplesNodePath","propertyListPath"],"[":["triplesNodePath","propertyListPath"]},triplesTemplate:{VAR1:["triplesSameSubject","?[.,?triplesTemplate]"],VAR2:["triplesSameSubject","?[.,?triplesTemplate]"],NIL:["triplesSameSubject","?[.,?triplesTemplate]"],"(":["triplesSameSubject","?[.,?triplesTemplate]"],"[":["triplesSameSubject","?[.,?triplesTemplate]"],IRI_REF:["triplesSameSubject","?[.,?triplesTemplate]"],TRUE:["triplesSameSubject","?[.,?triplesTemplate]"],FALSE:["triplesSameSubject","?[.,?triplesTemplate]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?triplesTemplate]"],ANON:["triplesSameSubject","?[.,?triplesTemplate]"],"<<":["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_LN:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_NS:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL2:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"]},unaryExpression:{"!":["!","primaryExpression"],"+":["+","primaryExpression"],"-":["-","primaryExpression"],VAR1:["primaryExpression"],VAR2:["primaryExpression"],"(":["primaryExpression"],STR:["primaryExpression"],LANG:["primaryExpression"],LANGMATCHES:["primaryExpression"],DATATYPE:["primaryExpression"],BOUND:["primaryExpression"],IRI:["primaryExpression"],URI:["primaryExpression"],BNODE:["primaryExpression"],RAND:["primaryExpression"],ABS:["primaryExpression"],CEIL:["primaryExpression"],FLOOR:["primaryExpression"],ROUND:["primaryExpression"],CONCAT:["primaryExpression"],STRLEN:["primaryExpression"],UCASE:["primaryExpression"],LCASE:["primaryExpression"],ENCODE_FOR_URI:["primaryExpression"],CONTAINS:["primaryExpression"],STRSTARTS:["primaryExpression"],STRENDS:["primaryExpression"],STRBEFORE:["primaryExpression"],STRAFTER:["primaryExpression"],YEAR:["primaryExpression"],MONTH:["primaryExpression"],DAY:["primaryExpression"],HOURS:["primaryExpression"],MINUTES:["primaryExpression"],SECONDS:["primaryExpression"],TIMEZONE:["primaryExpression"],TZ:["primaryExpression"],NOW:["primaryExpression"],UUID:["primaryExpression"],STRUUID:["primaryExpression"],MD5:["primaryExpression"],SHA1:["primaryExpression"],SHA256:["primaryExpression"],SHA384:["primaryExpression"],SHA512:["primaryExpression"],COALESCE:["primaryExpression"],IF:["primaryExpression"],STRLANG:["primaryExpression"],STRDT:["primaryExpression"],SAMETERM:["primaryExpression"],ISIRI:["primaryExpression"],ISURI:["primaryExpression"],ISBLANK:["primaryExpression"],ISLITERAL:["primaryExpression"],ISNUMERIC:["primaryExpression"],TRUE:["primaryExpression"],FALSE:["primaryExpression"],"<<":["primaryExpression"],COUNT:["primaryExpression"],SUM:["primaryExpression"],MIN:["primaryExpression"],MAX:["primaryExpression"],AVG:["primaryExpression"],SAMPLE:["primaryExpression"],GROUP_CONCAT:["primaryExpression"],SUBSTR:["primaryExpression"],REPLACE:["primaryExpression"],REGEX:["primaryExpression"],EXISTS:["primaryExpression"],NOT:["primaryExpression"],IRI_REF:["primaryExpression"],STRING_LITERAL1:["primaryExpression"],STRING_LITERAL2:["primaryExpression"],STRING_LITERAL_LONG1:["primaryExpression"],STRING_LITERAL_LONG2:["primaryExpression"],INTEGER:["primaryExpression"],DECIMAL:["primaryExpression"],DOUBLE:["primaryExpression"],INTEGER_POSITIVE:["primaryExpression"],DECIMAL_POSITIVE:["primaryExpression"],DOUBLE_POSITIVE:["primaryExpression"],INTEGER_NEGATIVE:["primaryExpression"],DECIMAL_NEGATIVE:["primaryExpression"],DOUBLE_NEGATIVE:["primaryExpression"],PNAME_LN:["primaryExpression"],PNAME_NS:["primaryExpression"]},update:{INSERT:["prologue","?[update1,?[;,update]]"],DELETE:["prologue","?[update1,?[;,update]]"],LOAD:["prologue","?[update1,?[;,update]]"],CLEAR:["prologue","?[update1,?[;,update]]"],DROP:["prologue","?[update1,?[;,update]]"],ADD:["prologue","?[update1,?[;,update]]"],MOVE:["prologue","?[update1,?[;,update]]"],COPY:["prologue","?[update1,?[;,update]]"],CREATE:["prologue","?[update1,?[;,update]]"],WITH:["prologue","?[update1,?[;,update]]"],BASE:["prologue","?[update1,?[;,update]]"],PREFIX:["prologue","?[update1,?[;,update]]"],$:["prologue","?[update1,?[;,update]]"]},update1:{LOAD:["load"],CLEAR:["clear"],DROP:["drop"],ADD:["add"],MOVE:["move"],COPY:["copy"],CREATE:["create"],INSERT:["INSERT","insert1"],DELETE:["DELETE","delete1"],WITH:["modify"]},updateAll:{INSERT:["?[update1,?[;,update]]"],DELETE:["?[update1,?[;,update]]"],LOAD:["?[update1,?[;,update]]"],CLEAR:["?[update1,?[;,update]]"],DROP:["?[update1,?[;,update]]"],ADD:["?[update1,?[;,update]]"],MOVE:["?[update1,?[;,update]]"],COPY:["?[update1,?[;,update]]"],CREATE:["?[update1,?[;,update]]"],WITH:["?[update1,?[;,update]]"],$:["?[update1,?[;,update]]"]},usingClause:{USING:["USING","or([iriRef,[NAMED,iriRef]])"]},valueLogical:{"!":["relationalExpression"],"+":["relationalExpression"],"-":["relationalExpression"],VAR1:["relationalExpression"],VAR2:["relationalExpression"],"(":["relationalExpression"],STR:["relationalExpression"],LANG:["relationalExpression"],LANGMATCHES:["relationalExpression"],DATATYPE:["relationalExpression"],BOUND:["relationalExpression"],IRI:["relationalExpression"],URI:["relationalExpression"],BNODE:["relationalExpression"],RAND:["relationalExpression"],ABS:["relationalExpression"],CEIL:["relationalExpression"],FLOOR:["relationalExpression"],ROUND:["relationalExpression"],CONCAT:["relationalExpression"],STRLEN:["relationalExpression"],UCASE:["relationalExpression"],LCASE:["relationalExpression"],ENCODE_FOR_URI:["relationalExpression"],CONTAINS:["relationalExpression"],STRSTARTS:["relationalExpression"],STRENDS:["relationalExpression"],STRBEFORE:["relationalExpression"],STRAFTER:["relationalExpression"],YEAR:["relationalExpression"],MONTH:["relationalExpression"],DAY:["relationalExpression"],HOURS:["relationalExpression"],MINUTES:["relationalExpression"],SECONDS:["relationalExpression"],TIMEZONE:["relationalExpression"],TZ:["relationalExpression"],NOW:["relationalExpression"],UUID:["relationalExpression"],STRUUID:["relationalExpression"],MD5:["relationalExpression"],SHA1:["relationalExpression"],SHA256:["relationalExpression"],SHA384:["relationalExpression"],SHA512:["relationalExpression"],COALESCE:["relationalExpression"],IF:["relationalExpression"],STRLANG:["relationalExpression"],STRDT:["relationalExpression"],SAMETERM:["relationalExpression"],ISIRI:["relationalExpression"],ISURI:["relationalExpression"],ISBLANK:["relationalExpression"],ISLITERAL:["relationalExpression"],ISNUMERIC:["relationalExpression"],TRUE:["relationalExpression"],FALSE:["relationalExpression"],"<<":["relationalExpression"],COUNT:["relationalExpression"],SUM:["relationalExpression"],MIN:["relationalExpression"],MAX:["relationalExpression"],AVG:["relationalExpression"],SAMPLE:["relationalExpression"],GROUP_CONCAT:["relationalExpression"],SUBSTR:["relationalExpression"],REPLACE:["relationalExpression"],REGEX:["relationalExpression"],EXISTS:["relationalExpression"],NOT:["relationalExpression"],IRI_REF:["relationalExpression"],STRING_LITERAL1:["relationalExpression"],STRING_LITERAL2:["relationalExpression"],STRING_LITERAL_LONG1:["relationalExpression"],STRING_LITERAL_LONG2:["relationalExpression"],INTEGER:["relationalExpression"],DECIMAL:["relationalExpression"],DOUBLE:["relationalExpression"],INTEGER_POSITIVE:["relationalExpression"],DECIMAL_POSITIVE:["relationalExpression"],DOUBLE_POSITIVE:["relationalExpression"],INTEGER_NEGATIVE:["relationalExpression"],DECIMAL_NEGATIVE:["relationalExpression"],DOUBLE_NEGATIVE:["relationalExpression"],PNAME_LN:["relationalExpression"],PNAME_NS:["relationalExpression"]},valuesClause:{VALUES:["VALUES","dataBlock"],$:[],"}":[]},var:{VAR1:["VAR1"],VAR2:["VAR2"]},varOrIRIref:{VAR1:["var"],VAR2:["var"],IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},varOrTerm:{VAR1:["var"],VAR2:["var"],NIL:["graphTerm"],IRI_REF:["graphTerm"],TRUE:["graphTerm"],FALSE:["graphTerm"],BLANK_NODE_LABEL:["graphTerm"],ANON:["graphTerm"],"<<":["graphTerm"],PNAME_LN:["graphTerm"],PNAME_NS:["graphTerm"],STRING_LITERAL1:["graphTerm"],STRING_LITERAL2:["graphTerm"],STRING_LITERAL_LONG1:["graphTerm"],STRING_LITERAL_LONG2:["graphTerm"],INTEGER:["graphTerm"],DECIMAL:["graphTerm"],DOUBLE:["graphTerm"],INTEGER_POSITIVE:["graphTerm"],DECIMAL_POSITIVE:["graphTerm"],DOUBLE_POSITIVE:["graphTerm"],INTEGER_NEGATIVE:["graphTerm"],DECIMAL_NEGATIVE:["graphTerm"],DOUBLE_NEGATIVE:["graphTerm"]},verb:{VAR1:["storeProperty","varOrIRIref"],VAR2:["storeProperty","varOrIRIref"],IRI_REF:["storeProperty","varOrIRIref"],PNAME_LN:["storeProperty","varOrIRIref"],PNAME_NS:["storeProperty","varOrIRIref"],a:["storeProperty","a"]},verbPath:{"^":["path"],a:["path"],"!":["path"],"(":["path"],IRI_REF:["path"],PNAME_LN:["path"],PNAME_NS:["path"]},verbSimple:{VAR1:["var"],VAR2:["var"]},whereClause:{"{":["?WHERE","groupGraphPattern"],WHERE:["?WHERE","groupGraphPattern"]}},keywords:/^(GROUP_CONCAT|DATATYPE|BASE|PREFIX|SELECT|CONSTRUCT|DESCRIBE|ASK|FROM|NAMED|ORDER|BY|LIMIT|ASC|DESC|OFFSET|DISTINCT|REDUCED|WHERE|GRAPH|OPTIONAL|UNION|FILTER|GROUP|HAVING|AS|VALUES|LOAD|CLEAR|DROP|CREATE|MOVE|COPY|SILENT|INSERT|DELETE|DATA|WITH|TO|USING|NAMED|MINUS|BIND|LANGMATCHES|LANG|BOUND|SAMETERM|ISIRI|ISURI|ISBLANK|ISLITERAL|REGEX|TRUE|FALSE|UNDEF|ADD|DEFAULT|ALL|SERVICE|INTO|IN|NOT|IRI|URI|BNODE|RAND|ABS|CEIL|FLOOR|ROUND|CONCAT|STRLEN|UCASE|LCASE|ENCODE_FOR_URI|CONTAINS|STRSTARTS|STRENDS|STRBEFORE|STRAFTER|YEAR|MONTH|DAY|HOURS|MINUTES|SECONDS|TIMEZONE|TZ|NOW|UUID|STRUUID|MD5|SHA1|SHA256|SHA384|SHA512|COALESCE|IF|STRLANG|STRDT|ISNUMERIC|SUBSTR|REPLACE|EXISTS|COUNT|SUM|MIN|MAX|AVG|SAMPLE|SEPARATOR|STR|<<|>>)/i,punct:/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,startSymbol:"sparql11",acceptEmpty:!0}},function(t,e,n){!function(t){function e(t,e){this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;t.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}t.showHint=function(t,e,n){if(!e)return t.showHint(n);n&&n.async&&(e.async=!0);var r={hint:e};if(n)for(var i in n)r[i]=n[i];return t.showHint(r)},t.defineExtension("showHint",(function(n){n=function(t,e,n){var r=t.options.hintOptions,i={};for(var o in u)i[o]=u[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(t,e)),i}(this,this.getCursor("start"),n);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var i=0;i<r.length;i++)if(r[i].head.line!=r[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new e(this,n);o.options.hint&&(t.signal(this,"startCompletion",this),o.update(!0))}})),t.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var n=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},r=window.cancelAnimationFrame||clearTimeout;function i(t){return"string"==typeof t?t:t.text}function o(t,e){for(;e&&e!=t;){if("LI"===e.nodeName.toUpperCase()&&e.parentNode==t)return e;e=e.parentNode}}function a(e,n){this.completion=e,this.data=n,this.picked=!1;var r=this,a=e.cm,s=a.getInputField().ownerDocument,u=s.defaultView||s.parentWindow,l=this.hints=s.createElement("ul");l.className="CodeMirror-hints "+e.cm.options.theme,this.selectedHint=n.selectedHint||0;for(var c=n.list,f=0;f<c.length;++f){var d=l.appendChild(s.createElement("li")),h=c[f],p="CodeMirror-hint"+(f!=this.selectedHint?"":" CodeMirror-hint-active");null!=h.className&&(p=h.className+" "+p),d.className=p,h.render?h.render(d,n,h):d.appendChild(s.createTextNode(h.displayText||i(h))),d.hintId=f}var v=e.options.container||s.body,b=a.cursorCoords(e.options.alignWithWord?n.from:null),g=b.left,m=b.bottom,y=!0,E=0,x=0;if(v!==s.body){var T=-1!==["absolute","relative","fixed"].indexOf(u.getComputedStyle(v).position)?v:v.offsetParent,_=T.getBoundingClientRect(),S=s.body.getBoundingClientRect();E=_.left-S.left-T.scrollLeft,x=_.top-S.top-T.scrollTop}l.style.left=g-E+"px",l.style.top=m-x+"px";var w=u.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),A=u.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);v.appendChild(l);var N=l.getBoundingClientRect(),I=N.bottom-A,C=l.scrollHeight>l.clientHeight+1,L=a.getScrollInfo();if(I>0){var R=N.bottom-N.top;if(b.top-(b.bottom-N.top)-R>0)l.style.top=(m=b.top-R-x)+"px",y=!1;else if(R>A){l.style.height=A-5+"px",l.style.top=(m=b.bottom-N.top-x)+"px";var O=a.getCursor();n.from.ch!=O.ch&&(b=a.cursorCoords(O),l.style.left=(g=b.left-E)+"px",N=l.getBoundingClientRect())}}var k,P=N.right-w;if(P>0&&(N.right-N.left>w&&(l.style.width=w-5+"px",P-=N.right-N.left-w),l.style.left=(g=b.left-P-E)+"px"),C)for(var D=l.firstChild;D;D=D.nextSibling)D.style.paddingRight=a.display.nativeBarWidth+"px";return a.addKeyMap(this.keyMap=function(t,e){var n={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(1-e.menuSize(),!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){e.moveFocus(-1)},n["Ctrl-N"]=function(){e.moveFocus(1)});var r=t.options.customKeys,i=r?{}:n;function o(t,r){var o;o="string"!=typeof r?function(t){return r(t,e)}:n.hasOwnProperty(r)?n[r]:r,i[t]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var s=t.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return i}(e,{moveFocus:function(t,e){r.changeActive(r.selectedHint+t,e)},setFocus:function(t){r.changeActive(t)},menuSize:function(){return r.screenAmount()},length:c.length,close:function(){e.close()},pick:function(){r.pick()},data:n})),e.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){k=setTimeout((function(){e.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(k)})),a.on("scroll",this.onScroll=function(){var t=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect(),r=m+L.top-t.top,i=r-(u.pageYOffset||(s.documentElement||s.body).scrollTop);if(y||(i+=l.offsetHeight),i<=n.top||i>=n.bottom)return e.close();l.style.top=r+"px",l.style.left=g+L.left-t.left+"px"}),t.on(l,"dblclick",(function(t){var e=o(l,t.target||t.srcElement);e&&null!=e.hintId&&(r.changeActive(e.hintId),r.pick())})),t.on(l,"click",(function(t){var n=o(l,t.target||t.srcElement);n&&null!=n.hintId&&(r.changeActive(n.hintId),e.options.completeOnSingleClick&&r.pick())})),t.on(l,"mousedown",(function(){setTimeout((function(){a.focus()}),20)})),this.scrollToActive(),t.signal(n,"select",c[this.selectedHint],l.childNodes[this.selectedHint]),!0}function s(t,e,n,r){if(t.async)t(e,r,n);else{var i=t(e,n);i&&i.then?i.then(r):r(i)}}e.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,n){var r=e.list[n],o=this;this.cm.operation((function(){r.hint?r.hint(o.cm,e,r):o.cm.replaceRange(i(r),r.from||e.from,r.to||e.to,"complete"),t.signal(e,"pick",r),o.cm.scrollIntoView()})),this.close()},cursorActivity:function(){this.debounce&&(r(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),i=this.cm.getLine(e.line);if(e.line!=this.startPos.line||i.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(i.charAt(e.ch-1)))this.close();else{var o=this;this.debounce=n((function(){o.update()})),this.widget&&this.widget.disable()}},update:function(t){if(null!=this.tick){var e=this,n=++this.tick;s(this.options.hint,this.cm,this.options,(function(r){e.tick==n&&e.finishUpdate(r,t)}))}},finishUpdate:function(e,n){this.data&&t.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=e,e&&e.list.length&&(r&&1==e.list.length?this.pick(e,0):(this.widget=new a(this,e),t.signal(e,"shown")))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(e,n){if(e>=this.data.list.length?e=n?this.data.list.length-1:0:e<0&&(e=n?0:this.data.list.length-1),this.selectedHint!=e){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" CodeMirror-hint-active","")),(r=this.hints.childNodes[this.selectedHint=e]).className+=" CodeMirror-hint-active",this.scrollToActive(),t.signal(this.data,"select",this.data.list[this.selectedHint],r)}},scrollToActive:function(){var t=this.hints.childNodes[this.selectedHint],e=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-e.offsetTop:t.offsetTop+t.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=t.offsetTop+t.offsetHeight-this.hints.clientHeight+e.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},t.registerHelper("hint","auto",{resolve:function(e,n){var r,i=e.getHelpers(n,"hint");if(i.length){var o=function(t,e,n){var r=function(t,e){if(!t.somethingSelected())return e;for(var n=[],r=0;r<e.length;r++)e[r].supportsSelection&&n.push(e[r]);return n}(t,i);!function i(o){if(o==r.length)return e(null);s(r[o],t,n,(function(t){t&&t.list.length>0?e(t):i(o+1)}))}(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:r})}:t.hint.anyword?function(e,n){return t.hint.anyword(e,n)}:function(){}}}),t.registerHelper("hint","fromList",(function(e,n){var r,i=e.getCursor(),o=e.getTokenAt(i),a=t.Pos(i.line,o.start),s=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var u=[],l=0;l<n.words.length;l++){var c=n.words[l];c.slice(0,r.length)==r&&u.push(c)}if(u.length)return{list:u,from:a,to:s}})),t.commands.autocomplete=t.showHint;var u={hint:t.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};t.defineOption("hintOptions",null)}(n(4))},function(t,e,n){!function(t){var e={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function n(t){for(var n in this.options={},e)this.options[n]=(t&&t.hasOwnProperty(n)?t:e)[n];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}function r(t){var e=t.state.matchHighlighter;(e.active||t.hasFocus())&&o(t,e)}function i(t){var e=t.state.matchHighlighter;e.active||(e.active=!0,o(t,e))}function o(t,e){clearTimeout(e.timeout),e.timeout=setTimeout((function(){u(t)}),e.options.delay)}function a(t,e,n,r){var i=t.state.matchHighlighter;if(t.addOverlay(i.overlay=function(t,e,n){return{token:function(r){if(r.match(t)&&(!e||function(t,e){return!(t.start&&e.test(t.string.charAt(t.start-1))||t.pos!=t.string.length&&e.test(t.string.charAt(t.pos)))}(r,e)))return n;r.next(),r.skipTo(t.charAt(0))||r.skipToEnd()}}}(e,n,r)),i.options.annotateScrollbar&&t.showMatchesOnScrollbar){var o=n?new RegExp((/\w/.test(e.charAt(0))?"\\b":"")+e.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(e.charAt(e.length-1))?"\\b":"")):e;i.matchesonscroll=t.showMatchesOnScrollbar(o,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function s(t){var e=t.state.matchHighlighter;e.overlay&&(t.removeOverlay(e.overlay),e.overlay=null,e.matchesonscroll&&(e.matchesonscroll.clear(),e.matchesonscroll=null))}function u(t){t.operation((function(){var e=t.state.matchHighlighter;if(s(t),t.somethingSelected()||!e.options.showToken){var n=t.getCursor("from"),r=t.getCursor("to");if(n.line==r.line&&(!e.options.wordsOnly||function(t,e,n){if(null!==t.getRange(e,n).match(/^\w+$/)){if(e.ch>0){var r={line:e.line,ch:e.ch-1};if(null===t.getRange(r,e).match(/\W/))return!1}return!(n.ch<t.getLine(e.line).length&&(r={line:n.line,ch:n.ch+1},null===t.getRange(n,r).match(/\W/)))}return!1}(t,n,r))){var i=t.getRange(n,r);e.options.trim&&(i=i.replace(/^\s+|\s+$/g,"")),i.length>=e.options.minChars&&a(t,i,!1,e.options.style)}}else{for(var o=!0===e.options.showToken?/[\w$]/:e.options.showToken,u=t.getCursor(),l=t.getLine(u.line),c=u.ch,f=c;c&&o.test(l.charAt(c-1));)--c;for(;f<l.length&&o.test(l.charAt(f));)++f;c<f&&a(t,l.slice(c,f),o,e.options.style)}}))}t.defineOption("highlightSelectionMatches",!1,(function(e,o,a){if(a&&a!=t.Init&&(s(e),clearTimeout(e.state.matchHighlighter.timeout),e.state.matchHighlighter=null,e.off("cursorActivity",r),e.off("focus",i)),o){var l=e.state.matchHighlighter=new n(o);e.hasFocus()?(l.active=!0,u(e)):e.on("focus",i),e.on("cursorActivity",r)}}))}(n(4),n(141))},function(t,e,n){!function(t){function e(t,e,n,r){this.cm=t,this.options=r;var i={listenForChanges:!1};for(var o in r)i[o]=r[o];i.className||(i.className="CodeMirror-search-match"),this.annotation=t.annotateScrollbar(i),this.query=e,this.caseFold=n,this.gap={from:t.firstLine(),to:t.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var a=this;t.on("change",this.changeHandler=function(t,e){a.onChange(e)})}function n(t,e,n){return t<=e?t:Math.max(e,t+n)}t.defineExtension("showMatchesOnScrollbar",(function(t,n,r){return"string"==typeof r&&(r={className:r}),r||(r={}),new e(this,t,n,r)})),e.prototype.findMatches=function(){if(this.gap){for(var e=0;e<this.matches.length&&!((i=this.matches[e]).from.line>=this.gap.to);e++)i.to.line>=this.gap.from&&this.matches.splice(e--,1);for(var n=this.cm.getSearchCursor(this.query,t.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),r=this.options&&this.options.maxMatches||1e3;n.findNext();){var i;if((i={from:n.from(),to:n.to()}).from.line>=this.gap.to)break;if(this.matches.splice(e++,0,i),this.matches.length>r)break}this.gap=null}},e.prototype.onChange=function(e){var r=e.from.line,i=t.changeEnd(e).line,o=i-e.to.line;if(this.gap?(this.gap.from=Math.min(n(this.gap.from,r,o),e.from.line),this.gap.to=Math.max(n(this.gap.to,r,o),e.from.line)):this.gap={from:e.from.line,to:i+1},o)for(var a=0;a<this.matches.length;a++){var s=this.matches[a],u=n(s.from.line,r,o);u!=s.from.line&&(s.from=t.Pos(u,s.from.ch));var l=n(s.to.line,r,o);l!=s.to.line&&(s.to=t.Pos(l,s.to.ch))}clearTimeout(this.update);var c=this;this.update=setTimeout((function(){c.updateAfterChange()}),250)},e.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},e.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}}(n(4),n(96),n(142))},function(t,e,n){!function(t){function e(t,e){function n(t){clearTimeout(r.doRedraw),r.doRedraw=setTimeout((function(){r.redraw()}),t)}this.cm=t,this.options=e,this.buttonHeight=e.scrollButtonHeight||t.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=t.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var r=this;t.on("refresh",this.resizeHandler=function(){clearTimeout(r.doUpdate),r.doUpdate=setTimeout((function(){r.computeScale()&&n(20)}),100)}),t.on("markerAdded",this.resizeHandler),t.on("markerCleared",this.resizeHandler),!1!==e.listenForChanges&&t.on("changes",this.changeHandler=function(){n(250)})}t.defineExtension("annotateScrollbar",(function(t){return"string"==typeof t&&(t={className:t}),new e(this,t)})),t.defineOption("scrollButtonHeight",0),e.prototype.computeScale=function(){var t=this.cm,e=(t.getWrapperElement().clientHeight-t.display.barHeight-2*this.buttonHeight)/t.getScrollerElement().scrollHeight;if(e!=this.hScale)return this.hScale=e,!0},e.prototype.update=function(t){this.annotations=t,this.redraw()},e.prototype.redraw=function(t){!1!==t&&this.computeScale();var e=this.cm,n=this.hScale,r=document.createDocumentFragment(),i=this.annotations,o=e.getOption("lineWrapping"),a=o&&1.5*e.defaultTextHeight(),s=null,u=null;function l(t,n){return s!=t.line&&(u=e.getLineHandle(s=t.line)),u.widgets&&u.widgets.length||o&&u.height>a?e.charCoords(t,"local")[n?"top":"bottom"]:e.heightAtLine(u,"local")+(n?0:u.height)}var c=e.lastLine();if(e.display.barWidth)for(var f,d=0;d<i.length;d++){var h=i[d];if(!(h.to.line>c)){for(var p=f||l(h.from,!0)*n,v=l(h.to,!1)*n;d<i.length-1&&!(i[d+1].to.line>c)&&!((f=l(i[d+1].from,!0)*n)>v+.9);)v=l((h=i[++d]).to,!1)*n;if(v!=p){var b=Math.max(v-p,3),g=r.appendChild(document.createElement("div"));g.style.cssText="position: absolute; right: 0px; width: "+Math.max(e.display.barWidth-1,2)+"px; top: "+(p+this.buttonHeight)+"px; height: "+b+"px",g.className=this.options.className,h.id&&g.setAttribute("annotation-id",h.id)}}}this.div.textContent="",this.div.appendChild(r)},e.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}}(n(4))},function(t,e,n){!function(t){var e={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=t.Pos;function r(t,n){return"pairs"==n&&"string"==typeof t?t:"object"==typeof t&&null!=t[n]?t[n]:e[n]}t.defineOption("autoCloseBrackets",!1,(function(e,n,a){a&&a!=t.Init&&(e.removeKeyMap(i),e.state.closeBrackets=null),n&&(o(r(n,"pairs")),e.state.closeBrackets=n,e.addKeyMap(i))}));var i={Backspace:function(e){var i=s(e);if(!i||e.getOption("disableInput"))return t.Pass;for(var o=r(i,"pairs"),a=e.listSelections(),l=0;l<a.length;l++){if(!a[l].empty())return t.Pass;var c=u(e,a[l].head);if(!c||o.indexOf(c)%2!=0)return t.Pass}for(l=a.length-1;l>=0;l--){var f=a[l].head;e.replaceRange("",n(f.line,f.ch-1),n(f.line,f.ch+1),"+delete")}},Enter:function(e){var n=s(e),i=n&&r(n,"explode");if(!i||e.getOption("disableInput"))return t.Pass;for(var o=e.listSelections(),a=0;a<o.length;a++){if(!o[a].empty())return t.Pass;var l=u(e,o[a].head);if(!l||i.indexOf(l)%2!=0)return t.Pass}e.operation((function(){var t=e.lineSeparator()||"\n";e.replaceSelection(t+t,null),e.execCommand("goCharLeft"),o=e.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;e.indentLine(r,null,!0),e.indentLine(r+1,null,!0)}}))}};function o(t){for(var e=0;e<t.length;e++){var n=t.charAt(e),r="'"+n+"'";i[r]||(i[r]=a(n))}}function a(e){return function(i){return function(e,i){var o=s(e);if(!o||e.getOption("disableInput"))return t.Pass;var a=r(o,"pairs"),u=a.indexOf(i);if(-1==u)return t.Pass;for(var c,f=r(o,"closeBefore"),d=r(o,"triples"),h=a.charAt(u+1)==i,p=e.listSelections(),v=u%2==0,b=0;b<p.length;b++){var g,m=p[b],y=m.head,E=e.getRange(y,n(y.line,y.ch+1));if(v&&!m.empty())g="surround";else if(!h&&v||E!=i)if(h&&y.ch>1&&d.indexOf(i)>=0&&e.getRange(n(y.line,y.ch-2),y)==i+i){if(y.ch>2&&/\bstring/.test(e.getTokenTypeAt(n(y.line,y.ch-2))))return t.Pass;g="addFour"}else if(h){var x=0==y.ch?" ":e.getRange(n(y.line,y.ch-1),y);if(t.isWordChar(E)||x==i||t.isWordChar(x))return t.Pass;g="both"}else{if(!v||!(0===E.length||/\s/.test(E)||f.indexOf(E)>-1))return t.Pass;g="both"}else g=h&&l(e,y)?"both":d.indexOf(i)>=0&&e.getRange(y,n(y.line,y.ch+3))==i+i+i?"skipThree":"skip";if(c){if(c!=g)return t.Pass}else c=g}var T=u%2?a.charAt(u-1):i,_=u%2?i:a.charAt(u+1);e.operation((function(){if("skip"==c)e.execCommand("goCharRight");else if("skipThree"==c)for(var r=0;r<3;r++)e.execCommand("goCharRight");else if("surround"==c){var i=e.getSelections();for(r=0;r<i.length;r++)i[r]=T+i[r]+_;for(e.replaceSelections(i,"around"),i=e.listSelections().slice(),r=0;r<i.length;r++)i[r]=(a=t.cmpPos((o=i[r]).anchor,o.head)>0,{anchor:new n(o.anchor.line,o.anchor.ch+(a?-1:1)),head:new n(o.head.line,o.head.ch+(a?1:-1))});e.setSelections(i)}else"both"==c?(e.replaceSelection(T+_,null),e.triggerElectric(T+_),e.execCommand("goCharLeft")):"addFour"==c&&(e.replaceSelection(T+T+T+T,"before"),e.execCommand("goCharRight"));var o,a}))}(i,e)}}function s(t){var e=t.state.closeBrackets;return!e||e.override?e:t.getModeAt(t.getCursor()).closeBrackets||e}function u(t,e){var r=t.getRange(n(e.line,e.ch-1),n(e.line,e.ch+1));return 2==r.length?r:null}function l(t,e){var r=t.getTokenAt(n(e.line,e.ch+1));return/\bstring/.test(r.type)&&r.start==e.ch&&(0==e.ch||!/\bstring/.test(t.getTokenTypeAt(e)))}o(e.pairs+"`")}(n(4))},function(t,e,n){!function(t){t.runMode=function(e,n,r,i){var o=t.getMode(t.defaults,n),a=i&&i.tabSize||t.defaults.tabSize;if(r.appendChild){var s=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<9),u=r,l=0;u.innerHTML="",r=function(t,e){if("\n"==t)return u.appendChild(document.createTextNode(s?"\r":t)),void(l=0);for(var n="",r=0;;){var i=t.indexOf("\t",r);if(-1==i){n+=t.slice(r),l+=t.length-r;break}l+=i-r,n+=t.slice(r,i);var o=a-l%a;l+=o;for(var c=0;c<o;++c)n+=" ";r=i+1}if(e){var f=u.appendChild(document.createElement("span"));f.className="cm-"+e.replace(/ +/g," cm-"),f.appendChild(document.createTextNode(n))}else u.appendChild(document.createTextNode(n))}}for(var c=t.splitLines(e),f=i&&i.state||t.startState(o),d=0,h=c.length;d<h;++d){d&&r("\n");var p=new t.StringStream(c[d],null,{lookAhead:function(t){return c[d+t]},baseToken:function(){}});for(!p.string&&o.blankLine&&o.blankLine(f);!p.eol();){var v=o.token(p,f);r(p.current(),v,d,p.start,f),p.start=p.pos}}}}(n(4))},function(){},function(){},function(t,e,n){(function(t){n.d(e,"a",(function(){return d}));var r=n(21),i=n(148),o=n.n(i),a=r.a.xsd,s=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,u={"\\":"\\","'":"'",'"':'"',n:"\n",r:"\r",t:"\t",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},l=/[\x00-\x20<>\\"\{\}\|\^\`]/,c={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},f=/$0^/,d=function(){function e(t){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<])/,this._keyword=/^@[a-z]+(?=[\s#<:])/i,this._sparqlKeyword=/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s()\[\]\{\}"'<])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,this._lineMode=!!(t=t||{}).lineMode)for(var n in this._n3Mode=!1,this)!(n in c)&&this[n]instanceof RegExp&&(this[n]=f);else this._n3Mode=!1!==t.n3;this._comments=!!t.comments,this._literalClosingPos=0}var n;return(n=[{key:"_tokenizeToEnd",value:function(t,e){for(var n=this._input,r=this._comments;;){for(var i,o;i=this._newline.exec(n);)r&&(o=this._comment.exec(i[0]))&&t(null,{line:this._line,type:"comment",value:o[1],prefix:""}),n=n.substr(i[0].length,n.length),this._line++;if(!i&&(i=this._whitespace.exec(n))&&(n=n.substr(i[0].length,n.length)),this._endOfFile.test(n))return e&&(r&&(o=this._comment.exec(n))&&t(null,{line:this._line,type:"comment",value:o[1],prefix:""}),t(n=null,{line:this._line,type:"eof",value:"",prefix:""})),this._input=n;var s=this._line,u="",c="",f="",d=n[0],h=null,p=0,v=!1;switch(d){case"^":if(n.length<3)break;if("^"!==n[1]){this._n3Mode&&(p=1,u="^");break}if(this._previousMarker="^^","<"!==(n=n.substr(2))[0]){v=!0;break}case"<":if(h=this._unescapedIri.exec(n))u="IRI",c=h[1];else if(h=this._iri.exec(n)){if(null===(c=this._unescape(h[1]))||l.test(c))return y(this);u="IRI"}else this._n3Mode&&n.length>1&&"="===n[1]&&(u="inverse",p=2,c=">");break;case"_":((h=this._blank.exec(n))||e&&(h=this._blank.exec(n+" ")))&&(u="blank",f="_",c=h[1]);break;case'"':if(h=this._simpleQuotedString.exec(n))c=h[1];else{var b=this._parseLiteral(n);if(p=b.matchLength,null===(c=b.value))return y(this)}null===h&&0===p||(u="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(h=this._simpleApostropheString.exec(n))c=h[1];else{var g=this._parseLiteral(n);if(p=g.matchLength,null===(c=g.value))return y(this)}null===h&&0===p||(u="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(h=this._variable.exec(n))&&(u="var",c=h[0]);break;case"@":"literal"===this._previousMarker&&(h=this._langcode.exec(n))?(u="langcode",c=h[1]):(h=this._keyword.exec(n))&&(u=h[0]);break;case".":if(1===n.length?e:n[1]<"0"||n[1]>"9"){u=".",p=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(h=this._number.exec(n)||e&&(h=this._number.exec(n+" ")))&&(u="literal",c=h[0],f="string"==typeof h[1]?a.double:"string"==typeof h[2]?a.decimal:a.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(h=this._sparqlKeyword.exec(n))?u=h[0].toUpperCase():v=!0;break;case"f":case"t":(h=this._boolean.exec(n))?(u="literal",c=h[0],f=a.boolean):v=!0;break;case"a":(h=this._shortPredicates.exec(n))?(u="abbreviation",c="a"):v=!0;break;case"=":this._n3Mode&&n.length>1&&(u="abbreviation",">"!==n[1]?(p=1,c="="):(p=2,c=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"{":case"}":this._lineMode||(p=1,u=d);break;default:v=!0}if(v&&("@prefix"!==this._previousMarker&&"PREFIX"!==this._previousMarker||!(h=this._prefix.exec(n))?((h=this._prefixed.exec(n))||e&&(h=this._prefixed.exec(n+" ")))&&(u="prefixed",f=h[1]||"",c=this._unescape(h[2])):(u="prefix",c=h[1]||"")),"^^"===this._previousMarker)switch(u){case"prefixed":u="type";break;case"IRI":u="typeIRI";break;default:u=""}if(!u)return e||!/^'''|^"""/.test(n)&&/\n|\r/.test(n)?y(this):this._input=n;var m={line:s,type:u,value:c,prefix:f};t(null,m),this.previousToken=m,this._previousMarker=u,n=n.substr(p||h[0].length,n.length)}function y(e){t(e._syntaxError(/^\S*/.exec(n)[0]))}}},{key:"_unescape",value:function(t){var e=!1,n=t.replace(s,(function(t,n,r,i){if("string"==typeof n)return String.fromCharCode(Number.parseInt(n,16));if("string"==typeof r){var o=Number.parseInt(r,16);return o<=65535?String.fromCharCode(Number.parseInt(r,16)):String.fromCharCode(55296+((o-=65536)>>10),56320+(1023&o))}return i in u?u[i]:(e=!0,"")}));return e?null:n}},{key:"_parseLiteral",value:function(t){if(t.length>=3){for(var e=t.match(/^(?:"""|"|'''|'|)/)[0],n=e.length,r=Math.max(this._literalClosingPos,n);(r=t.indexOf(e,r))>0;){for(var i=0;"\\"===t[r-i-1];)i++;if(i%2==0){var o=t.substring(n,r),a=o.split(/\r\n|\r|\n/).length-1,s=r+n;if(1===n&&0!==a||3===n&&this._lineMode)break;return this._line+=a,{value:this._unescape(o),matchLength:s}}r++}this._literalClosingPos=t.length-n+1}return{value:"",matchLength:0}}},{key:"_syntaxError",value:function(t){this._input=null;var e=new Error('Unexpected "'+t+'" on line '+this._line+".");return e.context={token:void 0,line:this._line,previousToken:this.previousToken},e}},{key:"tokenize",value:function(e,n){var r=this;if(this._line=1,"string"==typeof e){if(this._input=e,"function"!=typeof n){var i,a=[];if(this._tokenizeToEnd((function(t,e){t?i=t:a.push(e)}),!0),i)throw i;return a}o()((function(){return r._tokenizeToEnd(n,!0)}))}else this._input="",this._pendingBuffer=null,"function"==typeof e.setEncoding&&e.setEncoding("utf8"),e.on("data",(function(e){null!==r._input&&0!==e.length&&(r._pendingBuffer&&(e=t.concat([r._pendingBuffer,e]),r._pendingBuffer=null),128&e[e.length-1]?r._pendingBuffer=e:(r._input+=e,r._tokenizeToEnd(n,!1)))})),e.on("end",(function(){null!==r._input&&r._tokenizeToEnd(n,!0)})),e.on("error",n)}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(e.prototype,n),e}()}).call(this,n(156).Buffer)},function(t){let e;t.exports="function"==typeof queueMicrotask?queueMicrotask:t=>(e||(e=Promise.resolve())).then(t).catch((t=>setTimeout((()=>{throw t}),0)))},function(t,e){var n,r;void 0===(r="function"==typeof(n=function t(){var e="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{},n=!e.document&&!!e.postMessage,r=n&&/blob:/i.test((e.location||{}).protocol),i={},o=0,a={parse:function(n,r){var s=(r=r||{}).dynamicTyping||!1;if(x(s)&&(r.dynamicTypingFunction=s,s={}),r.dynamicTyping=s,r.transform=!!x(r.transform)&&r.transform,r.worker&&a.WORKERS_SUPPORTED){var u=function(){if(!a.WORKERS_SUPPORTED)return!1;var n,r,s=(n=e.URL||e.webkitURL||null,r=t.toString(),a.BLOB_URL||(a.BLOB_URL=n.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),u=new e.Worker(s);return u.onmessage=b,u.id=o++,i[u.id]=u}();return u.userStep=r.step,u.userChunk=r.chunk,u.userComplete=r.complete,u.userError=r.error,r.step=x(r.step),r.chunk=x(r.chunk),r.complete=x(r.complete),r.error=x(r.error),delete r.worker,void u.postMessage({input:n,config:r,workerId:u.id})}var h=null;return"string"==typeof n?h=r.download?new l(r):new f(r):!0===n.readable&&x(n.read)&&x(n.on)?h=new d(r):(e.File&&n instanceof File||n instanceof Object)&&(h=new c(r)),h.stream(n)},unparse:function(t,e){var n=!1,r=!0,i=",",o="\r\n",s='"',u=s+s,l=!1,c=null,f=!1;!function(){if("object"==typeof e){if("string"!=typeof e.delimiter||a.BAD_DELIMITERS.filter((function(t){return-1!==e.delimiter.indexOf(t)})).length||(i=e.delimiter),("boolean"==typeof e.quotes||"function"==typeof e.quotes||Array.isArray(e.quotes))&&(n=e.quotes),"boolean"!=typeof e.skipEmptyLines&&"string"!=typeof e.skipEmptyLines||(l=e.skipEmptyLines),"string"==typeof e.newline&&(o=e.newline),"string"==typeof e.quoteChar&&(s=e.quoteChar),"boolean"==typeof e.header&&(r=e.header),Array.isArray(e.columns)){if(0===e.columns.length)throw new Error("Option columns is empty");c=e.columns}void 0!==e.escapeChar&&(u=e.escapeChar+s),"boolean"==typeof e.escapeFormulae&&(f=e.escapeFormulae)}}();var d=new RegExp(p(s),"g");if("string"==typeof t&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return h(null,t,l);if("object"==typeof t[0])return h(c||Object.keys(t[0]),t,l)}else if("object"==typeof t)return"string"==typeof t.data&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:"object"==typeof t.data[0]?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||"object"==typeof t.data[0]||(t.data=[t.data])),h(t.fields||[],t.data||[],l);throw new Error("Unable to serialize unrecognized input");function h(t,e,n){var a="";"string"==typeof t&&(t=JSON.parse(t)),"string"==typeof e&&(e=JSON.parse(e));var s=Array.isArray(t)&&0<t.length,u=!Array.isArray(e[0]);if(s&&r){for(var l=0;l<t.length;l++)0<l&&(a+=i),a+=v(t[l],l);0<e.length&&(a+=o)}for(var c=0;c<e.length;c++){var f=s?t.length:e[c].length,d=!1,h=s?0===Object.keys(e[c]).length:0===e[c].length;if(n&&!s&&(d="greedy"===n?""===e[c].join("").trim():1===e[c].length&&0===e[c][0].length),"greedy"===n&&s){for(var p=[],b=0;b<f;b++)p.push(e[c][u?t[b]:b]);d=""===p.join("").trim()}if(!d){for(var g=0;g<f;g++)0<g&&!h&&(a+=i),a+=v(e[c][s&&u?t[g]:g],g);c<e.length-1&&(!n||0<f&&!h)&&(a+=o)}}return a}function v(t,e){if(null==t)return"";if(t.constructor===Date)return JSON.stringify(t).slice(1,25);!0===f&&"string"==typeof t&&null!==t.match(/^[=+\-@].*$/)&&(t="'"+t);var r=t.toString().replace(d,u);return"boolean"==typeof n&&n||"function"==typeof n&&n(t,e)||Array.isArray(n)&&n[e]||function(t,e){for(var n=0;n<e.length;n++)if(-1<t.indexOf(e[n]))return!0;return!1}(r,a.BAD_DELIMITERS)||-1<r.indexOf(i)||" "===r.charAt(0)||" "===r.charAt(r.length-1)?s+r+s:r}}};if(a.RECORD_SEP=String.fromCharCode(30),a.UNIT_SEP=String.fromCharCode(31),a.BYTE_ORDER_MARK="\ufeff",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!n&&!!e.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=v,a.ParserHandle=h,a.NetworkStreamer=l,a.FileStreamer=c,a.StringStreamer=f,a.ReadableStreamStreamer=d,e.jQuery){var s=e.jQuery;s.fn.parse=function(t){var n=t.config||{},r=[];return this.each((function(){if("INPUT"!==s(this).prop("tagName").toUpperCase()||"file"!==s(this).attr("type").toLowerCase()||!e.FileReader||!this.files||0===this.files.length)return!0;for(var t=0;t<this.files.length;t++)r.push({file:this.files[t],inputElem:this,instanceConfig:s.extend({},n)})})),i(),this;function i(){if(0!==r.length){var e,n,i,u=r[0];if(x(t.before)){var l=t.before(u.file,u.inputElem);if("object"==typeof l){if("abort"===l.action)return e=u.file,n=u.inputElem,i=l.reason,void(x(t.error)&&t.error({name:"AbortError"},e,n,i));if("skip"===l.action)return void o();"object"==typeof l.config&&(u.instanceConfig=s.extend(u.instanceConfig,l.config))}else if("skip"===l)return void o()}var c=u.instanceConfig.complete;u.instanceConfig.complete=function(t){x(c)&&c(t,u.file,u.inputElem),o()},a.parse(u.file,u.instanceConfig)}else x(t.complete)&&t.complete()}function o(){r.splice(0,1),i()}}}function u(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(t){var e=y(t);e.chunkSize=parseInt(e.chunkSize),t.step||t.chunk||(e.chunkSize=null),this._handle=new h(e),(this._handle.streamer=this)._config=e}.call(this,t),this.parseChunk=function(t,n){if(this.isFirstChunk&&x(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(t);void 0!==i&&(t=i)}this.isFirstChunk=!1,this._halted=!1;var o=this._partialLine+t;this._partialLine="";var s=this._handle.parse(o,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var u=s.meta.cursor;this._finished||(this._partialLine=o.substring(u-this._baseIndex),this._baseIndex=u),s&&s.data&&(this._rowCount+=s.data.length);var l=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(r)e.postMessage({results:s,workerId:a.WORKER_ID,finished:l});else if(x(this._config.chunk)&&!n){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);s=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!l||!x(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),l||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(t){x(this._config.error)?this._config.error(t):r&&this._config.error&&e.postMessage({workerId:a.WORKER_ID,error:t,finished:!1})}}function l(t){var e;(t=t||{}).chunkSize||(t.chunkSize=a.RemoteChunkSize),u.call(this,t),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(t){this._input=t,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),n||(e.onload=E(this._chunkLoaded,this),e.onerror=E(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var t=this._config.downloadRequestHeaders;for(var r in t)e.setRequestHeader(r,t[r])}this._config.chunkSize&&e.setRequestHeader("Range","bytes="+this._start+"-"+(this._start+this._config.chunkSize-1));try{e.send(this._config.downloadRequestBody)}catch(t){this._chunkError(t.message)}n&&0===e.status&&this._chunkError()}},this._chunkLoaded=function(){4===e.readyState&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:e.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(t){var e=t.getResponseHeader("Content-Range");return null===e?-1:parseInt(e.substring(e.lastIndexOf("/")+1))}(e),this.parseChunk(e.responseText)))},this._chunkError=function(t){this._sendError(new Error(e.statusText||t))}}function c(t){var e,n;(t=t||{}).chunkSize||(t.chunkSize=a.LocalChunkSize),u.call(this,t);var r="undefined"!=typeof FileReader;this.stream=function(t){this._input=t,n=t.slice||t.webkitSlice||t.mozSlice,r?((e=new FileReader).onload=E(this._chunkLoaded,this),e.onerror=E(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var t=this._input;if(this._config.chunkSize){var i=Math.min(this._start+this._config.chunkSize,this._input.size);t=n.call(t,this._start,i)}var o=e.readAsText(t,this._config.encoding);r||this._chunkLoaded({target:{result:o}})},this._chunkLoaded=function(t){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(t.target.result)},this._chunkError=function(){this._sendError(e.error)}}function f(t){var e;u.call(this,t=t||{}),this.stream=function(t){return e=t,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var t,n=this._config.chunkSize;return n?(t=e.substring(0,n),e=e.substring(n)):(t=e,e=""),this._finished=!e,this.parseChunk(t)}}}function d(t){u.call(this,t=t||{});var e=[],n=!0,r=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(t){this._input=t,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===e.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):n=!0},this._streamData=E((function(t){try{e.push("string"==typeof t?t:t.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(t){this._streamError(t)}}),this),this._streamError=E((function(t){this._streamCleanUp(),this._sendError(t)}),this),this._streamEnd=E((function(){this._streamCleanUp(),r=!0,this._streamData("")}),this),this._streamCleanUp=E((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function h(t){var e,n,r,i=Math.pow(2,53),o=-i,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,l=this,c=0,f=0,d=!1,h=!1,b=[],g={data:[],errors:[],meta:{}};if(x(t.step)){var m=t.step;t.step=function(e){if(g=e,_())T();else{if(T(),0===g.data.length)return;c+=e.data.length,t.preview&&c>t.preview?n.abort():(g.data=g.data[0],m(g,l))}}}function E(e){return"greedy"===t.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function T(){if(g&&r&&(w("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),r=!1),t.skipEmptyLines)for(var e=0;e<g.data.length;e++)E(g.data[e])&&g.data.splice(e--,1);return _()&&function(){if(g)if(Array.isArray(g.data[0])){for(var e=0;_()&&e<g.data.length;e++)g.data[e].forEach(n);g.data.splice(0,1)}else g.data.forEach(n);function n(e,n){x(t.transformHeader)&&(e=t.transformHeader(e,n)),b.push(e)}}(),function(){if(!g||!t.header&&!t.dynamicTyping&&!t.transform)return g;function e(e,n){var r,i=t.header?{}:[];for(r=0;r<e.length;r++){var o=r,a=e[r];t.header&&(o=r>=b.length?"__parsed_extra":b[r]),t.transform&&(a=t.transform(a,o)),a=S(o,a),"__parsed_extra"===o?(i[o]=i[o]||[],i[o].push(a)):i[o]=a}return t.header&&(r>b.length?w("FieldMismatch","TooManyFields","Too many fields: expected "+b.length+" fields but parsed "+r,f+n):r<b.length&&w("FieldMismatch","TooFewFields","Too few fields: expected "+b.length+" fields but parsed "+r,f+n)),i}var n=1;return!g.data.length||Array.isArray(g.data[0])?(g.data=g.data.map(e),n=g.data.length):g.data=e(g.data,0),t.header&&g.meta&&(g.meta.fields=b),f+=n,g}()}function _(){return t.header&&0===b.length}function S(e,n){return r=e,t.dynamicTypingFunction&&void 0===t.dynamicTyping[r]&&(t.dynamicTyping[r]=t.dynamicTypingFunction(r)),!0===(t.dynamicTyping[r]||t.dynamicTyping)?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&(function(t){if(s.test(t)){var e=parseFloat(t);if(o<e&&e<i)return!0}return!1}(n)?parseFloat(n):u.test(n)?new Date(n):""===n?null:n):n;var r}function w(t,e,n,r){var i={type:t,code:e,message:n};void 0!==r&&(i.row=r),g.errors.push(i)}this.parse=function(i,o,s){if(t.newline||(t.newline=function(t,e){t=t.substring(0,1048576);var n=new RegExp(p(e)+"([^]*?)"+p(e),"gm"),r=(t=t.replace(n,"")).split("\r"),i=t.split("\n");if(1===r.length||1<i.length&&i[0].length<r[0].length)return"\n";for(var o=0,a=0;a<r.length;a++)"\n"===r[a][0]&&o++;return o>=r.length/2?"\r\n":"\r"}(i,t.quoteChar||'"')),r=!1,t.delimiter)x(t.delimiter)&&(t.delimiter=t.delimiter(i),g.meta.delimiter=t.delimiter);else{var u=function(e,n,r,i,o){var s,u,l,c;o=o||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var f=0;f<o.length;f++){var d=o[f],h=0,p=0,b=0;l=void 0;for(var g=new v({comments:i,delimiter:d,newline:n,preview:10}).parse(e),m=0;m<g.data.length;m++)if(r&&E(g.data[m]))b++;else{var y=g.data[m].length;p+=y,void 0!==l?0<y&&(h+=Math.abs(y-l),l=y):l=y}0<g.data.length&&(p/=g.data.length-b),(void 0===u||h<=u)&&(void 0===c||c<p)&&1.99<p&&(u=h,s=d,c=p)}return{successful:!!(t.delimiter=s),bestDelimiter:s}}(i,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess);u.successful?t.delimiter=u.bestDelimiter:(r=!0,t.delimiter=a.DefaultDelimiter),g.meta.delimiter=t.delimiter}var l=y(t);return t.preview&&t.header&&l.preview++,e=i,n=new v(l),g=n.parse(e,o,s),T(),d?{meta:{paused:!0}}:g||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,n.abort(),e=x(t.chunk)?"":e.substring(n.getCharIndex())},this.resume=function(){l.streamer._halted?(d=!1,l.streamer.parseChunk(e,!0)):setTimeout(l.resume,3)},this.aborted=function(){return h},this.abort=function(){h=!0,n.abort(),g.meta.aborted=!0,x(t.complete)&&t.complete(g),e=""}}function p(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(t){var e,n=(t=t||{}).delimiter,r=t.newline,i=t.comments,o=t.step,s=t.preview,u=t.fastMode,l=e=void 0===t.quoteChar?'"':t.quoteChar;if(void 0!==t.escapeChar&&(l=t.escapeChar),("string"!=typeof n||-1<a.BAD_DELIMITERS.indexOf(n))&&(n=","),i===n)throw new Error("Comment character same as delimiter");!0===i?i="#":("string"!=typeof i||-1<a.BAD_DELIMITERS.indexOf(i))&&(i=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var c=0,f=!1;this.parse=function(t,a,d){if("string"!=typeof t)throw new Error("Input must be a string");var h=t.length,v=n.length,b=r.length,g=i.length,m=x(o),y=[],E=[],T=[],_=c=0;if(!t)return M();if(u||!1!==u&&-1===t.indexOf(e)){for(var S=t.split(r),w=0;w<S.length;w++){if(c+=(T=S[w]).length,w!==S.length-1)c+=r.length;else if(d)return M();if(!i||T.substring(0,g)!==i){if(m){if(y=[],O(T.split(n)),j(),f)return M()}else O(T.split(n));if(s&&s<=w)return y=y.slice(0,s),M(!0)}}return M()}for(var A=t.indexOf(n,c),N=t.indexOf(r,c),I=new RegExp(p(l)+p(e),"g"),C=t.indexOf(e,c);;)if(t[c]!==e)if(i&&0===T.length&&t.substring(c,c+g)===i){if(-1===N)return M();N=t.indexOf(r,c=N+b),A=t.indexOf(n,c)}else if(-1!==A&&(A<N||-1===N))T.push(t.substring(c,A)),A=t.indexOf(n,c=A+v);else{if(-1===N)break;if(T.push(t.substring(c,N)),D(N+b),m&&(j(),f))return M();if(s&&y.length>=s)return M(!0)}else for(C=c,c++;;){if(-1===(C=t.indexOf(e,C+1)))return d||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:y.length,index:c}),P();if(C===h-1)return P(t.substring(c,C).replace(I,e));if(e!==l||t[C+1]!==l){if(e===l||0===C||t[C-1]!==l){-1!==A&&A<C+1&&(A=t.indexOf(n,C+1)),-1!==N&&N<C+1&&(N=t.indexOf(r,C+1));var L=k(-1===N?A:Math.min(A,N));if(t[C+1+L]===n){T.push(t.substring(c,C).replace(I,e)),t[c=C+1+L+v]!==e&&(C=t.indexOf(e,c)),A=t.indexOf(n,c),N=t.indexOf(r,c);break}var R=k(N);if(t.substring(C+1+R,C+1+R+b)===r){if(T.push(t.substring(c,C).replace(I,e)),D(C+1+R+b),A=t.indexOf(n,c),C=t.indexOf(e,c),m&&(j(),f))return M();if(s&&y.length>=s)return M(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:y.length,index:c}),C++}}else C++}return P();function O(t){y.push(t),_=c}function k(e){var n=0;if(-1!==e){var r=t.substring(C+1,e);r&&""===r.trim()&&(n=r.length)}return n}function P(e){return d||(void 0===e&&(e=t.substring(c)),T.push(e),c=h,O(T),m&&j()),M()}function D(e){c=e,O(T),T=[],N=t.indexOf(r,c)}function M(t){return{data:y,errors:E,meta:{delimiter:n,linebreak:r,aborted:f,truncated:!!t,cursor:_+(a||0)}}}function j(){o(M()),y=[],E=[]}},this.abort=function(){f=!0},this.getCharIndex=function(){return c}}function b(t){var e=t.data,n=i[e.workerId],r=!1;if(e.error)n.userError(e.error,e.file);else if(e.results&&e.results.data){var o={abort:function(){r=!0,g(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:m,resume:m};if(x(n.userStep)){for(var a=0;a<e.results.data.length&&(n.userStep({data:e.results.data[a],errors:e.results.errors,meta:e.results.meta},o),!r);a++);delete e.results}else x(n.userChunk)&&(n.userChunk(e.results,o,e.file),delete e.results)}e.finished&&!r&&g(e.workerId,e.results)}function g(t,e){var n=i[t];x(n.userComplete)&&n.userComplete(e),n.terminate(),delete i[t]}function m(){throw new Error("Not implemented.")}function y(t){if("object"!=typeof t||null===t)return t;var e=Array.isArray(t)?[]:{};for(var n in t)e[n]=y(t[n]);return e}function E(t,e){return function(){t.apply(e,arguments)}}function x(t){return"function"==typeof t}return r&&(e.onmessage=function(t){var n=t.data;if(void 0===a.WORKER_ID&&n&&(a.WORKER_ID=n.workerId),"string"==typeof n.input)e.postMessage({workerId:a.WORKER_ID,results:a.parse(n.input,n.config),finished:!0});else if(e.File&&n.input instanceof File||n.input instanceof Object){var r=a.parse(n.input,n.config);r&&e.postMessage({workerId:a.WORKER_ID,results:r,finished:!0})}}),(l.prototype=Object.create(u.prototype)).constructor=l,(c.prototype=Object.create(u.prototype)).constructor=c,(f.prototype=Object.create(f.prototype)).constructor=f,(d.prototype=Object.create(u.prototype)).constructor=d,a})?n.apply(e,[]):n)||(t.exports=r)},function(t,e,n){var r=n(122),i=n(98),o=n(89),a=n(123);t.exports=function(t){return r(t)||i(t)||o(t)||a()}},function(t,e,n){(function(t){!function(e){function n(){}function r(){r.init.call(this)}function i(t){return void 0===t._maxListeners?r.defaultMaxListeners:t._maxListeners}function o(t,e,n){if(e)t.call(n);else for(var r=t.length,i=h(t,r),o=0;o<r;++o)i[o].call(n)}function a(t,e,n,r){if(e)t.call(n,r);else for(var i=t.length,o=h(t,i),a=0;a<i;++a)o[a].call(n,r)}function s(t,e,n,r,i){if(e)t.call(n,r,i);else for(var o=t.length,a=h(t,o),s=0;s<o;++s)a[s].call(n,r,i)}function u(t,e,n,r,i,o){if(e)t.call(n,r,i,o);else for(var a=t.length,s=h(t,a),u=0;u<a;++u)s[u].call(n,r,i,o)}function l(t,e,n,r){if(e)t.apply(n,r);else for(var i=t.length,o=h(t,i),a=0;a<i;++a)o[a].apply(n,r)}function c(t,e,r,o){var a,s,u,l;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((s=t._events)?(s.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),s=t._events),u=s[e]):(s=t._events=new n,t._eventsCount=0),u){if("function"==typeof u?u=s[e]=o?[r,u]:[u,r]:o?u.unshift(r):u.push(r),!u.warned&&(a=i(t))&&a>0&&u.length>a){u.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+e+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=u.length,l=c,"function"==typeof console.warn?console.warn(l):console.log(l)}}else u=s[e]=r,++t._eventsCount;return t}function f(t,e,n){var r=!1;function i(){t.removeListener(e,i),r||(r=!0,n.apply(t,arguments))}return i.listener=n,i}function d(t){var e=this._events;if(e){var n=e[t];if("function"==typeof n)return 1;if(n)return n.length}return 0}function h(t,e){for(var n=new Array(e);e--;)n[e]=t[e];return n}n.prototype=Object.create(null),r.EventEmitter=r,r.usingDomains=!1,r.prototype.domain=void 0,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.init=function(){this.domain=null,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new n,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},r.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},r.prototype.getMaxListeners=function(){return i(this)},r.prototype.emit=function(t){var e,n,r,i,c,f,d,h="error"===t;if(f=this._events)h=h&&null==f.error;else if(!h)return!1;if(d=this.domain,h){if(e=arguments[1],!d){if(e instanceof Error)throw e;var p=new Error('Uncaught, unspecified "error" event. ('+e+")");throw p.context=e,p}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=d,e.domainThrown=!1,d.emit("error",e),!1}if(!(n=f[t]))return!1;var v="function"==typeof n;switch(r=arguments.length){case 1:o(n,v,this);break;case 2:a(n,v,this,arguments[1]);break;case 3:s(n,v,this,arguments[1],arguments[2]);break;case 4:u(n,v,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),c=1;c<r;c++)i[c-1]=arguments[c];l(n,v,this,i)}return!0},r.prototype.addListener=function(t,e){return c(this,t,e,!1)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(t,e){return c(this,t,e,!0)},r.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,f(this,t,e)),this},r.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,f(this,t,e)),this},r.prototype.removeListener=function(t,e){var r,i,o,a,s;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(r=i[t]))return this;if(r===e||r.listener&&r.listener===e)0==--this._eventsCount?this._events=new n:(delete i[t],i.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(o=-1,a=r.length;a-- >0;)if(r[a]===e||r[a].listener&&r[a].listener===e){s=r[a].listener,o=a;break}if(o<0)return this;if(1===r.length){if(r[0]=void 0,0==--this._eventsCount)return this._events=new n,this;delete i[t]}else!function(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}(r,o);i.removeListener&&this.emit("removeListener",t,s||e)}return this},r.prototype.removeAllListeners=function(t){var e,r;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=new n,this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=new n:delete r[t]),this;if(0===arguments.length){for(var i,o=Object.keys(r),a=0;a<o.length;++a)"removeListener"!==(i=o[a])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=new n,this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(e)do{this.removeListener(t,e[e.length-1])}while(e[0]);return this},r.prototype.listeners=function(t){var e,n=this._events;return n&&(e=n[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(e):[]},r.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},r.prototype.listenerCount=d,r.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var p=void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},v=[],b=[],g="undefined"!=typeof Uint8Array?Uint8Array:Array,m=!1;function y(){m=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=t.length;e<n;++e)v[e]=t[e],b[t.charCodeAt(e)]=e;b["-".charCodeAt(0)]=62,b["_".charCodeAt(0)]=63}function E(t,e,n){for(var r,i=[],o=e;o<n;o+=3)i.push(v[(r=(t[o]<<16)+(t[o+1]<<8)+t[o+2])>>18&63]+v[r>>12&63]+v[r>>6&63]+v[63&r]);return i.join("")}function x(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,d=n?-1:1,h=t[e+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+t[e+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+f],f+=d,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)}function T(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[n+h]=255&a,h+=p,a/=256,l-=8);t[n+h-p]|=128*v}var _={}.toString,S=Array.isArray||function(t){return"[object Array]"==_.call(t)};function w(){return N.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function A(t,e){if(w()<e)throw new RangeError("Invalid typed array length");return N.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=N.prototype:(null===t&&(t=new N(e)),t.length=e),t}function N(t,e,n){if(!(N.TYPED_ARRAY_SUPPORT||this instanceof N))return new N(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return L(this,t)}return I(this,t,e,n)}function I(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),N.TYPED_ARRAY_SUPPORT?(t=e).__proto__=N.prototype:t=R(t,e),t}(t,e,n,r):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!N.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|P(e,n),i=(t=A(t,r)).write(e,n);return i!==r&&(t=t.slice(0,i)),t}(t,e,n):function(t,e){if(k(e)){var n=0|O(e.length);return 0===(t=A(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?A(t,0):R(t,e);if("Buffer"===e.type&&S(e.data))return R(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function C(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function L(t,e){if(C(e),t=A(t,e<0?0:0|O(e)),!N.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function R(t,e){var n=e.length<0?0:0|O(e.length);t=A(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function O(t){if(t>=w())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w().toString(16)+" bytes");return 0|t}function k(t){return!(null==t||!t._isBuffer)}function P(t,e){if(k(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return ot(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return at(t).length;default:if(r)return ot(t).length;e=(""+e).toLowerCase(),r=!0}}function D(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Q(this,e,n);case"utf8":case"utf-8":return $(this,e,n);case"ascii":return Y(this,e,n);case"latin1":case"binary":return W(this,e,n);case"base64":return z(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function M(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function j(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=N.from(e,r)),k(e))return 0===e.length?-1:q(t,e,n,r,i);if("number"==typeof e)return e&=255,N.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):q(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function q(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(t,o)===l(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(l(t,o+d)!==l(e,d)){f=!1;break}if(f)return o}return-1}function F(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function U(t,e,n,r){return st(ot(e,t.length-n),t,n,r)}function G(t,e,n,r){return st(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function B(t,e,n,r){return G(t,e,n,r)}function V(t,e,n,r){return st(at(e),t,n,r)}function H(t,e,n,r){return st(function(t,e){for(var n,r,i=[],o=0;o<t.length&&!((e-=2)<0);++o)r=(n=t.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,t.length-n),t,n,r)}function z(t,e,n){return function(t){var e;m||y();for(var n=t.length,r=n%3,i="",o=[],a=0,s=n-r;a<s;a+=16383)o.push(E(t,a,a+16383>s?s:a+16383));return 1===r?(i+=v[(e=t[n-1])>>2],i+=v[e<<4&63],i+="=="):2===r&&(i+=v[(e=(t[n-2]<<8)+t[n-1])>>10],i+=v[e>>4&63],i+=v[e<<2&63],i+="="),o.push(i),o.join("")}(0===e&&n===t.length?t:t.slice(e,n))}function $(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,u,l=t[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:a=t[i+2],128==(192&(o=t[i+1]))&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=t[i+2],s=t[i+3],128==(192&(o=t[i+1]))&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(r.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}function Y(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function W(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function Q(t,e,n){var r,i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var o="",a=e;a<n;++a)o+=(r=t[a])<16?"0"+r.toString(16):r.toString(16);return o}function K(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function X(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function Z(t,e,n,r,i,o){if(!k(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function J(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function tt(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function et(t,e,n,r){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function nt(t,e,n,r,i){return i||et(t,0,n,4),T(t,e,n,r,23,4),n+4}function rt(t,e,n,r,i){return i||et(t,0,n,8),T(t,e,n,r,52,8),n+8}N.TYPED_ARRAY_SUPPORT=void 0===p.TYPED_ARRAY_SUPPORT||p.TYPED_ARRAY_SUPPORT,N.poolSize=8192,N._augment=function(t){return t.__proto__=N.prototype,t},N.from=function(t,e,n){return I(null,t,e,n)},N.TYPED_ARRAY_SUPPORT&&(N.prototype.__proto__=Uint8Array.prototype,N.__proto__=Uint8Array),N.alloc=function(t,e,n){return function(t,e,n,r){return C(e),e<=0?A(t,e):void 0!==n?"string"==typeof r?A(t,e).fill(n,r):A(t,e).fill(n):A(t,e)}(null,t,e,n)},N.allocUnsafe=function(t){return L(null,t)},N.allocUnsafeSlow=function(t){return L(null,t)},N.isBuffer=ut,N.compare=function(t,e){if(!k(t)||!k(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},N.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},N.concat=function(t,e){if(!S(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return N.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=N.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var o=t[n];if(!k(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},N.byteLength=P,N.prototype._isBuffer=!0,N.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)M(this,e,e+1);return this},N.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)M(this,e,e+3),M(this,e+1,e+2);return this},N.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)M(this,e,e+7),M(this,e+1,e+6),M(this,e+2,e+5),M(this,e+3,e+4);return this},N.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?$(this,0,t):D.apply(this,arguments)},N.prototype.equals=function(t){if(!k(t))throw new TypeError("Argument must be a Buffer");return this===t||0===N.compare(this,t)},N.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},N.prototype.compare=function(t,e,n,r,i){if(!k(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=t.slice(e,n),c=0;c<s;++c)if(u[c]!==l[c]){o=u[c],a=l[c];break}return o<a?-1:a<o?1:0},N.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},N.prototype.indexOf=function(t,e,n){return j(this,t,e,n,!0)},N.prototype.lastIndexOf=function(t,e,n){return j(this,t,e,n,!1)},N.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return F(this,t,e,n);case"utf8":case"utf-8":return U(this,t,e,n);case"ascii":return G(this,t,e,n);case"latin1":case"binary":return B(this,t,e,n);case"base64":return V(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},N.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},N.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),N.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=N.prototype;else{var i=e-t;n=new N(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},N.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||X(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},N.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||X(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},N.prototype.readUInt8=function(t,e){return e||X(t,1,this.length),this[t]},N.prototype.readUInt16LE=function(t,e){return e||X(t,2,this.length),this[t]|this[t+1]<<8},N.prototype.readUInt16BE=function(t,e){return e||X(t,2,this.length),this[t]<<8|this[t+1]},N.prototype.readUInt32LE=function(t,e){return e||X(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},N.prototype.readUInt32BE=function(t,e){return e||X(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},N.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||X(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},N.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||X(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},N.prototype.readInt8=function(t,e){return e||X(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},N.prototype.readInt16LE=function(t,e){e||X(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},N.prototype.readInt16BE=function(t,e){e||X(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},N.prototype.readInt32LE=function(t,e){return e||X(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},N.prototype.readInt32BE=function(t,e){return e||X(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},N.prototype.readFloatLE=function(t,e){return e||X(t,4,this.length),x(this,t,!0,23,4)},N.prototype.readFloatBE=function(t,e){return e||X(t,4,this.length),x(this,t,!1,23,4)},N.prototype.readDoubleLE=function(t,e){return e||X(t,8,this.length),x(this,t,!0,52,8)},N.prototype.readDoubleBE=function(t,e){return e||X(t,8,this.length),x(this,t,!1,52,8)},N.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||Z(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},N.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||Z(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},N.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||Z(this,t,e,1,255,0),N.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},N.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||Z(this,t,e,2,65535,0),N.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):J(this,t,e,!0),e+2},N.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||Z(this,t,e,2,65535,0),N.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):J(this,t,e,!1),e+2},N.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||Z(this,t,e,4,4294967295,0),N.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):tt(this,t,e,!0),e+4},N.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||Z(this,t,e,4,4294967295,0),N.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):tt(this,t,e,!1),e+4},N.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);Z(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},N.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);Z(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},N.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||Z(this,t,e,1,127,-128),N.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},N.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||Z(this,t,e,2,32767,-32768),N.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):J(this,t,e,!0),e+2},N.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||Z(this,t,e,2,32767,-32768),N.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):J(this,t,e,!1),e+2},N.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||Z(this,t,e,4,2147483647,-2147483648),N.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):tt(this,t,e,!0),e+4},N.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||Z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),N.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):tt(this,t,e,!1),e+4},N.prototype.writeFloatLE=function(t,e,n){return nt(this,t,e,!0,n)},N.prototype.writeFloatBE=function(t,e,n){return nt(this,t,e,!1,n)},N.prototype.writeDoubleLE=function(t,e,n){return rt(this,t,e,!0,n)},N.prototype.writeDoubleBE=function(t,e,n){return rt(this,t,e,!1,n)},N.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!N.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},N.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!N.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=k(t)?t:ot(new N(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var it=/[^+\/0-9A-Za-z-_]/g;function ot(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function at(t){return function(t){var e,n,r,i,o,a;m||y();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=new g(3*s/4-(o="="===t[s-2]?2:"="===t[s-1]?1:0)),r=o>0?s-4:s;var u=0;for(e=0,n=0;e<r;e+=4,n+=3)i=b[t.charCodeAt(e)]<<18|b[t.charCodeAt(e+1)]<<12|b[t.charCodeAt(e+2)]<<6|b[t.charCodeAt(e+3)],a[u++]=i>>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=b[t.charCodeAt(e)]<<2|b[t.charCodeAt(e+1)]>>4,a[u++]=255&i):1===o&&(i=b[t.charCodeAt(e)]<<10|b[t.charCodeAt(e+1)]<<4|b[t.charCodeAt(e+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(it,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function st(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function ut(t){return null!=t&&(!!t._isBuffer||lt(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&lt(t.slice(0,0))}(t))}function lt(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function ct(){throw new Error("setTimeout has not been defined")}function ft(){throw new Error("clearTimeout has not been defined")}var dt=ct,ht=ft;function pt(t){if(dt===setTimeout)return setTimeout(t,0);if((dt===ct||!dt)&&setTimeout)return dt=setTimeout,setTimeout(t,0);try{return dt(t,0)}catch(e){try{return dt.call(null,t,0)}catch(e){return dt.call(this,t,0)}}}"function"==typeof p.setTimeout&&(dt=setTimeout),"function"==typeof p.clearTimeout&&(ht=clearTimeout);var vt,bt=[],gt=!1,mt=-1;function yt(){gt&&vt&&(gt=!1,vt.length?bt=vt.concat(bt):mt=-1,bt.length&&Et())}function Et(){if(!gt){var t=pt(yt);gt=!0;for(var e=bt.length;e;){for(vt=bt,bt=[];++mt<e;)vt&&vt[mt].run();mt=-1,e=bt.length}vt=null,gt=!1,function(t){if(ht===clearTimeout)return clearTimeout(t);if((ht===ft||!ht)&&clearTimeout)return ht=clearTimeout,clearTimeout(t);try{ht(t)}catch(e){try{return ht.call(null,t)}catch(e){return ht.call(this,t)}}}(t)}}function xt(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];bt.push(new Tt(t,e)),1!==bt.length||gt||pt(Et)}function Tt(t,e){this.fun=t,this.array=e}Tt.prototype.run=function(){this.fun.apply(null,this.array)};var _t="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t},St=/%[sdj%]/g;function wt(t){if(!jt(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(Ct(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,i=r.length,o=String(t).replace(St,(function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),a=r[n];n<i;a=r[++n])Mt(a)||!Ut(a)?o+=" "+a:o+=" "+Ct(a);return o}function At(t,e){if(qt(p.process))return function(){return At(t,e).apply(this,arguments)};var n=!1;return function(){return n||(console.error(e),n=!0),t.apply(this,arguments)}}var Nt,It={};function Ct(t,e){var n={seen:[],stylize:Rt};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Dt(e)?n.showHidden=e:e&&zt(n,e),qt(n.showHidden)&&(n.showHidden=!1),qt(n.depth)&&(n.depth=2),qt(n.colors)&&(n.colors=!1),qt(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Lt),Ot(n,t,n.depth)}function Lt(t,e){var n=Ct.styles[e];return n?"["+Ct.colors[n][0]+"m"+t+"["+Ct.colors[n][1]+"m":t}function Rt(t){return t}function Ot(t,e,n){if(t.customInspect&&e&&Vt(e.inspect)&&e.inspect!==Ct&&(!e.constructor||e.constructor.prototype!==e)){var r=e.inspect(n,t);return jt(r)||(r=Ot(t,r,n)),r}var i=function(t,e){if(qt(e))return t.stylize("undefined","undefined");if(jt(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return"number"==typeof e?t.stylize(""+e,"number"):Dt(e)?t.stylize(""+e,"boolean"):Mt(e)?t.stylize("null","null"):void 0}(t,e);if(i)return i;var o=Object.keys(e),a=function(t){var e={};return t.forEach((function(t){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),Bt(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return kt(e);if(0===o.length){if(Vt(e))return t.stylize("[Function"+(e.name?": "+e.name:"")+"]","special");if(Ft(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Gt(e))return t.stylize(Date.prototype.toString.call(e),"date");if(Bt(e))return kt(e)}var s,u="",l=!1,c=["{","}"];return Array.isArray(e)&&(l=!0,c=["[","]"]),Vt(e)&&(u=" [Function"+(e.name?": "+e.name:"")+"]"),Ft(e)&&(u=" "+RegExp.prototype.toString.call(e)),Gt(e)&&(u=" "+Date.prototype.toUTCString.call(e)),Bt(e)&&(u=" "+kt(e)),0!==o.length||l&&0!=e.length?n<0?Ft(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),s=l?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a<s;++a)$t(e,String(a))?o.push(Pt(t,e,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(Pt(t,e,n,r,i,!0))})),o}(t,e,n,a,o):o.map((function(r){return Pt(t,e,n,a,r,l)})),t.seen.pop(),function(t,e,n){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(s,u,c)):c[0]+u+c[1]}function kt(t){return"["+Error.prototype.toString.call(t)+"]"}function Pt(t,e,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=t.stylize(u.set?"[Getter/Setter]":"[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),$t(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=Mt(n)?Ot(t,u.value,null):Ot(t,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),qt(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function Dt(t){return"boolean"==typeof t}function Mt(t){return null===t}function jt(t){return"string"==typeof t}function qt(t){return void 0===t}function Ft(t){return Ut(t)&&"[object RegExp]"===Ht(t)}function Ut(t){return"object"==typeof t&&null!==t}function Gt(t){return Ut(t)&&"[object Date]"===Ht(t)}function Bt(t){return Ut(t)&&("[object Error]"===Ht(t)||t instanceof Error)}function Vt(t){return"function"==typeof t}function Ht(t){return Object.prototype.toString.call(t)}function zt(t,e){if(!e||!Ut(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}function $t(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Yt(){this.head=null,this.tail=null,this.length=0}Ct.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Ct.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Yt.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},Yt.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},Yt.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,t}},Yt.prototype.clear=function(){this.head=this.tail=null,this.length=0},Yt.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},Yt.prototype.concat=function(t){if(0===this.length)return N.alloc(0);if(1===this.length)return this.head.data;for(var e=N.allocUnsafe(t>>>0),n=this.head,r=0;n;)n.data.copy(e,r),r+=n.data.length,n=n.next;return e};var Wt=N.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Qt(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!Wt(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Xt;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Zt;break;default:return void(this.write=Kt)}this.charBuffer=new N(6),this.charReceived=0,this.charLength=0}function Kt(t){return t.toString(this.encoding)}function Xt(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function Zt(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}Qt.prototype.write=function(t){for(var e="";this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(t=t.slice(n,t.length),!((r=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var r,i=t.length;if(this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,i),i-=this.charReceived),i=(e+=t.toString(this.encoding,0,i)).length-1,(r=e.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,i)}return e},Qt.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var n=t[t.length-e];if(1==e&&n>>5==6){this.charLength=2;break}if(e<=2&&n>>4==14){this.charLength=3;break}if(e<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=e},Qt.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var n=this.encoding;e+=this.charBuffer.slice(0,this.charReceived).toString(n)}return e},ne.ReadableState=ee;var Jt,te=(Jt="stream",qt(Nt)&&(Nt=""),It[Jt=Jt.toUpperCase()]||(It[Jt]=new RegExp("\\b"+Jt+"\\b","i").test(Nt)?function(){var t=wt.apply(null,arguments);console.error("%s %d: %s",Jt,0,t)}:function(){}),It[Jt]);function ee(t,e){this.objectMode=!!(t=t||{}).objectMode,e instanceof Ce&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark;this.highWaterMark=n||0===n?n:this.objectMode?16:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=new Yt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(this.decoder=new Qt(t.encoding),this.encoding=t.encoding)}function ne(t){if(!(this instanceof ne))return new ne(t);this._readableState=new ee(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),r.call(this)}function re(t,e,n,r,i){var o=function(t,e){var n=null;return ut(e)||"string"==typeof e||null==e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(e,n);if(o)t.emit("error",o);else if(null===n)e.reading=!1,function(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,oe(t)}}(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!i){var a=new Error("stream.push() after EOF");t.emit("error",a)}else if(e.endEmitted&&i){var s=new Error("stream.unshift() after end event");t.emit("error",s)}else{var u;!e.decoder||i||r||(n=e.decoder.write(n),u=!e.objectMode&&0===n.length),i||(e.reading=!1),u||(e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&oe(t))),function(t,e){e.readingMore||(e.readingMore=!0,xt(se,t,e))}(t,e)}else i||(e.reading=!1);return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(e)}function ie(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function oe(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(te("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?xt(ae,t):ae(t))}function ae(t){te("emit readable"),t.emit("readable"),ce(t)}function se(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(te("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function ue(t){te("readable nexttick read 0"),t.read(0)}function le(t,e){e.reading||(te("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),ce(t),e.flowing&&!e.reading&&t.read(0)}function ce(t){var e=t._readableState;for(te("flow",e.flowing);e.flowing&&null!==t.read(););}function fe(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,r=1,i=n.data;for(t-=i.length;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(i+=a===o.length?o:o.slice(0,t),0==(t-=a)){a===o.length?(++r,e.head=n.next?n.next:e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=N.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0==(t-=a)){a===o.length?(++i,e.head=r.next?r.next:e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e),r}(t,e.buffer,e.decoder),n);var n}function de(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,xt(he,e,t))}function he(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function pe(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function ve(){}function be(t,e,n){this.chunk=t,this.encoding=e,this.callback=n,this.next=null}function ge(t,e){Object.defineProperty(this,"buffer",{get:At((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),this.objectMode=!!(t=t||{}).objectMode,e instanceof Ce&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark;this.highWaterMark=n||0===n?n:this.objectMode?16:16384,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.decodeStrings=!(!1===t.decodeStrings),this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,i){--e.pendingcb,n?xt(i,r):i(r),t._writableState.errorEmitted=!0,t.emit("error",r)}(t,n,r,e,i);else{var o=Te(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||xe(t,n),r?xt(Ee,t,n,o,i):Ee(t,n,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new we(this)}function me(t){if(!(this instanceof me||this instanceof Ce))return new me(t);this._writableState=new ge(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),r.call(this)}function ye(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function Ee(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),Se(t,e)}function xe(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=new Array(e.bufferedRequestCount),i=e.corkedRequestsFree;i.entry=n;for(var o=0;n;)r[o]=n,n=n.next,o+=1;ye(t,e,!0,e.length,r,"",i.finish),e.pendingcb++,e.lastBufferedRequest=null,i.next?(e.corkedRequestsFree=i.next,i.next=null):e.corkedRequestsFree=new we(e)}else{for(;n;){var a=n.chunk;if(ye(t,e,!1,e.objectMode?1:a.length,a,n.encoding,n.callback),n=n.next,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=n,e.bufferProcessing=!1}function Te(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function _e(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function Se(t,e){var n=Te(e);return n&&(0===e.pendingcb?(_e(t,e),e.finished=!0,t.emit("finish")):_e(t,e)),n}function we(t){var e=this;this.next=null,this.entry=null,this.finish=function(n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}_t(ne,r),ne.prototype.push=function(t,e){var n=this._readableState;return n.objectMode||"string"!=typeof t||(e=e||n.defaultEncoding)!==n.encoding&&(t=N.from(t,e),e=""),re(this,n,t,e,!1)},ne.prototype.unshift=function(t){return re(this,this._readableState,t,"",!0)},ne.prototype.isPaused=function(){return!1===this._readableState.flowing},ne.prototype.setEncoding=function(t){return this._readableState.decoder=new Qt(t),this._readableState.encoding=t,this},ne.prototype.read=function(t){te("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return te("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?de(this):oe(this),null;if(0===(t=ie(t,e))&&e.ended)return 0===e.length&&de(this),null;var r,i=e.needReadable;return te("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&te("length less than watermark",i=!0),e.ended||e.reading?te("reading or ended",i=!1):i&&(te("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=ie(n,e))),null===(r=t>0?fe(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&de(this)),null!==r&&this.emit("data",r),r},ne.prototype._read=function(){this.emit("error",new Error("not implemented"))},ne.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,te("pipe count=%d opts=%j",r.pipesCount,e);var i=e&&!1===e.end?l:a;function o(t){te("onunpipe"),t===n&&l()}function a(){te("onend"),t.end()}r.endEmitted?xt(i):n.once("end",i),t.on("unpipe",o);var s=function(t){return function(){var e=t._readableState;te("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,ce(t))}}(n);t.on("drain",s);var u=!1;function l(){te("cleanup"),t.removeListener("close",h),t.removeListener("finish",p),t.removeListener("drain",s),t.removeListener("error",d),t.removeListener("unpipe",o),n.removeListener("end",a),n.removeListener("end",l),n.removeListener("data",f),u=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||s()}var c=!1;function f(e){te("ondata"),c=!1,!1!==t.write(e)||c||((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==pe(r.pipes,t))&&!u&&(te("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function d(e){te("onerror",e),v(),t.removeListener("error",d),0===function(t){return t.listeners("error").length}(t)&&t.emit("error",e)}function h(){t.removeListener("finish",p),v()}function p(){te("onfinish"),t.removeListener("close",h),v()}function v(){te("unpipe"),n.unpipe(t)}return n.on("data",f),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",d),t.once("close",h),t.once("finish",p),t.emit("pipe",n),r.flowing||(te("pipe resume"),n.resume()),t},ne.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this)),this;if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<r;i++)n[i].emit("unpipe",this);return this}var o=pe(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},ne.prototype.on=function(t,e){var n=r.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&oe(this):xt(ue,this))}return n},ne.prototype.addListener=ne.prototype.on,ne.prototype.resume=function(){var t=this._readableState;return t.flowing||(te("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,xt(le,t,e))}(this,t)),this},ne.prototype.pause=function(){return te("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(te("pause"),this._readableState.flowing=!1,this.emit("pause")),this},ne.prototype.wrap=function(t){var e=this._readableState,n=!1,r=this;for(var i in t.on("end",(function(){if(te("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&r.push(t)}r.push(null)})),t.on("data",(function(i){te("wrapped data"),e.decoder&&(i=e.decoder.write(i)),e.objectMode&&null==i||(e.objectMode||i&&i.length)&&(r.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));return function(t,e){for(var n=0,r=t.length;n<r;n++)e(t[n])}(["error","close","destroy","pause","resume"],(function(e){t.on(e,r.emit.bind(r,e))})),r._read=function(e){te("wrapped _read",e),n&&(n=!1,t.resume())},r},ne._fromList=fe,me.WritableState=ge,_t(me,r),ge.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},me.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},me.prototype.write=function(t,e,n){var r=this._writableState,i=!1;return"function"==typeof e&&(n=e,e=null),N.isBuffer(t)?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=ve),r.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),xt(e,n)}(this,n):function(t,e,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):N.isBuffer(n)||"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),xt(r,o),i=!1),i}(this,r,t,n)&&(r.pendingcb++,i=function(t,e,n,r,i){n=function(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=N.from(e,n)),e}(e,n,r),N.isBuffer(n)&&(r="buffer");var o=e.objectMode?1:n.length;e.length+=o;var a=e.length<e.highWaterMark;if(a||(e.needDrain=!0),e.writing||e.corked){var s=e.lastBufferedRequest;e.lastBufferedRequest=new be(n,r,i),s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else ye(t,e,!1,o,n,r,i);return a}(this,r,t,e,n)),i},me.prototype.cork=function(){this._writableState.corked++},me.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||xe(this,t))},me.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},me.prototype._write=function(t,e,n){n(new Error("not implemented"))},me.prototype._writev=null,me.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,Se(t,e),n&&(e.finished?xt(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,r,n)},_t(Ce,ne);for(var Ae=Object.keys(me.prototype),Ne=0;Ne<Ae.length;Ne++){var Ie=Ae[Ne];Ce.prototype[Ie]||(Ce.prototype[Ie]=me.prototype[Ie])}function Ce(t){if(!(this instanceof Ce))return new Ce(t);ne.call(this,t),me.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",Le)}function Le(){this.allowHalfOpen||this._writableState.ended||xt(Re,this)}function Re(t){t.end()}function Oe(t){this.afterTransform=function(e,n){return function(t,e,n){var r=t._transformState;r.transforming=!1;var i=r.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&t.push(n),i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function ke(t){if(!(this instanceof ke))return new ke(t);Ce.call(this,t),this._transformState=new Oe(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(t){Pe(e,t)})):Pe(e)}))}function Pe(t,e){if(e)return t.emit("error",e);var n=t._transformState;if(t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(n.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}function De(t){if(!(this instanceof De))return new De(t);ke.call(this,t)}function Me(){r.call(this)}function je(t){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ue(t,e,n){return e&&Fe(t.prototype,e),n&&Fe(t,n),t}function Ge(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ve(t,e)}function Be(t){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ve(t,e){return(Ve=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function He(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}_t(ke,Ce),ke.prototype.push=function(t,e){return this._transformState.needTransform=!1,Ce.prototype.push.call(this,t,e)},ke.prototype._transform=function(){throw new Error("Not implemented")},ke.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},ke.prototype._read=function(){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},_t(De,ke),De.prototype._transform=function(t,e,n){n(null,t)},_t(Me,r),Me.Readable=ne,Me.Writable=me,Me.Duplex=Ce,Me.Transform=ke,Me.PassThrough=De,Me.Stream=Me,Me.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",s),n.on("close",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function l(t){if(c(),0===r.listenerCount(this,"error"))throw t}function c(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",l),t.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),t.removeListener("close",c)}return n.on("error",l),t.on("error",l),n.on("end",c),n.on("close",c),t.on("close",c),t.emit("pipe",n),t};var ze,$e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},Ye=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,We=/^\w*$/,Qe=/^\./,Ke=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xe=/\\(\\)?/g,Ze=/^\[object .+?Constructor\]$/,Je="object"==typeof self&&self&&self.Object===Object&&self,tn="object"==typeof $e&&$e&&$e.Object===Object&&$e||Je||Function("return this")(),en=Array.prototype,nn=Function.prototype,rn=Object.prototype,on=tn["__core-js_shared__"],an=(ze=/[^.]+$/.exec(on&&on.keys&&on.keys.IE_PROTO||""))?"Symbol(src)_1."+ze:"",sn=nn.toString,un=rn.hasOwnProperty,ln=rn.toString,cn=RegExp("^"+sn.call(un).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fn=tn.Symbol,dn=en.splice,hn=Tn(tn,"Map"),pn=Tn(Object,"create"),vn=fn?fn.prototype:void 0,bn=vn?vn.toString:void 0;function gn(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function mn(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function yn(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function En(t,e){for(var n,r,i=t.length;i--;)if((n=t[i][0])===(r=e)||n!=n&&r!=r)return i;return-1}function xn(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function Tn(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Nn(t)||(e=t,an&&an in e))&&(function(t){var e=Nn(t)?ln.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?cn:Ze).test(function(t){if(null!=t){try{return sn.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}(n)?n:void 0}gn.prototype.clear=function(){this.__data__=pn?pn(null):{}},gn.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},gn.prototype.get=function(t){var e=this.__data__;if(pn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return un.call(e,t)?e[t]:void 0},gn.prototype.has=function(t){var e=this.__data__;return pn?void 0!==e[t]:un.call(e,t)},gn.prototype.set=function(t,e){return this.__data__[t]=pn&&void 0===e?"__lodash_hash_undefined__":e,this},mn.prototype.clear=function(){this.__data__=[]},mn.prototype.delete=function(t){var e=this.__data__,n=En(e,t);return!(n<0||(n==e.length-1?e.pop():dn.call(e,n,1),0))},mn.prototype.get=function(t){var e=this.__data__,n=En(e,t);return n<0?void 0:e[n][1]},mn.prototype.has=function(t){return En(this.__data__,t)>-1},mn.prototype.set=function(t,e){var n=this.__data__,r=En(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},yn.prototype.clear=function(){this.__data__={hash:new gn,map:new(hn||mn),string:new gn}},yn.prototype.delete=function(t){return xn(this,t).delete(t)},yn.prototype.get=function(t){return xn(this,t).get(t)},yn.prototype.has=function(t){return xn(this,t).has(t)},yn.prototype.set=function(t,e){return xn(this,t).set(t,e),this};var _n=wn((function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(In(t))return bn?bn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(e);var n=[];return Qe.test(t)&&n.push(""),t.replace(Ke,(function(t,e,r,i){n.push(r?i.replace(Xe,"$1"):e||t)})),n}));function Sn(t){if("string"==typeof t||In(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function wn(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(wn.Cache||yn),n}wn.Cache=yn;var An=Array.isArray;function Nn(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function In(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==ln.call(t)}var Cn=function(t,e,n){var r=null==t?void 0:function(t,e){for(var n,r=0,i=(e=function(t,e){if(An(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!In(t))||We.test(t)||!Ye.test(t)||null!=e&&t in Object(e)}(e,t)?[e]:An(n=e)?n:_n(n)).length;null!=t&&r<i;)t=t[Sn(e[r++])];return r&&r==i?t:void 0}(t,e);return void 0===r?n:r},Ln=function(t,e){var n=!0;return t.reduce((function(t,r){return null==r&&(r=""),n?(n=!1,"".concat(r)):"".concat(t).concat(e).concat(r)}),"")},Rn=function(t,e){try{return t.push.apply(t,function(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(e)),t}catch(n){return t.concat(e)}},On=function(t,e,n){return void 0===t[e]?n:t[e]},kn=Ln,Pn=Rn,Dn=function(){function t(e){qe(this,t),this.opts=this.preprocessOpts(e)}return Ue(t,[{key:"preprocessOpts",value:function(t){var e=Object.assign({},t);return e.transforms=Array.isArray(e.transforms)?e.transforms:e.transforms?[e.transforms]:[],e.delimiter=e.delimiter||",",e.eol=e.eol||"\n",e.quote="string"==typeof e.quote?e.quote:'"',e.escapedQuote="string"==typeof e.escapedQuote?e.escapedQuote:"".concat(e.quote).concat(e.quote),e.header=!1!==e.header,e.includeEmptyRows=e.includeEmptyRows||!1,e.withBOM=e.withBOM||!1,e}},{key:"preprocessFieldsInfo",value:function(t){var e=this;return t.map((function(t){if("string"==typeof t)return{label:t,value:t.includes(".")||t.includes("[")?function(n){return Cn(n,t,e.opts.defaultValue)}:function(n){return On(n,t,e.opts.defaultValue)}};if("object"===je(t)){var n="default"in t?t.default:e.opts.defaultValue;if("string"==typeof t.value)return{label:t.label||t.value,value:t.value.includes(".")||t.value.includes("[")?function(e){return Cn(e,t.value,n)}:function(e){return On(e,t.value,n)}};if("function"==typeof t.value){var r=t.label||t.value.name||"",i={label:r,default:n};return{label:r,value:function(e){var r=t.value(e,i);return null==r?n:r}}}}throw new Error("Invalid field info option. "+JSON.stringify(t))}))}},{key:"getHeader",value:function(){var t=this;return kn(this.opts.fields.map((function(e){return t.processValue(e.label)})),this.opts.delimiter)}},{key:"preprocessRow",value:function(t){return this.opts.transforms.reduce((function(t,e){return t.map((function(t){return e(t)})).reduce(Pn,[])}),[t])}},{key:"processRow",value:function(t){var e=this;if(t){var n=this.opts.fields.map((function(n){return e.processCell(t,n)}));if(this.opts.includeEmptyRows||!n.every((function(t){return void 0===t})))return kn(n,this.opts.delimiter)}}},{key:"processCell",value:function(t,e){return this.processValue(e.value(t))}},{key:"processValue",value:function(t){if(null!=t){var e=je(t);if("boolean"!==e&&"number"!==e&&"string"!==e){if(void 0===(t=JSON.stringify(t)))return;'"'===t[0]&&(t=t.replace(/^"(.+)"$/,"$1"))}return"string"==typeof t&&(t.includes(this.opts.quote)&&(t=t.replace(new RegExp(this.opts.quote,"g"),this.opts.escapedQuote)),t="".concat(this.opts.quote).concat(t).concat(this.opts.quote),this.opts.excelStrings&&(t='"="'.concat(t,'""'))),t}}}]),t}(),Mn=Ln,jn=Rn,qn=function(t){function e(t){var n;return qe(this,e),(n=He(this,Be(e).call(this,t))).opts.fields&&(n.opts.fields=n.preprocessFieldsInfo(n.opts.fields)),n}return Ge(e,t),Ue(e,[{key:"parse",value:function(t){var e=this.preprocessData(t);this.opts.fields||(this.opts.fields=e.reduce((function(t,e){return Object.keys(e).forEach((function(e){t.includes(e)||t.push(e)})),t}),[]),this.opts.fields=this.preprocessFieldsInfo(this.opts.fields));var n=this.opts.header?this.getHeader():"",r=this.processData(e);return(this.opts.withBOM?"\ufeff":"")+n+(n&&r?this.opts.eol:"")+r}},{key:"preprocessData",value:function(t){var e=this,n=Array.isArray(t)?t:[t];if(!this.opts.fields&&(0===n.length||"object"!==je(n[0])))throw new Error('Data should not be empty or the "fields" option should be included');return 0===this.opts.transforms.length?n:n.map((function(t){return e.preprocessRow(t)})).reduce(jn,[])}},{key:"processData",value:function(t){var e=this;return Mn(t.map((function(t){return e.processRow(t)})).filter((function(t){return t})),this.opts.eol)}}]),e}(Dn),Fn={},Un=Fn.LEFT_BRACE=1,Gn=Fn.RIGHT_BRACE=2,Bn=Fn.LEFT_BRACKET=3,Vn=Fn.RIGHT_BRACKET=4,Hn=Fn.COLON=5,zn=Fn.COMMA=6,$n=Fn.TRUE=7,Yn=Fn.FALSE=8,Wn=Fn.NULL=9,Qn=Fn.STRING=10,Kn=Fn.NUMBER=11,Xn=Fn.START=17,Zn=Fn.STOP=18,Jn=Fn.TRUE1=33,tr=Fn.TRUE2=34,er=Fn.TRUE3=35,nr=Fn.FALSE1=49,rr=Fn.FALSE2=50,ir=Fn.FALSE3=51,or=Fn.FALSE4=52,ar=Fn.NULL1=65,sr=Fn.NULL2=66,ur=Fn.NULL3=67,lr=Fn.NUMBER1=81,cr=Fn.NUMBER3=83,fr=Fn.STRING1=97,dr=Fn.STRING2=98,hr=Fn.STRING3=99,pr=Fn.STRING4=100,vr=Fn.STRING5=101,br=Fn.STRING6=102,gr=Fn.VALUE=113,mr=Fn.KEY=114,yr=Fn.OBJECT=129,Er=Fn.ARRAY=130,xr="\\".charCodeAt(0),Tr="/".charCodeAt(0),_r="\b".charCodeAt(0),Sr="\f".charCodeAt(0),wr="\n".charCodeAt(0),Ar="\r".charCodeAt(0),Nr="\t".charCodeAt(0);function Ir(){this.tState=Xn,this.value=void 0,this.string=void 0,this.stringBuffer=N.alloc?N.alloc(65536):new N(65536),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=gr,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new N(2),3:new N(3),4:new N(4)},this.offset=-1}Ir.toknam=function(t){for(var e=Object.keys(Fn),n=0,r=e.length;n<r;n++){var i=e[n];if(Fn[i]===t)return i}return t&&"0x"+t.toString(16)};var Cr=Ir.prototype;Cr.onError=function(t){throw t},Cr.charError=function(t,e){this.tState=Zn,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(t[e]))+" at position "+e+" in state "+Ir.toknam(this.tState)))},Cr.appendStringChar=function(t){this.stringBufferOffset>=65536&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=t},Cr.appendStringBuf=function(t,e,n){var r=t.length;"number"==typeof e&&(r="number"==typeof n?n<0?t.length-e+n:n-e:t.length-e),r<0&&(r=0),this.stringBufferOffset+r>65536&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),t.copy(this.stringBuffer,this.stringBufferOffset,e,n),this.stringBufferOffset+=r},Cr.write=function(t){var e;"string"==typeof t&&(t=new N(t));for(var n=0,r=t.length;n<r;n++)if(this.tState===Xn){if(e=t[n],this.offset++,123===e)this.onToken(Un,"{");else if(125===e)this.onToken(Gn,"}");else if(91===e)this.onToken(Bn,"[");else if(93===e)this.onToken(Vn,"]");else if(58===e)this.onToken(Hn,":");else if(44===e)this.onToken(zn,",");else if(116===e)this.tState=Jn;else if(102===e)this.tState=nr;else if(110===e)this.tState=ar;else if(34===e)this.string="",this.stringBufferOffset=0,this.tState=fr;else if(45===e)this.string="-",this.tState=lr;else if(e>=48&&e<64)this.string=String.fromCharCode(e),this.tState=cr;else if(32!==e&&9!==e&&10!==e&&13!==e)return this.charError(t,n)}else if(this.tState===fr)if(e=t[n],this.bytes_remaining>0){for(var i=0;i<this.bytes_remaining;i++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+i]=t[i];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,n=n+i-1}else if(0===this.bytes_remaining&&e>=128){if(e<=193||e>244)return this.onError(new Error("Invalid UTF-8 character at position "+n+" in state "+Ir.toknam(this.tState)));if(e>=194&&e<=223&&(this.bytes_in_sequence=2),e>=224&&e<=239&&(this.bytes_in_sequence=3),e>=240&&e<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+n>t.length){for(var o=0;o<=t.length-1-n;o++)this.temp_buffs[this.bytes_in_sequence][o]=t[n+o];this.bytes_remaining=n+this.bytes_in_sequence-t.length,n=t.length-1}else this.appendStringBuf(t,n,n+this.bytes_in_sequence),n=n+this.bytes_in_sequence-1}else if(34===e)this.tState=Xn,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(Qn,this.string),this.offset+=N.byteLength(this.string,"utf8")+1,this.string=void 0;else if(92===e)this.tState=dr;else{if(!(e>=32))return this.charError(t,n);this.appendStringChar(e)}else if(this.tState===dr)if(34===(e=t[n]))this.appendStringChar(e),this.tState=fr;else if(92===e)this.appendStringChar(xr),this.tState=fr;else if(47===e)this.appendStringChar(Tr),this.tState=fr;else if(98===e)this.appendStringChar(_r),this.tState=fr;else if(102===e)this.appendStringChar(Sr),this.tState=fr;else if(110===e)this.appendStringChar(wr),this.tState=fr;else if(114===e)this.appendStringChar(Ar),this.tState=fr;else if(116===e)this.appendStringChar(Nr),this.tState=fr;else{if(117!==e)return this.charError(t,n);this.unicode="",this.tState=hr}else if(this.tState===hr||this.tState===pr||this.tState===vr||this.tState===br){if(!((e=t[n])>=48&&e<64||e>64&&e<=70||e>96&&e<=102))return this.charError(t,n);if(this.unicode+=String.fromCharCode(e),this.tState++===br){var a=parseInt(this.unicode,16);this.unicode=void 0,void 0!==this.highSurrogate&&a>=56320&&a<57344?(this.appendStringBuf(new N(String.fromCharCode(this.highSurrogate,a))),this.highSurrogate=void 0):void 0===this.highSurrogate&&a>=55296&&a<56320?this.highSurrogate=a:(void 0!==this.highSurrogate&&(this.appendStringBuf(new N(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new N(String.fromCharCode(a)))),this.tState=fr}}else if(this.tState===lr||this.tState===cr)switch(e=t[n]){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(e),this.tState=cr;break;default:this.tState=Xn;var s=Number(this.string);if(isNaN(s))return this.charError(t,n);this.string.match(/[0-9]+/)==this.string&&s.toString()!=this.string?this.onToken(Qn,this.string):this.onToken(Kn,s),this.offset+=this.string.length-1,this.string=void 0,n--}else if(this.tState===Jn){if(114!==t[n])return this.charError(t,n);this.tState=tr}else if(this.tState===tr){if(117!==t[n])return this.charError(t,n);this.tState=er}else if(this.tState===er){if(101!==t[n])return this.charError(t,n);this.tState=Xn,this.onToken($n,!0),this.offset+=3}else if(this.tState===nr){if(97!==t[n])return this.charError(t,n);this.tState=rr}else if(this.tState===rr){if(108!==t[n])return this.charError(t,n);this.tState=ir}else if(this.tState===ir){if(115!==t[n])return this.charError(t,n);this.tState=or}else if(this.tState===or){if(101!==t[n])return this.charError(t,n);this.tState=Xn,this.onToken(Yn,!1),this.offset+=4}else if(this.tState===ar){if(117!==t[n])return this.charError(t,n);this.tState=sr}else if(this.tState===sr){if(108!==t[n])return this.charError(t,n);this.tState=ur}else if(this.tState===ur){if(108!==t[n])return this.charError(t,n);this.tState=Xn,this.onToken(Wn,null),this.offset+=3}},Cr.onToken=function(){},Cr.parseError=function(t,e){this.tState=Zn,this.onError(new Error("Unexpected "+Ir.toknam(t)+(e?"("+JSON.stringify(e)+")":"")+" in state "+Ir.toknam(this.state)))},Cr.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},Cr.pop=function(){var t=this.value,e=this.stack.pop();this.value=e.value,this.key=e.key,this.mode=e.mode,this.emit(t),this.mode||(this.state=gr)},Cr.emit=function(t){this.mode&&(this.state=zn),this.onValue(t)},Cr.onValue=function(){},Cr.onToken=function(t,e){if(this.state===gr)if(t===Qn||t===Kn||t===$n||t===Yn||t===Wn)this.value&&(this.value[this.key]=e),this.emit(e);else if(t===Un)this.push(),this.value=this.value?this.value[this.key]={}:{},this.key=void 0,this.state=mr,this.mode=yr;else if(t===Bn)this.push(),this.value=this.value?this.value[this.key]=[]:[],this.key=0,this.mode=Er,this.state=gr;else if(t===Gn){if(this.mode!==yr)return this.parseError(t,e);this.pop()}else{if(t!==Vn)return this.parseError(t,e);if(this.mode!==Er)return this.parseError(t,e);this.pop()}else if(this.state===mr)if(t===Qn)this.key=e,this.state=Hn;else{if(t!==Gn)return this.parseError(t,e);this.pop()}else if(this.state===Hn){if(t!==Hn)return this.parseError(t,e);this.state=gr}else{if(this.state!==zn)return this.parseError(t,e);if(t===zn)this.mode===Er?(this.key++,this.state=gr):this.mode===yr&&(this.state=mr);else{if(!(t===Vn&&this.mode===Er||t===Gn&&this.mode===yr))return this.parseError(t,e);this.pop()}}},Ir.C=Fn;var Lr=Ir,Rr=function(t){function e(t,n){var r;return qe(this,e),r=He(this,Be(e).call(this,n)),Object.getOwnPropertyNames(Dn.prototype).forEach((function(t){return r[t]=Dn.prototype[t]})),r.opts=r.preprocessOpts(t),r._data="",r._hasWritten=!1,r._readableState.objectMode?r.initObjectModeParse():r.opts.ndjson?r.initNDJSONParse():r.initJSONParser(),r.opts.withBOM&&r.push("\ufeff"),r.opts.fields&&(r.opts.fields=r.preprocessFieldsInfo(r.opts.fields),r.pushHeader()),r}return Ge(e,t),Ue(e,[{key:"initObjectModeParse",value:function(){var t=this;this.parser={write:function(e){t.pushLine(e)},getPendingData:function(){}}}},{key:"initNDJSONParse",value:function(){var t=this;this.parser={_data:"",write:function(e){this._data+=e.toString();var n=this._data.split("\n").map((function(t){return t.trim()})).filter((function(t){return""!==t})),r=!1;n.forEach((function(e,i){try{t.pushLine(JSON.parse(e))}catch(o){i===n.length-1?r=!0:(o.message="Invalid JSON (".concat(e,")"),t.emit("error",o))}})),this._data=r?this._data.slice(this._data.lastIndexOf("\n")):""},getPendingData:function(){return this._data}}}},{key:"initJSONParser",value:function(){var t=this;this.parser=new Lr,this.parser.onValue=function(e){this.stack.length===this.depthToEmit&&t.pushLine(e)},this.parser._onToken=this.parser.onToken,this.parser.onToken=function(e,n){t.parser._onToken(e,n),0!==this.stack.length||t.opts.fields||this.mode===Lr.C.ARRAY||this.mode===Lr.C.OBJECT||this.onError(new Error('Data should not be empty or the "fields" option should be included')),1===this.stack.length&&(void 0===this.depthToEmit&&(this.depthToEmit=this.mode===Lr.C.ARRAY?1:0),0!==this.depthToEmit&&1===this.stack.length&&(this.value=void 0))},this.parser.getPendingData=function(){return this.value},this.parser.onError=function(e){e.message.includes("Unexpected")&&(e.message="Invalid JSON (".concat(e.message,")")),t.emit("error",e)}}},{key:"_transform",value:function(t,e,n){this.parser.write(t),n()}},{key:"_flush",value:function(t){this.parser.getPendingData()&&t(new Error("Invalid data received from stdin",this.parser.getPendingData())),t()}},{key:"pushHeader",value:function(){if(this.opts.header){var t=this.getHeader();this.emit("header",t),this.push(t),this._hasWritten=!0}}},{key:"pushLine",value:function(t){var e=this,n=this.preprocessRow(t);this._hasWritten||(this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(Object.keys(n[0])),this.pushHeader()),n.forEach((function(t){var n=e.processRow(t,e.opts);void 0!==n&&(e.emit("line",n),e.push(e._hasWritten?e.opts.eol+n:n),e._hasWritten=!0)}))}}]),e}(Me.Transform),Or=Me.Transform,kr=Ln,Pr=function(){function t(e,n){qe(this,t),this.input=new Or(n),this.input._read=function(){},this.transform=new Rr(e,n),this.processor=this.input.pipe(this.transform)}return Ue(t,[{key:"fromInput",value:function(t){if(this._input)throw new Error("Async parser already has an input.");return this._input=t,this.input=this._input.pipe(this.processor),this}},{key:"throughTransform",value:function(t){if(this._output)throw new Error("Can't add transforms once an output has been added.");return this.processor=this.processor.pipe(t),this}},{key:"toOutput",value:function(t){if(this._output)throw new Error("Async parser already has an output.");return this._output=t,this.processor=this.processor.pipe(t),this}},{key:"promise",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return new Promise((function(n,r){if(e){var i=[];t.processor.on("data",(function(t){return i.push(t.toString())})).on("finish",(function(){return n(kr(i,""))})).on("error",(function(t){return r(t)}))}else t.processor.on("finish",(function(){return n()})).on("error",(function(t){return r(t)}))}))}}]),t}(),Dr=function t(e,n,r){var i=Array.isArray(n)?n:n.split("."),o=i[0],a=i.length>1?t(e[o]||{},i.slice(1),r):r;return Object.assign({},e,function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},o,a))},Mr=Rn;function jr(t,e){return Object.keys(t).reduce((function(n,r){var i=e?"".concat(e,".").concat(r):r,o=t[r];return"object"===je(o)&&null!==o&&!Array.isArray(o)&&"[object Function]"!==Object.prototype.toString.call(o.toJSON)&&Object.keys(o).length?n=n.concat(jr(o,i)):Array.isArray(o)&&(n.push(i),n=n.concat(o.map((function(t){return jr(t,i)})).reduce(Mr,[]).filter((function(t,e,n){return n.indexOf(t)!==e})))),n}),[])}var qr=Me.Readable,Fr=qn,Ur=Rr,Gr=function(t,e){return new qn(e).parse(t)},Br=function(t,e,n){try{t instanceof qr||(n=Object.assign({},n,{objectMode:!0}));var r=new Pr(e,n),i=r.promise();return Array.isArray(t)?(t.forEach((function(t){return r.input.push(t)})),r.input.push(null)):t instanceof qr?r.fromInput(t):(r.input.push(t),r.input.push(null)),i}catch(t){return Promise.reject(t)}},Vr={flatten:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.objects,n=void 0===e||e,r=t.arrays,i=void 0!==r&&r,o=t.separator,a=void 0===o?".":o;function s(t,e,r){return Object.keys(t).forEach((function(o){var u=r?"".concat(r).concat(a).concat(o):o,l=t[o];n&&"object"===je(l)&&null!==l&&!Array.isArray(l)&&"[object Function]"!==Object.prototype.toString.call(l.toJSON)&&Object.keys(l).length||i&&Array.isArray(l)?s(l,e,u):e[u]=l})),e}return function(t){return s(t,{})}},unwind:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.paths,n=void 0===e?void 0:e,r=t.blankOut,i=void 0!==r&&r;function o(t,e){return t.map((function(t){var n=Cn(t,e);return Array.isArray(n)?n.length?n.map((function(n,r){return Dr(i&&r>0?{}:t,e,n)})):Dr(t,e,void 0):t})).reduce(Mr,[])}return n=Array.isArray(n)?n:n?[n]:void 0,function(t){return(n||jr(t)).reduce(o,[t])}}},Hr={Parser:Fr,AsyncParser:Pr,Transform:Ur,parse:Gr,parseAsync:Br,transforms:Vr};e.AsyncParser=Pr,e.Parser=Fr,e.Transform=Ur,e.default=Hr,e.parse=Gr,e.parseAsync=Br,e.transforms=Vr,Object.defineProperty(e,"__esModule",{value:!0})}(e)}).call(this,n(64))},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=[],r="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z";e.definition={prefix:"fas",iconName:"download",icon:[512,512,n,"f019",r]},e.faDownload=e.definition,e.prefix="fas",e.iconName="download",e.width=512,e.height=512,e.ligatures=n,e.unicode="f019",e.svgPathData=r},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=[],r="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z";e.definition={prefix:"fas",iconName:"question-circle",icon:[512,512,n,"f059",r]},e.faQuestionCircle=e.definition,e.prefix="fas",e.iconName="question-circle",e.width=512,e.height=512,e.ligatures=n,e.unicode="f059",e.svgPathData=r},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=[],r="M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z";e.definition={prefix:"fas",iconName:"table",icon:[512,512,n,"f0ce",r]},e.faTable=e.definition,e.prefix="fas",e.iconName="table",e.width=512,e.height=512,e.ligatures=n,e.unicode="f0ce",e.svgPathData=r},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=[],r="M12.83 352h262.34A12.82 12.82 0 0 0 288 339.17v-38.34A12.82 12.82 0 0 0 275.17 288H12.83A12.82 12.82 0 0 0 0 300.83v38.34A12.82 12.82 0 0 0 12.83 352zm0-256h262.34A12.82 12.82 0 0 0 288 83.17V44.83A12.82 12.82 0 0 0 275.17 32H12.83A12.82 12.82 0 0 0 0 44.83v38.34A12.82 12.82 0 0 0 12.83 96zM432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z";e.definition={prefix:"fas",iconName:"align-left",icon:[448,512,n,"f036",r]},e.faAlignLeft=e.definition,e.prefix="fas",e.iconName="align-left",e.width=448,e.height=512,e.ligatures=n,e.unicode="f036",e.svgPathData=r},function(t,e,n){(function(t){var r=n(157),i=n(158),o=n(159);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=d(t,e),t}(t,e,n,r):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=s(t,r)).write(e,n);return i!==r&&(t=t.slice(0,i)),t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|h(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?s(t,0):d(t,e);if("Buffer"===e.type&&o(e.data))return d(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(c(e),t=s(t,e<0?0:0|h(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|h(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function h(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(t).length;default:if(r)return U(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return N(this,e,n);case"latin1":case"binary":return I(this,e,n);case"base64":return w(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(t,o)===l(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(l(t,o+d)!==l(e,d)){f=!1;break}if(f)return o}return-1}function y(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function E(t,e,n,r){return B(U(e,t.length-n),t,n,r)}function x(t,e,n,r){return B(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function T(t,e,n,r){return x(t,e,n,r)}function _(t,e,n,r){return B(G(e),t,n,r)}function S(t,e,n,r){return B(function(t,e){for(var n,r,i=[],o=0;o<t.length&&!((e-=2)<0);++o)r=(n=t.charCodeAt(o))>>8,i.push(n%256),i.push(r);return i}(e,t.length-n),t,n,r)}function w(t,e,n){return r.fromByteArray(0===e&&n===t.length?t:t.slice(e,n))}function A(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,u,l=t[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:a=t[i+2],128==(192&(o=t[i+1]))&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=t[i+2],s=t[i+3],128==(192&(o=t[i+1]))&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(r.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}function N(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function I(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function C(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=F(t[o]);return i}function L(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function R(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function O(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function k(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function P(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function D(t,e,n,r){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(t,e,n,r,o){return o||D(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function j(t,e,n,r,o){return o||D(t,0,n,8),i.write(t,e,n,r,52,8),n+8}e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return l(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return c(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):v.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),f=0;f<s;++f)if(l[f]!==c[f]){o=l[f],a=c[f];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return E(this,t,e,n);case"ascii":return x(this,t,e,n);case"latin1":case"binary":return T(this,t,e,n);case"base64":return _(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||O(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||O(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):k(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):k(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):P(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);O(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);O(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):k(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):k(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):P(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):P(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return M(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return M(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return j(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return j(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},u.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=u.isBuffer(t)?t:U(new u(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function F(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(q,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function B(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(64))},function(t,e){e.byteLength=function(t){var e=u(t),n=e[1];return 3*(e[0]+n)/4-n},e.toByteArray=function(t){var e,n,o=u(t),a=o[0],s=o[1],l=new i(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),c=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,l[c++]=255&e),1===s&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(l(t,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(e=t[r-1])>>2]+n[e<<4&63]+"=="):2===i&&o.push(n[(e=(t[r-2]<<8)+t[r-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,r){for(var i,o=[],a=e;a<r;a+=3)o.push(n[(i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,d=n?-1:1,h=t[e+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+t[e+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+f],f+=d,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[n+h]=255&a,h+=p,a/=256,l-=8);t[n+h-p]|=128*v}},function(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(t){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}},function(){},function(){},function(t,e,n){var r=n(3);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t}},function(){},function(){},function(t,e,n){var r,i;r=[n(74)],void 0===(i=function(t){return function(t,e,n,r){var i,o,a,s,u=function(e){this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new o(t?ae(this[i.iApiIndex]):this)},this.fnAddData=function(e,n){var i=this.api(!0),o=Array.isArray(e)&&(Array.isArray(e[0])||t.isPlainObject(e[0]))?i.rows.add(e):i.row.add(e);return(n===r||n)&&i.draw(),o.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),n=e.settings()[0],i=n.oScroll;t===r||t?e.draw(!1):""===i.sX&&""===i.sY||Bt(n)},this.fnClearTable=function(t){var e=this.api(!0).clear();(t===r||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,n){var i=this.api(!0),o=i.rows(t),a=o.settings()[0],s=a.aoData[o[0][0]];return o.remove(),e&&e.call(this,a,s),(n===r||n)&&i.draw(),s},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,n,i,o,a){var s=this.api(!0);null===e||e===r?s.search(t,n,i,a):s.column(e).search(t,n,i,a),s.draw()},this.fnGetData=function(t,e){var n=this.api(!0);if(t!==r){var i=t.nodeName?t.nodeName.toLowerCase():"";return e!==r||"td"==i||"th"==i?n.cell(t,e).data():n.row(t).data()||null}return n.data().toArray()},this.fnGetNodes=function(t){var e=this.api(!0);return t!==r?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),n=t.nodeName.toUpperCase();if("TR"==n)return e.row(t).index();if("TD"==n||"TH"==n){var r=e.cell(t).index();return[r.row,r.columnVisible,r.column]}return null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,n){return this.api(!0).row(t).child(e,n).show().child()[0]},this.fnPageChange=function(t,e){var n=this.api(!0).page(t);(e===r||e)&&n.draw(!1)},this.fnSetColumnVis=function(t,e,n){var i=this.api(!0).column(t).visible(e);(n===r||n)&&i.columns.adjust().draw()},this.fnSettings=function(){return ae(this[i.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,n){this.api(!0).order.listener(t,e,n)},this.fnUpdate=function(t,e,n,i,o){var a=this.api(!0);return n===r||null===n?a.row(e).data(t):a.cell(e,n).data(t),(o===r||o)&&a.columns.adjust(),(i===r||i)&&a.draw(),0},this.fnVersionCheck=i.fnVersionCheck;var n=this,a=e===r,s=this.length;for(var l in a&&(e={}),this.oApi=this.internal=i.internal,u.ext.internal)l&&(this[l]=Pe(l));return this.each((function(){var i,o=s>1?le({},e,!0):e,l=0,c=this.getAttribute("id"),f=!1,d=u.defaults,h=t(this);if("table"==this.nodeName.toLowerCase()){R(d),O(d.column),I(d,d,!0),I(d.column,d.column,!0),I(d,t.extend(o,h.data()),!0);var p=u.settings;for(l=0,i=p.length;l<i;l++){var v=p[l];if(v.nTable==this||v.nTHead&&v.nTHead.parentNode==this||v.nTFoot&&v.nTFoot.parentNode==this){if(a||(o.bRetrieve!==r?o.bRetrieve:d.bRetrieve))return v.oInstance;if(o.bDestroy!==r?o.bDestroy:d.bDestroy){v.oInstance.fnDestroy();break}return void se(v,0,"Cannot reinitialise DataTable",3)}if(v.sTableId==this.id){p.splice(l,1);break}}null!==c&&""!==c||(c="DataTables_Table_"+u.ext._unique++,this.id=c);var b=t.extend(!0,{},u.models.oSettings,{sDestroyWidth:h[0].style.width,sInstance:c,sTableId:c});b.nTable=this,b.oApi=n.internal,b.oInit=o,p.push(b),b.oInstance=1===n.length?n:h.dataTable(),R(o),C(o.oLanguage),o.aLengthMenu&&!o.iDisplayLength&&(o.iDisplayLength=Array.isArray(o.aLengthMenu[0])?o.aLengthMenu[0][0]:o.aLengthMenu[0]),o=le(t.extend(!0,{},d),o),ue(b.oFeatures,o,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),ue(b,o,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),ue(b.oScroll,o,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),ue(b.oLanguage,o,"fnInfoCallback"),fe(b,"aoDrawCallback",o.fnDrawCallback,"user"),fe(b,"aoServerParams",o.fnServerParams,"user"),fe(b,"aoStateSaveParams",o.fnStateSaveParams,"user"),fe(b,"aoStateLoadParams",o.fnStateLoadParams,"user"),fe(b,"aoStateLoaded",o.fnStateLoaded,"user"),fe(b,"aoRowCallback",o.fnRowCallback,"user"),fe(b,"aoRowCreatedCallback",o.fnCreatedRow,"user"),fe(b,"aoHeaderCallback",o.fnHeaderCallback,"user"),fe(b,"aoFooterCallback",o.fnFooterCallback,"user"),fe(b,"aoInitComplete",o.fnInitComplete,"user"),fe(b,"aoPreDrawCallback",o.fnPreDrawCallback,"user"),b.rowIdFn=X(o.rowId),k(b);var g=b.oClasses;if(t.extend(g,u.ext.classes,o.oClasses),h.addClass(g.sTable),b.iInitDisplayStart===r&&(b.iInitDisplayStart=o.iDisplayStart,b._iDisplayStart=o.iDisplayStart),null!==o.iDeferLoading){b.bDeferLoading=!0;var m=Array.isArray(o.iDeferLoading);b._iRecordsDisplay=m?o.iDeferLoading[0]:o.iDeferLoading,b._iRecordsTotal=m?o.iDeferLoading[1]:o.iDeferLoading}var y=b.oLanguage;t.extend(!0,y,o.oLanguage),y.sUrl?(t.ajax({dataType:"json",url:y.sUrl,success:function(e){C(e),I(d.oLanguage,e),t.extend(!0,y,e),de(b,null,"i18n",[b]),kt(b)},error:function(){kt(b)}}),f=!0):de(b,null,"i18n",[b]),null===o.asStripeClasses&&(b.asStripeClasses=[g.sStripeOdd,g.sStripeEven]);var E=b.asStripeClasses,x=h.children("tbody").find("tr").eq(0);-1!==t.inArray(!0,t.map(E,(function(t){return x.hasClass(t)})))&&(t("tbody tr",this).removeClass(E.join(" ")),b.asDestroyStripes=E.slice());var T,_=[],S=this.getElementsByTagName("thead");if(0!==S.length&&(ft(b.aoHeader,S[0]),_=dt(b)),null===o.aoColumns)for(T=[],l=0,i=_.length;l<i;l++)T.push(null);else T=o.aoColumns;for(l=0,i=T.length;l<i;l++)D(b,_?_[l]:null);if(V(b,o.aoColumnDefs,T,(function(t,e){M(b,t,e)})),x.length){var w=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};t(x[0]).children("th, td").each((function(t,e){var n=b.aoColumns[t];if(n.mData===t){var i=w(e,"sort")||w(e,"order"),o=w(e,"filter")||w(e,"search");null===i&&null===o||(n.mData={_:t+".display",sort:null!==i?t+".@data-"+i:r,type:null!==i?t+".@data-"+i:r,filter:null!==o?t+".@data-"+o:r},M(b,t))}}))}var A=b.oFeatures,N=function(){if(o.aaSorting===r){var e=b.aaSorting;for(l=0,i=e.length;l<i;l++)e[l][1]=b.aoColumns[l].asSorting[0]}ne(b),A.bSort&&fe(b,"aoDrawCallback",(function(){if(b.bSorted){var e=Xt(b),n={};t.each(e,(function(t,e){n[e.src]=e.dir})),de(b,null,"order",[b,e,n]),Jt(b)}})),fe(b,"aoDrawCallback",(function(){(b.bSorted||"ssp"===ve(b)||A.bDeferRender)&&ne(b)}),"sc");var n=h.children("caption").each((function(){this._captionSide=t(this).css("caption-side")})),a=h.children("thead");0===a.length&&(a=t("<thead/>").appendTo(h)),b.nTHead=a[0];var s=h.children("tbody");0===s.length&&(s=t("<tbody/>").appendTo(h)),b.nTBody=s[0];var u=h.children("tfoot");if(0===u.length&&n.length>0&&(""!==b.oScroll.sX||""!==b.oScroll.sY)&&(u=t("<tfoot/>").appendTo(h)),0===u.length||0===u.children().length?h.addClass(g.sNoFooter):u.length>0&&(b.nTFoot=u[0],ft(b.aoFooter,b.nTFoot)),o.aaData)for(l=0;l<o.aaData.length;l++)H(b,o.aaData[l]);else(b.bDeferLoading||"dom"==ve(b))&&z(b,t(b.nTBody).children("tr"));b.aiDisplay=b.aiDisplayMaster.slice(),b.bInitialised=!0,!1===f&&kt(b)};o.bStateSave?(A.bStateSave=!0,fe(b,"aoDrawCallback",ie,"state_save"),oe(b,0,N)):N()}else se(null,0,"Non-table node initialisation ("+this.nodeName+")",2)})),n=null,this},l={},c=/[\r\n\u2028]/g,f=/<.*?>/g,d=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,h=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),p=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,v=function(t){return!t||!0===t||"-"===t},b=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},g=function(t,e){return l[e]||(l[e]=new RegExp(St(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(l[e],"."):t},m=function(t,e,n){var r="string"==typeof t;return!!v(t)||(e&&r&&(t=g(t,e)),n&&r&&(t=t.replace(p,"")),!isNaN(parseFloat(t))&&isFinite(t))},y=function(t,e,n){return!!v(t)||function(t){return v(t)||"string"==typeof t}(t)&&!!m(S(t),e,n)||null},E=function(t,e,n){var i=[],o=0,a=t.length;if(n!==r)for(;o<a;o++)t[o]&&t[o][e]&&i.push(t[o][e][n]);else for(;o<a;o++)t[o]&&i.push(t[o][e]);return i},x=function(t,e,n,i){var o=[],a=0,s=e.length;if(i!==r)for(;a<s;a++)t[e[a]][n]&&o.push(t[e[a]][n][i]);else for(;a<s;a++)o.push(t[e[a]][n]);return o},T=function(t,e){var n,i=[];e===r?(e=0,n=t):(n=e,e=t);for(var o=e;o<n;o++)i.push(o);return i},_=function(t){for(var e=[],n=0,r=t.length;n<r;n++)t[n]&&e.push(t[n]);return e},S=function(t){return t.replace(f,"")},w=function(t){if(function(t){if(t.length<2)return!0;for(var e=t.slice().sort(),n=e[0],r=1,i=e.length;r<i;r++){if(e[r]===n)return!1;n=e[r]}return!0}(t))return t.slice();var e,n,r,i=[],o=t.length,a=0;t:for(n=0;n<o;n++){for(e=t[n],r=0;r<a;r++)if(i[r]===e)continue t;i.push(e),a++}return i},A=function(t,e){if(Array.isArray(e))for(var n=0;n<e.length;n++)A(t,e[n]);else t.push(e);return t};function N(e){var n,r,i={};t.each(e,(function(t){(n=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(r=t.replace(n[0],n[2].toLowerCase()),i[r]=t,"o"===n[1]&&N(e[t]))})),e._hungarianMap=i}function I(e,n,i){var o;e._hungarianMap||N(e),t.each(n,(function(a){(o=e._hungarianMap[a])===r||!i&&n[o]!==r||("o"===o.charAt(0)?(n[o]||(n[o]={}),t.extend(!0,n[o],n[a]),I(e[o],n[o],i)):n[o]=n[a])}))}function C(t){var e=u.defaults.oLanguage,n=e.sDecimal;if(n&&Oe(n),t){var r=t.sZeroRecords;!t.sEmptyTable&&r&&"No data available in table"===e.sEmptyTable&&ue(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&r&&"Loading..."===e.sLoadingRecords&&ue(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands);var i=t.sDecimal;i&&n!==i&&Oe(i)}}Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),u.util={throttle:function(t,e){var n,i,o=e!==r?e:200;return function(){var e=this,a=+new Date,s=arguments;n&&a<n+o?(clearTimeout(i),i=setTimeout((function(){n=r,t.apply(e,s)}),o)):(n=a,t.apply(e,s))}},escapeRegex:function(t){return t.replace(h,"\\$1")}};var L=function(t,e,n){t[e]!==r&&(t[n]=t[e])};function R(t){L(t,"ordering","bSort"),L(t,"orderMulti","bSortMulti"),L(t,"orderClasses","bSortClasses"),L(t,"orderCellsTop","bSortCellsTop"),L(t,"order","aaSorting"),L(t,"orderFixed","aaSortingFixed"),L(t,"paging","bPaginate"),L(t,"pagingType","sPaginationType"),L(t,"pageLength","iDisplayLength"),L(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":"");var e=t.aoSearchCols;if(e)for(var n=0,r=e.length;n<r;n++)e[n]&&I(u.models.oSearch,e[n])}function O(t){L(t,"orderable","bSortable"),L(t,"orderData","aDataSort"),L(t,"orderSequence","asSorting"),L(t,"orderDataType","sortDataType");var e=t.aDataSort;"number"!=typeof e||Array.isArray(e)||(t.aDataSort=[e])}function k(n){if(!u.__browser){var r={};u.__browser=r;var i=t("<div/>").css({position:"fixed",top:0,left:-1*t(e).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(t("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(t("<div/>").css({width:"100%",height:10}))).appendTo("body"),o=i.children(),a=o.children();r.barWidth=o[0].offsetWidth-o[0].clientWidth,r.bScrollOversize=100===a[0].offsetWidth&&100!==o[0].clientWidth,r.bScrollbarLeft=1!==Math.round(a.offset().left),r.bBounding=!!i[0].getBoundingClientRect().width,i.remove()}t.extend(n.oBrowser,u.__browser),n.oScroll.iBarWidth=u.__browser.barWidth}function P(t,e,n,i,o,a){var s,u=i,l=!1;for(n!==r&&(s=n,l=!0);u!==o;)t.hasOwnProperty(u)&&(s=l?e(s,t[u],u,t):t[u],l=!0,u+=a);return s}function D(e,r){var i=u.defaults.column,o=e.aoColumns.length,a=t.extend({},u.models.oColumn,i,{nTh:r||n.createElement("th"),sTitle:i.sTitle?i.sTitle:r?r.innerHTML:"",aDataSort:i.aDataSort?i.aDataSort:[o],mData:i.mData?i.mData:o,idx:o});e.aoColumns.push(a);var s=e.aoPreSearchCols;s[o]=t.extend({},u.models.oSearch,s[o]),M(e,o,t(r).data())}function M(e,n,i){var o=e.aoColumns[n],a=e.oClasses,s=t(o.nTh);if(!o.sWidthOrig){o.sWidthOrig=s.attr("width")||null;var l=(s.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);l&&(o.sWidthOrig=l[1])}i!==r&&null!==i&&(O(i),I(u.defaults.column,i,!0),i.mDataProp===r||i.mData||(i.mData=i.mDataProp),i.sType&&(o._sManualType=i.sType),i.className&&!i.sClass&&(i.sClass=i.className),i.sClass&&s.addClass(i.sClass),t.extend(o,i),ue(o,i,"sWidth","sWidthOrig"),i.iDataSort!==r&&(o.aDataSort=[i.iDataSort]),ue(o,i,"aDataSort"));var c=o.mData,f=X(c),d=o.mRender?X(o.mRender):null,h=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};o._bAttrSrc=t.isPlainObject(c)&&(h(c.sort)||h(c.type)||h(c.filter)),o._setter=null,o.fnGetData=function(t,e,n){var i=f(t,e,r,n);return d&&e?d(i,e,t,n):i},o.fnSetData=function(t,e,n){return Z(c)(t,e,n)},"number"!=typeof c&&(e._rowReadObject=!0),e.oFeatures.bSort||(o.bSortable=!1,s.addClass(a.sSortableNone));var p=-1!==t.inArray("asc",o.asSorting),v=-1!==t.inArray("desc",o.asSorting);o.bSortable&&(p||v)?p&&!v?(o.sSortingClass=a.sSortableAsc,o.sSortingClassJUI=a.sSortJUIAscAllowed):!p&&v?(o.sSortingClass=a.sSortableDesc,o.sSortingClassJUI=a.sSortJUIDescAllowed):(o.sSortingClass=a.sSortable,o.sSortingClassJUI=a.sSortJUI):(o.sSortingClass=a.sSortableNone,o.sSortingClassJUI="")}function j(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;zt(t);for(var n=0,r=e.length;n<r;n++)e[n].nTh.style.width=e[n].sWidth}var i=t.oScroll;""===i.sY&&""===i.sX||Bt(t),de(t,null,"column-sizing",[t])}function q(t,e){var n=G(t,"bVisible");return"number"==typeof n[e]?n[e]:null}function F(e,n){var r=G(e,"bVisible"),i=t.inArray(n,r);return-1!==i?i:null}function U(e){var n=0;return t.each(e.aoColumns,(function(e,r){r.bVisible&&"none"!==t(r.nTh).css("display")&&n++})),n}function G(e,n){var r=[];return t.map(e.aoColumns,(function(t,e){t[n]&&r.push(e)})),r}function B(t){var e,n,i,o,a,s,l,c,f,d=t.aoColumns,h=t.aoData,p=u.ext.type.detect;for(e=0,n=d.length;e<n;e++)if(f=[],!(l=d[e]).sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){for(i=0,o=p.length;i<o;i++){for(a=0,s=h.length;a<s&&(f[a]===r&&(f[a]=$(t,a,e,"type")),(c=p[i](f[a],t))||i===p.length-1)&&"html"!==c;a++);if(c){l.sType=c;break}}l.sType||(l.sType="string")}}function V(e,n,i,o){var a,s,u,l,c,f,d,h=e.aoColumns;if(n)for(a=n.length-1;a>=0;a--){var p=(d=n[a]).targets!==r?d.targets:d.aTargets;for(Array.isArray(p)||(p=[p]),u=0,l=p.length;u<l;u++)if("number"==typeof p[u]&&p[u]>=0){for(;h.length<=p[u];)D(e);o(p[u],d)}else if("number"==typeof p[u]&&p[u]<0)o(h.length+p[u],d);else if("string"==typeof p[u])for(c=0,f=h.length;c<f;c++)("_all"==p[u]||t(h[c].nTh).hasClass(p[u]))&&o(c,d)}if(i)for(a=0,s=i.length;a<s;a++)o(a,i[a])}function H(e,n,i,o){var a=e.aoData.length,s=t.extend(!0,{},u.models.oRow,{src:i?"dom":"data",idx:a});s._aData=n,e.aoData.push(s);for(var l=e.aoColumns,c=0,f=l.length;c<f;c++)l[c].sType=null;e.aiDisplayMaster.push(a);var d=e.rowIdFn(n);return d!==r&&(e.aIds[d]=s),!i&&e.oFeatures.bDeferRender||it(e,a,i,o),a}function z(e,n){var r;return n instanceof t||(n=t(n)),n.map((function(t,n){return r=rt(e,n),H(e,r.data,n,r.cells)}))}function $(t,e,n,i){var o=t.iDraw,a=t.aoColumns[n],s=t.aoData[e]._aData,u=a.sDefaultContent,l=a.fnGetData(s,i,{settings:t,row:e,col:n});if(l===r)return t.iDrawError!=o&&null===u&&(se(t,0,"Requested unknown parameter "+("function"==typeof a.mData?"{function}":"'"+a.mData+"'")+" for row "+e+", column "+n,4),t.iDrawError=o),u;if(l!==s&&null!==l||null===u||i===r){if("function"==typeof l)return l.call(s)}else l=u;return null===l&&"display"==i?"":l}function Y(t,e,n,r){t.aoColumns[n].fnSetData(t.aoData[e]._aData,r,{settings:t,row:e,col:n})}var W=/\[.*?\]$/,Q=/\(\)$/;function K(e){return t.map(e.match(/(\\.|[^\.])+/g)||[""],(function(t){return t.replace(/\\\./g,".")}))}function X(e){if(t.isPlainObject(e)){var n={};return t.each(e,(function(t,e){e&&(n[t]=X(e))})),function(t,e,i,o){var a=n[e]||n._;return a!==r?a(t,e,i,o):t}}if(null===e)return function(t){return t};if("function"==typeof e)return function(t,n,r,i){return e(t,n,r,i)};if("string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("("))return function(t){return t[e]};var i=function(t,e,n){var o,a,s,u;if(""!==n)for(var l=K(n),c=0,f=l.length;c<f;c++){if(o=l[c].match(W),a=l[c].match(Q),o){if(l[c]=l[c].replace(W,""),""!==l[c]&&(t=t[l[c]]),s=[],l.splice(0,c+1),u=l.join("."),Array.isArray(t))for(var d=0,h=t.length;d<h;d++)s.push(i(t[d],e,u));var p=o[0].substring(1,o[0].length-1);t=""===p?s:s.join(p);break}if(a)l[c]=l[c].replace(Q,""),t=t[l[c]]();else{if(null===t||t[l[c]]===r)return r;t=t[l[c]]}}return t};return function(t,n){return i(t,n,e)}}function Z(e){if(t.isPlainObject(e))return Z(e._);if(null===e)return function(){};if("function"==typeof e)return function(t,n,r){e(t,"set",n,r)};if("string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("("))return function(t,n){t[e]=n};var n=function(t,e,i){for(var o,a,s,u,l,c=K(i),f=c[c.length-1],d=0,h=c.length-1;d<h;d++){if("__proto__"===c[d]||"constructor"===c[d])throw new Error("Cannot set prototype values");if(a=c[d].match(W),s=c[d].match(Q),a){if(c[d]=c[d].replace(W,""),t[c[d]]=[],(o=c.slice()).splice(0,d+1),l=o.join("."),Array.isArray(e))for(var p=0,v=e.length;p<v;p++)n(u={},e[p],l),t[c[d]].push(u);else t[c[d]]=e;return}s&&(c[d]=c[d].replace(Q,""),t=t[c[d]](e)),null!==t[c[d]]&&t[c[d]]!==r||(t[c[d]]={}),t=t[c[d]]}f.match(Q)?t=t[f.replace(Q,"")](e):t[f.replace(W,"")]=e};return function(t,r){return n(t,r,e)}}function J(t){return E(t.aoData,"_aData")}function tt(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function et(t,e,n){for(var i=-1,o=0,a=t.length;o<a;o++)t[o]==e?i=o:t[o]>e&&t[o]--;-1!=i&&n===r&&t.splice(i,1)}function nt(t,e,n,i){var o,a,s=t.aoData[e],u=function(n,r){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=$(t,e,r,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==s.src)){var l=s.anCells;if(l)if(i!==r)u(l[i],i);else for(o=0,a=l.length;o<a;o++)u(l[o],o)}else s._aData=rt(t,s,i,i===r?r:s._aData).data;s._aSortData=null,s._aFilterData=null;var c=t.aoColumns;if(i!==r)c[i].sType=null;else{for(o=0,a=c.length;o<a;o++)c[o].sType=null;ot(t,s)}}function rt(t,e,n,i){var o,a,s,u=[],l=e.firstChild,c=0,f=t.aoColumns,d=t._rowReadObject;i=i!==r?i:d?{}:[];var h=function(t,e){if("string"==typeof t){var n=t.indexOf("@");if(-1!==n){var r=t.substring(n+1);Z(t)(i,e.getAttribute(r))}}},p=function(t){n!==r&&n!==c||(a=f[c],s=t.innerHTML.trim(),a&&a._bAttrSrc?(Z(a.mData._)(i,s),h(a.mData.sort,t),h(a.mData.type,t),h(a.mData.filter,t)):d?(a._setter||(a._setter=Z(a.mData)),a._setter(i,s)):i[c]=s),c++};if(l)for(;l;)"TD"!=(o=l.nodeName.toUpperCase())&&"TH"!=o||(p(l),u.push(l)),l=l.nextSibling;else for(var v=0,b=(u=e.anCells).length;v<b;v++)p(u[v]);var g=e.firstChild?e:e.nTr;if(g){var m=g.getAttribute("id");m&&Z(t.rowId)(i,m)}return{data:i,cells:u}}function it(e,r,i,o){var a,s,u,l,c,f,d=e.aoData[r],h=d._aData,p=[];if(null===d.nTr){for(a=i||n.createElement("tr"),d.nTr=a,d.anCells=p,a._DT_RowIndex=r,ot(e,d),l=0,c=e.aoColumns.length;l<c;l++)u=e.aoColumns[l],(s=(f=!i)?n.createElement(u.sCellType):o[l])._DT_CellIndex={row:r,column:l},p.push(s),!f&&(!u.mRender&&u.mData===l||t.isPlainObject(u.mData)&&u.mData._===l+".display")||(s.innerHTML=$(e,r,l,"display")),u.sClass&&(s.className+=" "+u.sClass),u.bVisible&&!i?a.appendChild(s):!u.bVisible&&i&&s.parentNode.removeChild(s),u.fnCreatedCell&&u.fnCreatedCell.call(e.oInstance,s,$(e,r,l),h,r,l);de(e,"aoRowCreatedCallback",null,[a,h,r,p])}}function ot(e,n){var r=n.nTr,i=n._aData;if(r){var o=e.rowIdFn(i);if(o&&(r.id=o),i.DT_RowClass){var a=i.DT_RowClass.split(" ");n.__rowc=n.__rowc?w(n.__rowc.concat(a)):a,t(r).removeClass(n.__rowc.join(" ")).addClass(i.DT_RowClass)}i.DT_RowAttr&&t(r).attr(i.DT_RowAttr),i.DT_RowData&&t(r).data(i.DT_RowData)}}function at(e){var n,r,i,o,a,s=e.nTHead,u=e.nTFoot,l=0===t("th, td",s).length,c=e.oClasses,f=e.aoColumns;for(l&&(o=t("<tr/>").appendTo(s)),n=0,r=f.length;n<r;n++)i=t((a=f[n]).nTh).addClass(a.sClass),l&&i.appendTo(o),e.oFeatures.bSort&&(i.addClass(a.sSortingClass),!1!==a.bSortable&&(i.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),ee(e,a.nTh,n))),a.sTitle!=i[0].innerHTML&&i.html(a.sTitle),pe(e,"header")(e,i,a,c);if(l&&ft(e.aoHeader,s),t(s).children("tr").attr("role","row"),t(s).children("tr").children("th, td").addClass(c.sHeaderTH),t(u).children("tr").children("th, td").addClass(c.sFooterTH),null!==u){var d=e.aoFooter[0];for(n=0,r=d.length;n<r;n++)(a=f[n]).nTf=d[n].cell,a.sClass&&t(a.nTf).addClass(a.sClass)}}function st(e,n,i){var o,a,s,u,l,c,f,d,h,p=[],v=[],b=e.aoColumns.length;if(n){for(i===r&&(i=!1),o=0,a=n.length;o<a;o++){for(p[o]=n[o].slice(),p[o].nTr=n[o].nTr,s=b-1;s>=0;s--)e.aoColumns[s].bVisible||i||p[o].splice(s,1);v.push([])}for(o=0,a=p.length;o<a;o++){if(f=p[o].nTr)for(;c=f.firstChild;)f.removeChild(c);for(s=0,u=p[o].length;s<u;s++)if(d=1,h=1,v[o][s]===r){for(f.appendChild(p[o][s].cell),v[o][s]=1;p[o+d]!==r&&p[o][s].cell==p[o+d][s].cell;)v[o+d][s]=1,d++;for(;p[o][s+h]!==r&&p[o][s].cell==p[o][s+h].cell;){for(l=0;l<d;l++)v[o+l][s+h]=1;h++}t(p[o][s].cell).attr("rowspan",d).attr("colspan",h)}}}}function ut(e){var n=de(e,"aoPreDrawCallback","preDraw",[e]);if(-1===t.inArray(!1,n)){var i=[],o=0,a=e.asStripeClasses,s=a.length,u=e.oLanguage,l=e.iInitDisplayStart,c="ssp"==ve(e),f=e.aiDisplay;e.bDrawing=!0,l!==r&&-1!==l&&(e._iDisplayStart=c?l:l>=e.fnRecordsDisplay()?0:l,e.iInitDisplayStart=-1);var d=e._iDisplayStart,h=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,Ut(e,!1);else if(c){if(!e.bDestroying&&!pt(e))return}else e.iDraw++;if(0!==f.length)for(var p=c?e.aoData.length:h,v=c?0:d;v<p;v++){var b=f[v],g=e.aoData[b];null===g.nTr&&it(e,b);var m=g.nTr;if(0!==s){var y=a[o%s];g._sRowStripe!=y&&(t(m).removeClass(g._sRowStripe).addClass(y),g._sRowStripe=y)}de(e,"aoRowCallback",null,[m,g._aData,o,v,b]),i.push(m),o++}else{var E=u.sZeroRecords;1==e.iDraw&&"ajax"==ve(e)?E=u.sLoadingRecords:u.sEmptyTable&&0===e.fnRecordsTotal()&&(E=u.sEmptyTable),i[0]=t("<tr/>",{class:s?a[0]:""}).append(t("<td />",{valign:"top",colSpan:U(e),class:e.oClasses.sRowEmpty}).html(E))[0]}de(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],J(e),d,h,f]),de(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],J(e),d,h,f]);var x=t(e.nTBody);x.children().detach(),x.append(t(i)),de(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}else Ut(e,!1)}function lt(t,e){var n=t.oFeatures,r=n.bFilter;n.bSort&&Zt(t),r?yt(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,ut(t),t._drawHold=!1}function ct(e){var n=e.oClasses,r=t(e.nTable),i=t("<div/>").insertBefore(r),o=e.oFeatures,a=t("<div/>",{id:e.sTableId+"_wrapper",class:n.sWrapper+(e.nTFoot?"":" "+n.sNoFooter)});e.nHolding=i[0],e.nTableWrapper=a[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var s,l,c,f,d,h,p=e.sDom.split(""),v=0;v<p.length;v++){if(s=null,"<"==(l=p[v])){if(c=t("<div/>")[0],"'"==(f=p[v+1])||'"'==f){for(d="",h=2;p[v+h]!=f;)d+=p[v+h],h++;if("H"==d?d=n.sJUIHeader:"F"==d&&(d=n.sJUIFooter),-1!=d.indexOf(".")){var b=d.split(".");c.id=b[0].substr(1,b[0].length-1),c.className=b[1]}else"#"==d.charAt(0)?c.id=d.substr(1,d.length-1):c.className=d;v+=h}a.append(c),a=t(c)}else if(">"==l)a=a.parent();else if("l"==l&&o.bPaginate&&o.bLengthChange)s=Mt(e);else if("f"==l&&o.bFilter)s=mt(e);else if("r"==l&&o.bProcessing)s=Ft(e);else if("t"==l)s=Gt(e);else if("i"==l&&o.bInfo)s=Lt(e);else if("p"==l&&o.bPaginate)s=jt(e);else if(0!==u.ext.feature.length)for(var g=u.ext.feature,m=0,y=g.length;m<y;m++)if(l==g[m].cFeature){s=g[m].fnInit(e);break}if(s){var E=e.aanFeatures;E[l]||(E[l]=[]),E[l].push(s),a.append(s)}}i.replaceWith(a),e.nHolding=null}function ft(e,n){var r,i,o,a,s,u,l,c,f,d,h=t(n).children("tr"),p=function(t,e,n){for(var r=t[e];r[n];)n++;return n};for(e.splice(0,e.length),o=0,u=h.length;o<u;o++)e.push([]);for(o=0,u=h.length;o<u;o++)for(i=(r=h[o]).firstChild;i;){if("TD"==i.nodeName.toUpperCase()||"TH"==i.nodeName.toUpperCase())for(c=(c=1*i.getAttribute("colspan"))&&0!==c&&1!==c?c:1,f=(f=1*i.getAttribute("rowspan"))&&0!==f&&1!==f?f:1,l=p(e,o,0),d=1===c,s=0;s<c;s++)for(a=0;a<f;a++)e[o+a][l+s]={cell:i,unique:d},e[o+a].nTr=r;i=i.nextSibling}}function dt(t,e,n){var r=[];n||(n=t.aoHeader,e&&ft(n=[],e));for(var i=0,o=n.length;i<o;i++)for(var a=0,s=n[i].length;a<s;a++)!n[i][a].unique||r[a]&&t.bSortCellsTop||(r[a]=n[i][a].cell);return r}function ht(e,n,r){if(de(e,"aoServerParams","serverParams",[n]),n&&Array.isArray(n)){var i={},o=/(.*?)\[\]$/;t.each(n,(function(t,e){var n=e.name.match(o);if(n){var r=n[0];i[r]||(i[r]=[]),i[r].push(e.value)}else i[e.name]=e.value})),n=i}var a,s=e.ajax,u=e.oInstance,l=function(t){de(e,null,"xhr",[e,t,e.jqXHR]),r(t)};if(t.isPlainObject(s)&&s.data){var c="function"==typeof(a=s.data)?a(n,e):a;n="function"==typeof a&&c?c:t.extend(!0,n,c),delete s.data}var f={data:n,success:function(t){var n=t.error||t.sError;n&&se(e,0,n),e.json=t,l(t)},dataType:"json",cache:!1,type:e.sServerMethod,error:function(n,r){var i=de(e,null,"xhr",[e,null,e.jqXHR]);-1===t.inArray(!0,i)&&("parsererror"==r?se(e,0,"Invalid JSON response",1):4===n.readyState&&se(e,0,"Ajax error",7)),Ut(e,!1)}};e.oAjaxData=n,de(e,null,"preXhr",[e,n]),e.fnServerData?e.fnServerData.call(u,e.sAjaxSource,t.map(n,(function(t,e){return{name:e,value:t}})),l,e):e.sAjaxSource||"string"==typeof s?e.jqXHR=t.ajax(t.extend(f,{url:s||e.sAjaxSource})):"function"==typeof s?e.jqXHR=s.call(u,n,l,e):(e.jqXHR=t.ajax(t.extend(f,s)),s.data=a)}function pt(t){return!t.bAjaxDataGet||(t.iDraw++,Ut(t,!0),ht(t,vt(t),(function(e){bt(t,e)})),!1)}function vt(e){var n,r,i,o,a=e.aoColumns,s=a.length,l=e.oFeatures,c=e.oPreviousSearch,f=e.aoPreSearchCols,d=[],h=Xt(e),p=e._iDisplayStart,v=!1!==l.bPaginate?e._iDisplayLength:-1,b=function(t,e){d.push({name:t,value:e})};b("sEcho",e.iDraw),b("iColumns",s),b("sColumns",E(a,"sName").join(",")),b("iDisplayStart",p),b("iDisplayLength",v);var g={draw:e.iDraw,columns:[],order:[],start:p,length:v,search:{value:c.sSearch,regex:c.bRegex}};for(n=0;n<s;n++)g.columns.push({data:r="function"==typeof(i=a[n]).mData?"function":i.mData,name:i.sName,searchable:i.bSearchable,orderable:i.bSortable,search:{value:(o=f[n]).sSearch,regex:o.bRegex}}),b("mDataProp_"+n,r),l.bFilter&&(b("sSearch_"+n,o.sSearch),b("bRegex_"+n,o.bRegex),b("bSearchable_"+n,i.bSearchable)),l.bSort&&b("bSortable_"+n,i.bSortable);l.bFilter&&(b("sSearch",c.sSearch),b("bRegex",c.bRegex)),l.bSort&&(t.each(h,(function(t,e){g.order.push({column:e.col,dir:e.dir}),b("iSortCol_"+t,e.col),b("sSortDir_"+t,e.dir)})),b("iSortingCols",h.length));var m=u.ext.legacy.ajax;return null===m?e.sAjaxSource?d:g:m?d:g}function bt(t,e){var n=function(t,n){return e[t]!==r?e[t]:e[n]},i=gt(t,e),o=n("sEcho","draw"),a=n("iTotalRecords","recordsTotal"),s=n("iTotalDisplayRecords","recordsFiltered");if(o!==r){if(1*o<t.iDraw)return;t.iDraw=1*o}tt(t),t._iRecordsTotal=parseInt(a,10),t._iRecordsDisplay=parseInt(s,10);for(var u=0,l=i.length;u<l;u++)H(t,i[u]);t.aiDisplay=t.aiDisplayMaster.slice(),t.bAjaxDataGet=!1,ut(t),t._bInitComplete||Pt(t,e),t.bAjaxDataGet=!0,Ut(t,!1)}function gt(e,n){var i=t.isPlainObject(e.ajax)&&e.ajax.dataSrc!==r?e.ajax.dataSrc:e.sAjaxDataProp;return"data"===i?n.aaData||n[i]:""!==i?X(i)(n):n}function mt(e){var r=e.oClasses,i=e.sTableId,o=e.oLanguage,a=e.oPreviousSearch,s=e.aanFeatures,u='<input type="search" class="'+r.sFilterInput+'"/>',l=o.sSearch;l=l.match(/_INPUT_/)?l.replace("_INPUT_",u):l+u;var c=t("<div/>",{id:s.f?null:i+"_filter",class:r.sFilter}).append(t("<label/>").append(l)),f=function(){var t=this.value?this.value:"";t!=a.sSearch&&(yt(e,{sSearch:t,bRegex:a.bRegex,bSmart:a.bSmart,bCaseInsensitive:a.bCaseInsensitive}),e._iDisplayStart=0,ut(e))},d=null!==e.searchDelay?e.searchDelay:"ssp"===ve(e)?400:0,h=t("input",c).val(a.sSearch).attr("placeholder",o.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",d?$t(f,d):f).on("mouseup",(function(){setTimeout((function(){f.call(h[0])}),10)})).on("keypress.DT",(function(t){if(13==t.keyCode)return!1})).attr("aria-controls",i);return t(e.nTable).on("search.dt.DT",(function(t,r){if(e===r)try{h[0]!==n.activeElement&&h.val(a.sSearch)}catch(t){}})),c[0]}function yt(t,e,n){var i=t.oPreviousSearch,o=t.aoPreSearchCols,a=function(t){i.sSearch=t.sSearch,i.bRegex=t.bRegex,i.bSmart=t.bSmart,i.bCaseInsensitive=t.bCaseInsensitive},s=function(t){return t.bEscapeRegex!==r?!t.bEscapeRegex:t.bRegex};if(B(t),"ssp"!=ve(t)){Tt(t,e.sSearch,n,s(e),e.bSmart,e.bCaseInsensitive),a(e);for(var u=0;u<o.length;u++)xt(t,o[u].sSearch,u,s(o[u]),o[u].bSmart,o[u].bCaseInsensitive);Et(t)}else a(e);t.bFiltered=!0,de(t,null,"search",[t])}function Et(e){for(var n,r,i=u.ext.search,o=e.aiDisplay,a=0,s=i.length;a<s;a++){for(var l=[],c=0,f=o.length;c<f;c++)i[a](e,(n=e.aoData[r=o[c]])._aFilterData,r,n._aData,c)&&l.push(r);o.length=0,t.merge(o,l)}}function xt(t,e,n,r,i,o){if(""!==e){for(var a=[],s=t.aiDisplay,u=_t(e,r,i,o),l=0;l<s.length;l++)u.test(t.aoData[s[l]]._aFilterData[n])&&a.push(s[l]);t.aiDisplay=a}}function Tt(t,e,n,r,i,o){var a,s,l,c=_t(e,r,i,o),f=t.oPreviousSearch.sSearch,d=t.aiDisplayMaster,h=[];if(0!==u.ext.search.length&&(n=!0),s=Nt(t),e.length<=0)t.aiDisplay=d.slice();else{for((s||n||r||f.length>e.length||0!==e.indexOf(f)||t.bSorted)&&(t.aiDisplay=d.slice()),a=t.aiDisplay,l=0;l<a.length;l++)c.test(t.aoData[a[l]]._sFilterRow)&&h.push(a[l]);t.aiDisplay=h}}function _t(e,n,r,i){if(e=n?e:St(e),r){var o=t.map(e.match(/"[^"]+"|[^ ]+/g)||[""],(function(t){if('"'===t.charAt(0)){var e=t.match(/^"(.*)"$/);t=e?e[1]:t}return t.replace('"',"")}));e="^(?=.*?"+o.join(")(?=.*?")+").*$"}return new RegExp(e,i?"i":"")}var St=u.util.escapeRegex,wt=t("<div>")[0],At=wt.textContent!==r;function Nt(t){var e,n,r,i,o,a,s,l,c=t.aoColumns,f=u.ext.type.search,d=!1;for(n=0,i=t.aoData.length;n<i;n++)if(!(l=t.aoData[n])._aFilterData){for(a=[],r=0,o=c.length;r<o;r++)(e=c[r]).bSearchable?(s=$(t,n,r,"filter"),f[e.sType]&&(s=f[e.sType](s)),null===s&&(s=""),"string"!=typeof s&&s.toString&&(s=s.toString())):s="",s.indexOf&&-1!==s.indexOf("&")&&(wt.innerHTML=s,s=At?wt.textContent:wt.innerText),s.replace&&(s=s.replace(/[\r\n\u2028]/g,"")),a.push(s);l._aFilterData=a,l._sFilterRow=a.join(" "),d=!0}return d}function It(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function Ct(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function Lt(e){var n=e.sTableId,r=e.aanFeatures.i,i=t("<div/>",{class:e.oClasses.sInfo,id:r?null:n+"_info"});return r||(e.aoDrawCallback.push({fn:Rt,sName:"information"}),i.attr("role","status").attr("aria-live","polite"),t(e.nTable).attr("aria-describedby",n+"_info")),i[0]}function Rt(e){var n=e.aanFeatures.i;if(0!==n.length){var r=e.oLanguage,i=e._iDisplayStart+1,o=e.fnDisplayEnd(),a=e.fnRecordsTotal(),s=e.fnRecordsDisplay(),u=s?r.sInfo:r.sInfoEmpty;s!==a&&(u+=" "+r.sInfoFiltered),u=Ot(e,u+=r.sInfoPostFix);var l=r.fnInfoCallback;null!==l&&(u=l.call(e.oInstance,e,i,o,a,s,u)),t(n).html(u)}}function Ot(t,e){var n=t.fnFormatNumber,r=t._iDisplayStart+1,i=t._iDisplayLength,o=t.fnRecordsDisplay(),a=-1===i;return e.replace(/_START_/g,n.call(t,r)).replace(/_END_/g,n.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,n.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(t,o)).replace(/_PAGE_/g,n.call(t,a?1:Math.ceil(r/i))).replace(/_PAGES_/g,n.call(t,a?1:Math.ceil(o/i)))}function kt(t){var e,n,r,i=t.iInitDisplayStart,o=t.aoColumns,a=t.oFeatures,s=t.bDeferLoading;if(t.bInitialised){for(ct(t),at(t),st(t,t.aoHeader),st(t,t.aoFooter),Ut(t,!0),a.bAutoWidth&&zt(t),e=0,n=o.length;e<n;e++)(r=o[e]).sWidth&&(r.nTh.style.width=Kt(r.sWidth));de(t,null,"preInit",[t]),lt(t);var u=ve(t);("ssp"!=u||s)&&("ajax"==u?ht(t,[],(function(n){var r=gt(t,n);for(e=0;e<r.length;e++)H(t,r[e]);t.iInitDisplayStart=i,lt(t),Ut(t,!1),Pt(t,n)})):(Ut(t,!1),Pt(t)))}else setTimeout((function(){kt(t)}),200)}function Pt(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&j(t),de(t,null,"plugin-init",[t,e]),de(t,"aoInitComplete","init",[t,e])}function Dt(t,e){var n=parseInt(e,10);t._iDisplayLength=n,he(t),de(t,null,"length",[t,n])}function Mt(e){for(var n=e.oClasses,r=e.sTableId,i=e.aLengthMenu,o=Array.isArray(i[0]),a=o?i[0]:i,s=o?i[1]:i,u=t("<select/>",{name:r+"_length","aria-controls":r,class:n.sLengthSelect}),l=0,c=a.length;l<c;l++)u[0][l]=new Option("number"==typeof s[l]?e.fnFormatNumber(s[l]):s[l],a[l]);var f=t("<div><label/></div>").addClass(n.sLength);return e.aanFeatures.l||(f[0].id=r+"_length"),f.children().append(e.oLanguage.sLengthMenu.replace("_MENU_",u[0].outerHTML)),t("select",f).val(e._iDisplayLength).on("change.DT",(function(){Dt(e,t(this).val()),ut(e)})),t(e.nTable).on("length.dt.DT",(function(n,r,i){e===r&&t("select",f).val(i)})),f[0]}function jt(e){var n=e.sPaginationType,r=u.ext.pager[n],i="function"==typeof r,o=function(t){ut(t)},a=t("<div/>").addClass(e.oClasses.sPaging+n)[0],s=e.aanFeatures;return i||r.fnInit(e,a,o),s.p||(a.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(t){if(i){var e,n,a=t._iDisplayStart,u=t._iDisplayLength,l=t.fnRecordsDisplay(),c=-1===u,f=c?0:Math.ceil(a/u),d=c?1:Math.ceil(l/u),h=r(f,d);for(e=0,n=s.p.length;e<n;e++)pe(t,"pageButton")(t,s.p[e],e,h,f,d)}else r.fnUpdate(t,o)},sName:"pagination"})),a}function qt(t,e,n){var r=t._iDisplayStart,i=t._iDisplayLength,o=t.fnRecordsDisplay();0===o||-1===i?r=0:"number"==typeof e?(r=e*i)>o&&(r=0):"first"==e?r=0:"previous"==e?(r=i>=0?r-i:0)<0&&(r=0):"next"==e?r+i<o&&(r+=i):"last"==e?r=Math.floor((o-1)/i)*i:se(t,0,"Unknown paging action: "+e,5);var a=t._iDisplayStart!==r;return t._iDisplayStart=r,a&&(de(t,null,"page",[t]),n&&ut(t)),a}function Ft(e){return t("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function Ut(e,n){e.oFeatures.bProcessing&&t(e.aanFeatures.r).css("display",n?"block":"none"),de(e,null,"processing",[e,n])}function Gt(e){var n=t(e.nTable);n.attr("role","grid");var r=e.oScroll;if(""===r.sX&&""===r.sY)return e.nTable;var i=r.sX,o=r.sY,a=e.oClasses,s=n.children("caption"),u=s.length?s[0]._captionSide:null,l=t(n[0].cloneNode(!1)),c=t(n[0].cloneNode(!1)),f=n.children("tfoot"),d="<div/>",h=function(t){return t?Kt(t):null};f.length||(f=null);var p=t(d,{class:a.sScrollWrapper}).append(t(d,{class:a.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:i?h(i):"100%"}).append(t(d,{class:a.sScrollHeadInner}).css({"box-sizing":"content-box",width:r.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===u?s:null).append(n.children("thead"))))).append(t(d,{class:a.sScrollBody}).css({position:"relative",overflow:"auto",width:h(i)}).append(n));f&&p.append(t(d,{class:a.sScrollFoot}).css({overflow:"hidden",border:0,width:i?h(i):"100%"}).append(t(d,{class:a.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===u?s:null).append(n.children("tfoot")))));var v=p.children(),b=v[0],g=v[1],m=f?v[2]:null;return i&&t(g).on("scroll.DT",(function(){var t=this.scrollLeft;b.scrollLeft=t,f&&(m.scrollLeft=t)})),t(g).css("max-height",o),r.bCollapse||t(g).css("height",o),e.nScrollHead=b,e.nScrollBody=g,e.nScrollFoot=m,e.aoDrawCallback.push({fn:Bt,sName:"scrolling"}),p[0]}function Bt(e){var n,i,o,a,s,u,l,c,f,d=e.oScroll,h=d.sX,p=d.sXInner,v=d.sY,b=d.iBarWidth,g=t(e.nScrollHead),m=g[0].style,y=g.children("div"),x=y[0].style,T=y.children("table"),_=e.nScrollBody,S=t(_),w=_.style,A=t(e.nScrollFoot).children("div"),N=A.children("table"),I=t(e.nTHead),C=t(e.nTable),L=C[0],R=L.style,O=e.nTFoot?t(e.nTFoot):null,k=e.oBrowser,P=k.bScrollOversize,D=E(e.aoColumns,"nTh"),M=[],F=[],U=[],G=[],B=function(t){var e=t.style;e.paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0},V=_.scrollHeight>_.clientHeight;if(e.scrollBarVis!==V&&e.scrollBarVis!==r)return e.scrollBarVis=V,void j(e);e.scrollBarVis=V,C.children("thead, tfoot").remove(),O&&(u=O.clone().prependTo(C),i=O.find("tr"),a=u.find("tr")),s=I.clone().prependTo(C),n=I.find("tr"),o=s.find("tr"),s.find("th, td").removeAttr("tabindex"),h||(w.width="100%",g[0].style.width="100%"),t.each(dt(e,s),(function(t,n){l=q(e,t),n.style.width=e.aoColumns[l].sWidth})),O&&Vt((function(t){t.style.width=""}),a),f=C.outerWidth(),""===h?(R.width="100%",P&&(C.find("tbody").height()>_.offsetHeight||"scroll"==S.css("overflow-y"))&&(R.width=Kt(C.outerWidth()-b)),f=C.outerWidth()):""!==p&&(R.width=Kt(p),f=C.outerWidth()),Vt(B,o),Vt((function(e){U.push(e.innerHTML),M.push(Kt(t(e).css("width")))}),o),Vt((function(e,n){-1!==t.inArray(e,D)&&(e.style.width=M[n])}),n),t(o).height(0),O&&(Vt(B,a),Vt((function(e){G.push(e.innerHTML),F.push(Kt(t(e).css("width")))}),a),Vt((function(t,e){t.style.width=F[e]}),i),t(a).height(0)),Vt((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+U[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=M[e]}),o),O&&Vt((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+G[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=F[e]}),a),C.outerWidth()<f?(c=_.scrollHeight>_.offsetHeight||"scroll"==S.css("overflow-y")?f+b:f,P&&(_.scrollHeight>_.offsetHeight||"scroll"==S.css("overflow-y"))&&(R.width=Kt(c-b)),""!==h&&""===p||se(e,1,"Possible column misalignment",6)):c="100%",w.width=Kt(c),m.width=Kt(c),O&&(e.nScrollFoot.style.width=Kt(c)),v||P&&(w.height=Kt(L.offsetHeight+b));var H=C.outerWidth();T[0].style.width=Kt(H),x.width=Kt(H);var z=C.height()>_.clientHeight||"scroll"==S.css("overflow-y"),$="padding"+(k.bScrollbarLeft?"Left":"Right");x[$]=z?b+"px":"0px",O&&(N[0].style.width=Kt(H),A[0].style.width=Kt(H),A[0].style[$]=z?b+"px":"0px"),C.children("colgroup").insertBefore(C.children("thead")),S.trigger("scroll"),!e.bSorted&&!e.bFiltered||e._drawHold||(_.scrollTop=0)}function Vt(t,e,n){for(var r,i,o=0,a=0,s=e.length;a<s;){for(r=e[a].firstChild,i=n?n[a].firstChild:null;r;)1===r.nodeType&&(n?t(r,i,o):t(r,o),o++),r=r.nextSibling,i=n?i.nextSibling:null;a++}}var Ht=/<.*?>/g;function zt(n){var r,i,o,a=n.nTable,s=n.aoColumns,u=n.oScroll,l=u.sY,c=u.sX,f=u.sXInner,d=s.length,h=G(n,"bVisible"),p=t("th",n.nTHead),v=a.getAttribute("width"),b=a.parentNode,g=!1,m=n.oBrowser,y=m.bScrollOversize,E=a.style.width;for(E&&-1!==E.indexOf("%")&&(v=E),r=0;r<h.length;r++)null!==(i=s[h[r]]).sWidth&&(i.sWidth=Yt(i.sWidthOrig,b),g=!0);if(y||!g&&!c&&!l&&d==U(n)&&d==p.length)for(r=0;r<d;r++){var x=q(n,r);null!==x&&(s[x].sWidth=Kt(p.eq(r).width()))}else{var T=t(a).clone().css("visibility","hidden").removeAttr("id");T.find("tbody tr").remove();var _=t("<tr/>").appendTo(T.find("tbody"));for(T.find("thead, tfoot").remove(),T.append(t(n.nTHead).clone()).append(t(n.nTFoot).clone()),T.find("tfoot th, tfoot td").css("width",""),p=dt(n,T.find("thead")[0]),r=0;r<h.length;r++)p[r].style.width=null!==(i=s[h[r]]).sWidthOrig&&""!==i.sWidthOrig?Kt(i.sWidthOrig):"",i.sWidthOrig&&c&&t(p[r]).append(t("<div/>").css({width:i.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(r=0;r<h.length;r++)i=s[o=h[r]],t(Wt(n,o)).clone(!1).append(i.sContentPadding).appendTo(_);t("[name]",T).removeAttr("name");var S=t("<div/>").css(c||l?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(T).appendTo(b);c&&f?T.width(f):c?(T.css("width","auto"),T.removeAttr("width"),T.width()<b.clientWidth&&v&&T.width(b.clientWidth)):l?T.width(b.clientWidth):v&&T.width(v);var w=0;for(r=0;r<h.length;r++){var A=t(p[r]),N=A.outerWidth()-A.width(),I=m.bBounding?Math.ceil(p[r].getBoundingClientRect().width):A.outerWidth();w+=I,s[h[r]].sWidth=Kt(I-N)}a.style.width=Kt(w),S.remove()}if(v&&(a.style.width=Kt(v)),(v||c)&&!n._reszEvt){var C=function(){t(e).on("resize.DT-"+n.sInstance,$t((function(){j(n)})))};y?setTimeout(C,1e3):C(),n._reszEvt=!0}}var $t=u.util.throttle;function Yt(e,r){if(!e)return 0;var i=t("<div/>").css("width",Kt(e)).appendTo(r||n.body),o=i[0].offsetWidth;return i.remove(),o}function Wt(e,n){var r=Qt(e,n);if(r<0)return null;var i=e.aoData[r];return i.nTr?i.anCells[n]:t("<td/>").html($(e,r,n,"display"))[0]}function Qt(t,e){for(var n,r=-1,i=-1,o=0,a=t.aoData.length;o<a;o++)(n=(n=(n=$(t,o,e,"display")+"").replace(Ht,"")).replace(/&nbsp;/g," ")).length>r&&(r=n.length,i=o);return i}function Kt(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function Xt(e){var n,i,o,a,s,l,c,f=[],d=e.aoColumns,h=e.aaSortingFixed,p=t.isPlainObject(h),v=[],b=function(e){e.length&&!Array.isArray(e[0])?v.push(e):t.merge(v,e)};for(Array.isArray(h)&&b(h),p&&h.pre&&b(h.pre),b(e.aaSorting),p&&h.post&&b(h.post),n=0;n<v.length;n++)for(i=0,o=(a=d[c=v[n][0]].aDataSort).length;i<o;i++)l=d[s=a[i]].sType||"string",v[n]._idx===r&&(v[n]._idx=t.inArray(v[n][1],d[s].asSorting)),f.push({src:c,col:s,dir:v[n][1],index:v[n]._idx,type:l,formatter:u.ext.type.order[l+"-pre"]});return f}function Zt(t){var e,n,r,i,o,a=[],s=u.ext.type.order,l=t.aoData,c=0,f=t.aiDisplayMaster;for(B(t),e=0,n=(o=Xt(t)).length;e<n;e++)(i=o[e]).formatter&&c++,re(t,i.col);if("ssp"!=ve(t)&&0!==o.length){for(e=0,r=f.length;e<r;e++)a[f[e]]=e;f.sort(c===o.length?function(t,e){var n,r,i,s,u,c=o.length,f=l[t]._aSortData,d=l[e]._aSortData;for(i=0;i<c;i++)if(0!=(s=(n=f[(u=o[i]).col])<(r=d[u.col])?-1:n>r?1:0))return"asc"===u.dir?s:-s;return(n=a[t])<(r=a[e])?-1:n>r?1:0}:function(t,e){var n,r,i,u,c,f=o.length,d=l[t]._aSortData,h=l[e]._aSortData;for(i=0;i<f;i++)if(n=d[(c=o[i]).col],0!==(u=(s[c.type+"-"+c.dir]||s["string-"+c.dir])(n,r=h[c.col])))return u;return(n=a[t])<(r=a[e])?-1:n>r?1:0})}t.bSorted=!0}function Jt(t){for(var e,n,r=t.aoColumns,i=Xt(t),o=t.oLanguage.oAria,a=0,s=r.length;a<s;a++){var u=r[a],l=u.asSorting,c=u.sTitle.replace(/<.*?>/g,""),f=u.nTh;f.removeAttribute("aria-sort"),u.bSortable?(i.length>0&&i[0].col==a?(f.setAttribute("aria-sort","asc"==i[0].dir?"ascending":"descending"),n=l[i[0].index+1]||l[0]):n=l[0],e=c+("asc"===n?o.sSortAscending:o.sSortDescending)):e=c,f.setAttribute("aria-label",e)}}function te(e,n,i,o){var a,s=e.aaSorting,u=e.aoColumns[n].asSorting,l=function(e,n){var i=e._idx;return i===r&&(i=t.inArray(e[1],u)),i+1<u.length?i+1:n?null:0};if("number"==typeof s[0]&&(s=e.aaSorting=[s]),i&&e.oFeatures.bSortMulti){var c=t.inArray(n,E(s,"0"));-1!==c?(null===(a=l(s[c],!0))&&1===s.length&&(a=0),null===a?s.splice(c,1):(s[c][1]=u[a],s[c]._idx=a)):(s.push([n,u[0],0]),s[s.length-1]._idx=0)}else s.length&&s[0][0]==n?(a=l(s[0]),s.length=1,s[0][1]=u[a],s[0]._idx=a):(s.length=0,s.push([n,u[0]]),s[0]._idx=0);lt(e),"function"==typeof o&&o(e)}function ee(t,e,n,r){var i=t.aoColumns[n];ce(e,{},(function(e){!1!==i.bSortable&&(t.oFeatures.bProcessing?(Ut(t,!0),setTimeout((function(){te(t,n,e.shiftKey,r),"ssp"!==ve(t)&&Ut(t,!1)}),0)):te(t,n,e.shiftKey,r))}))}function ne(e){var n,r,i=e.aLastSort,o=e.oClasses.sSortColumn,a=Xt(e),s=e.oFeatures;if(s.bSort&&s.bSortClasses){for(n=0,r=i.length;n<r;n++)t(E(e.aoData,"anCells",i[n].src)).removeClass(o+(n<2?n+1:3));for(n=0,r=a.length;n<r;n++)t(E(e.aoData,"anCells",a[n].src)).addClass(o+(n<2?n+1:3))}e.aLastSort=a}function re(t,e){var n,r,i,o=t.aoColumns[e],a=u.ext.order[o.sSortDataType];a&&(n=a.call(t.oInstance,t,e,F(t,e)));for(var s=u.ext.type.order[o.sType+"-pre"],l=0,c=t.aoData.length;l<c;l++)(r=t.aoData[l])._aSortData||(r._aSortData=[]),r._aSortData[e]&&!a||(i=a?n[l]:$(t,l,e,"sort"),r._aSortData[e]=s?s(i):i)}function ie(e){if(e.oFeatures.bStateSave&&!e.bDestroying){var n={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:t.extend(!0,[],e.aaSorting),search:It(e.oPreviousSearch),columns:t.map(e.aoColumns,(function(t,n){return{visible:t.bVisible,search:It(e.aoPreSearchCols[n])}}))};de(e,"aoStateSaveParams","stateSaveParams",[e,n]),e.oSavedState=n,e.fnStateSaveCallback.call(e.oInstance,e,n)}}function oe(e,n,i){var o,a,s=e.aoColumns,u=function(n){if(n&&n.time){var u=de(e,"aoStateLoadParams","stateLoadParams",[e,n]);if(-1===t.inArray(!1,u)){var l=e.iStateDuration;if(l>0&&n.time<+new Date-1e3*l)i();else if(n.columns&&s.length!==n.columns.length)i();else{if(e.oLoadedState=t.extend(!0,{},n),n.start!==r&&(e._iDisplayStart=n.start,e.iInitDisplayStart=n.start),n.length!==r&&(e._iDisplayLength=n.length),n.order!==r&&(e.aaSorting=[],t.each(n.order,(function(t,n){e.aaSorting.push(n[0]>=s.length?[0,n[1]]:n)}))),n.search!==r&&t.extend(e.oPreviousSearch,Ct(n.search)),n.columns)for(o=0,a=n.columns.length;o<a;o++){var c=n.columns[o];c.visible!==r&&(s[o].bVisible=c.visible),c.search!==r&&t.extend(e.aoPreSearchCols[o],Ct(c.search))}de(e,"aoStateLoaded","stateLoaded",[e,n]),i()}}else i()}else i()};if(e.oFeatures.bStateSave){var l=e.fnStateLoadCallback.call(e.oInstance,e,u);l!==r&&u(l)}else i()}function ae(e){var n=u.settings,r=t.inArray(e,E(n,"nTable"));return-1!==r?n[r]:null}function se(t,n,r,i){if(r="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+r,i&&(r+=". For more information about this error, please see http://datatables.net/tn/"+i),n)e.console&&console.log&&console.log(r);else{var o=u.ext,a=o.sErrMode||o.errMode;if(t&&de(t,null,"error",[t,i,r]),"alert"==a)alert(r);else{if("throw"==a)throw new Error(r);"function"==typeof a&&a(t,i,r)}}}function ue(e,n,i,o){Array.isArray(i)?t.each(i,(function(t,r){Array.isArray(r)?ue(e,n,r[0],r[1]):ue(e,n,r)})):(o===r&&(o=i),n[i]!==r&&(e[o]=n[i]))}function le(e,n,r){var i;for(var o in n)n.hasOwnProperty(o)&&(t.isPlainObject(i=n[o])?(t.isPlainObject(e[o])||(e[o]={}),t.extend(!0,e[o],i)):e[o]=r&&"data"!==o&&"aaData"!==o&&Array.isArray(i)?i.slice():i);return e}function ce(e,n,r){t(e).on("click.DT",n,(function(n){t(e).trigger("blur"),r(n)})).on("keypress.DT",n,(function(t){13===t.which&&(t.preventDefault(),r(t))})).on("selectstart.DT",(function(){return!1}))}function fe(t,e,n,r){n&&t[e].push({fn:n,sName:r})}function de(e,n,r,i){var o=[];if(n&&(o=t.map(e[n].slice().reverse(),(function(t){return t.fn.apply(e.oInstance,i)}))),null!==r){var a=t.Event(r+".dt");t(e.nTable).trigger(a,i),o.push(a.result)}return o}function he(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),r=t._iDisplayLength;e>=n&&(e=n-r),e-=e%r,(-1===r||e<0)&&(e=0),t._iDisplayStart=e}function pe(e,n){var r=e.renderer,i=u.ext.renderer[n];return t.isPlainObject(r)&&r[n]?i[r[n]]||i._:"string"==typeof r&&i[r]||i._}function ve(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}var be=[],ge=Array.prototype;o=function(e,n){if(!(this instanceof o))return new o(e,n);var r=[],i=function(e){var n=function(e){var n,r,i=u.settings,o=t.map(i,(function(t){return t.nTable}));return e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?-1!==(n=t.inArray(e,o))?[i[n]]:null:e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?r=t(e):e instanceof t&&(r=e),r?r.map((function(){return-1!==(n=t.inArray(this,o))?i[n]:null})).toArray():void 0):[]}(e);n&&r.push.apply(r,n)};if(Array.isArray(e))for(var a=0,s=e.length;a<s;a++)i(e[a]);else i(e);this.context=w(r),n&&t.merge(this,n),this.selector={rows:null,cols:null,opts:null},o.extend(this,this,be)},u.Api=o,t.extend(o.prototype,{any:function(){return 0!==this.count()},concat:ge.concat,context:[],count:function(){return this.flatten().length},each:function(t){for(var e=0,n=this.length;e<n;e++)t.call(this,this[e],e,this);return this},eq:function(t){var e=this.context;return e.length>t?new o(e[t],this[t]):null},filter:function(t){var e=[];if(ge.filter)e=ge.filter.call(this,t,this);else for(var n=0,r=this.length;n<r;n++)t.call(this,this[n],n,this)&&e.push(this[n]);return new o(this.context,e)},flatten:function(){var t=[];return new o(this.context,t.concat.apply(t,this.toArray()))},join:ge.join,indexOf:ge.indexOf||function(t,e){for(var n=e||0,r=this.length;n<r;n++)if(this[n]===t)return n;return-1},iterator:function(t,e,n,i){var a,s,u,l,c,f,d,h,p=[],v=this.context,b=this.selector;for("string"==typeof t&&(i=n,n=e,e=t,t=!1),s=0,u=v.length;s<u;s++){var g=new o(v[s]);if("table"===e)(a=n.call(g,v[s],s))!==r&&p.push(a);else if("columns"===e||"rows"===e)(a=n.call(g,v[s],this[s],s))!==r&&p.push(a);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(d=this[s],"column-rows"===e&&(f=_e(v[s],b.opts)),l=0,c=d.length;l<c;l++)h=d[l],(a="cell"===e?n.call(g,v[s],h.row,h.column,s,l):n.call(g,v[s],h,s,l,f))!==r&&p.push(a)}if(p.length||i){var m=new o(v,t?p.concat.apply([],p):p),y=m.selector;return y.rows=b.rows,y.cols=b.cols,y.opts=b.opts,m}return this},lastIndexOf:ge.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(ge.map)e=ge.map.call(this,t,this);else for(var n=0,r=this.length;n<r;n++)e.push(t.call(this,this[n],n));return new o(this.context,e)},pluck:function(t){return this.map((function(e){return e[t]}))},pop:ge.pop,push:ge.push,reduce:ge.reduce||function(t,e){return P(this,t,e,0,this.length,1)},reduceRight:ge.reduceRight||function(t,e){return P(this,t,e,this.length-1,-1,-1)},reverse:ge.reverse,selector:null,shift:ge.shift,slice:function(){return new o(this.context,this)},sort:ge.sort,splice:ge.splice,toArray:function(){return ge.slice.call(this)},to$:function(){return t(this)},toJQuery:function(){return t(this)},unique:function(){return new o(this.context,w(this))},unshift:ge.unshift}),o.extend=function(t,e,n){if(n.length&&e&&(e instanceof o||e.__dt_wrapper)){var r,i,a,s=function(t,e,n){return function(){var r=e.apply(t,arguments);return o.extend(r,r,n.methodExt),r}};for(r=0,i=n.length;r<i;r++)e[(a=n[r]).name]="function"===a.type?s(t,a.val,a):"object"===a.type?{}:a.val,e[a.name].__dt_wrapper=!0,o.extend(t,e[a.name],a.propExt)}},o.register=a=function(e,n){if(Array.isArray(e))for(var r=0,i=e.length;r<i;r++)o.register(e[r],n);else{var a,s,u,l,c=e.split("."),f=be,d=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n].name===e)return t[n];return null};for(a=0,s=c.length;a<s;a++){var h=d(f,u=(l=-1!==c[a].indexOf("()"))?c[a].replace("()",""):c[a]);h||f.push(h={name:u,val:{},methodExt:[],propExt:[],type:"object"}),a===s-1?(h.val=n,h.type="function"==typeof n?"function":t.isPlainObject(n)?"object":"other"):f=l?h.methodExt:h.propExt}}},o.registerPlural=s=function(t,e,n){o.register(t,n),o.register(e,(function(){var t=n.apply(this,arguments);return t===this?this:t instanceof o?t.length?Array.isArray(t[0])?new o(t.context,t[0]):t[0]:r:t}))};var me=function(e,n){if(Array.isArray(e))return t.map(e,(function(t){return me(t,n)}));if("number"==typeof e)return[n[e]];var r=t.map(n,(function(t){return t.nTable}));return t(r).filter(e).map((function(){var e=t.inArray(this,r);return n[e]})).toArray()};a("tables()",(function(t){return t!==r&&null!==t?new o(me(t,this.context)):this})),a("table()",(function(t){var e=this.tables(t),n=e.context;return n.length?new o(n[0]):e})),s("tables().nodes()","table().node()",(function(){return this.iterator("table",(function(t){return t.nTable}),1)})),s("tables().body()","table().body()",(function(){return this.iterator("table",(function(t){return t.nTBody}),1)})),s("tables().header()","table().header()",(function(){return this.iterator("table",(function(t){return t.nTHead}),1)})),s("tables().footer()","table().footer()",(function(){return this.iterator("table",(function(t){return t.nTFoot}),1)})),s("tables().containers()","table().container()",(function(){return this.iterator("table",(function(t){return t.nTableWrapper}),1)})),a("draw()",(function(t){return this.iterator("table",(function(e){"page"===t?ut(e):("string"==typeof t&&(t="full-hold"!==t),lt(e,!1===t))}))})),a("page()",(function(t){return t===r?this.page.info().page:this.iterator("table",(function(e){qt(e,t)}))})),a("page.info()",(function(){if(0===this.context.length)return r;var t=this.context[0],e=t._iDisplayStart,n=t.oFeatures.bPaginate?t._iDisplayLength:-1,i=t.fnRecordsDisplay(),o=-1===n;return{page:o?0:Math.floor(e/n),pages:o?1:Math.ceil(i/n),start:e,end:t.fnDisplayEnd(),length:n,recordsTotal:t.fnRecordsTotal(),recordsDisplay:i,serverSide:"ssp"===ve(t)}})),a("page.len()",(function(t){return t===r?0!==this.context.length?this.context[0]._iDisplayLength:r:this.iterator("table",(function(e){Dt(e,t)}))}));var ye=function(t,e,n){if(n){var r=new o(t);r.one("draw",(function(){n(r.ajax.json())}))}if("ssp"==ve(t))lt(t,e);else{Ut(t,!0);var i=t.jqXHR;i&&4!==i.readyState&&i.abort(),ht(t,[],(function(n){tt(t);for(var r=gt(t,n),i=0,o=r.length;i<o;i++)H(t,r[i]);lt(t,e),Ut(t,!1)}))}};a("ajax.json()",(function(){var t=this.context;if(t.length>0)return t[0].json})),a("ajax.params()",(function(){var t=this.context;if(t.length>0)return t[0].oAjaxData})),a("ajax.reload()",(function(t,e){return this.iterator("table",(function(n){ye(n,!1===e,t)}))})),a("ajax.url()",(function(e){var n=this.context;return e===r?0===n.length?r:(n=n[0]).ajax?t.isPlainObject(n.ajax)?n.ajax.url:n.ajax:n.sAjaxSource:this.iterator("table",(function(n){t.isPlainObject(n.ajax)?n.ajax.url=e:n.ajax=e}))})),a("ajax.url().load()",(function(t,e){return this.iterator("table",(function(n){ye(n,!1===e,t)}))}));var Ee=function(t,e,n,o,a){var s,u,l,c,f,d,h=[],p=typeof e;for(e&&"string"!==p&&"function"!==p&&e.length!==r||(e=[e]),l=0,c=e.length;l<c;l++)for(f=0,d=(u=e[l]&&e[l].split&&!e[l].match(/[\[\(:]/)?e[l].split(","):[e[l]]).length;f<d;f++)(s=n("string"==typeof u[f]?u[f].trim():u[f]))&&s.length&&(h=h.concat(s));var v=i.selector[t];if(v.length)for(l=0,c=v.length;l<c;l++)h=v[l](o,a,h);return w(h)},xe=function(e){return e||(e={}),e.filter&&e.search===r&&(e.search=e.filter),t.extend({search:"none",order:"current",page:"all"},e)},Te=function(t){for(var e=0,n=t.length;e<n;e++)if(t[e].length>0)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t},_e=function(e,n){var r,i=[],o=e.aiDisplay,a=e.aiDisplayMaster,s=n.search,u=n.order,l=n.page;if("ssp"==ve(e))return"removed"===s?[]:T(0,a.length);if("current"==l)for(f=e._iDisplayStart,d=e.fnDisplayEnd();f<d;f++)i.push(o[f]);else if("current"==u||"applied"==u){if("none"==s)i=a.slice();else if("applied"==s)i=o.slice();else if("removed"==s){for(var c={},f=0,d=o.length;f<d;f++)c[o[f]]=null;i=t.map(a,(function(t){return c.hasOwnProperty(t)?null:t}))}}else if("index"==u||"original"==u)for(f=0,d=e.aoData.length;f<d;f++)("none"==s||-1===(r=t.inArray(f,o))&&"removed"==s||r>=0&&"applied"==s)&&i.push(f);return i};a("rows()",(function(e,n){e===r?e="":t.isPlainObject(e)&&(n=e,e=""),n=xe(n);var i=this.iterator("table",(function(i){return function(e,n,i){var o;return Ee("row",n,(function(n){var a=b(n),s=e.aoData;if(null!==a&&!i)return[a];if(o||(o=_e(e,i)),null!==a&&-1!==t.inArray(a,o))return[a];if(null===n||n===r||""===n)return o;if("function"==typeof n)return t.map(o,(function(t){var e=s[t];return n(t,e._aData,e.nTr)?t:null}));if(n.nodeName){var u=n._DT_RowIndex,l=n._DT_CellIndex;if(u!==r)return s[u]&&s[u].nTr===n?[u]:[];if(l)return s[l.row]&&s[l.row].nTr===n.parentNode?[l.row]:[];var c=t(n).closest("*[data-dt-row]");return c.length?[c.data("dt-row")]:[]}if("string"==typeof n&&"#"===n.charAt(0)){var f=e.aIds[n.replace(/^#/,"")];if(f!==r)return[f.idx]}var d=_(x(e.aoData,o,"nTr"));return t(d).filter(n).map((function(){return this._DT_RowIndex})).toArray()}),e,i)}(i,e,n)}),1);return i.selector.rows=e,i.selector.opts=n,i})),a("rows().nodes()",(function(){return this.iterator("row",(function(t,e){return t.aoData[e].nTr||r}),1)})),a("rows().data()",(function(){return this.iterator(!0,"rows",(function(t,e){return x(t.aoData,e,"_aData")}),1)})),s("rows().cache()","row().cache()",(function(t){return this.iterator("row",(function(e,n){var r=e.aoData[n];return"search"===t?r._aFilterData:r._aSortData}),1)})),s("rows().invalidate()","row().invalidate()",(function(t){return this.iterator("row",(function(e,n){nt(e,n,t)}))})),s("rows().indexes()","row().index()",(function(){return this.iterator("row",(function(t,e){return e}),1)})),s("rows().ids()","row().id()",(function(t){for(var e=[],n=this.context,r=0,i=n.length;r<i;r++)for(var a=0,s=this[r].length;a<s;a++){var u=n[r].rowIdFn(n[r].aoData[this[r][a]]._aData);e.push((!0===t?"#":"")+u)}return new o(n,e)})),s("rows().remove()","row().remove()",(function(){var t=this;return this.iterator("row",(function(e,n,i){var o,a,s,u,l,c,f=e.aoData,d=f[n];for(f.splice(n,1),o=0,a=f.length;o<a;o++)if(c=(l=f[o]).anCells,null!==l.nTr&&(l.nTr._DT_RowIndex=o),null!==c)for(s=0,u=c.length;s<u;s++)c[s]._DT_CellIndex.row=o;et(e.aiDisplayMaster,n),et(e.aiDisplay,n),et(t[i],n,!1),e._iRecordsDisplay>0&&e._iRecordsDisplay--,he(e);var h=e.rowIdFn(d._aData);h!==r&&delete e.aIds[h]})),this.iterator("table",(function(t){for(var e=0,n=t.aoData.length;e<n;e++)t.aoData[e].idx=e})),this})),a("rows.add()",(function(e){var n=this.iterator("table",(function(t){var n,r,i,o=[];for(r=0,i=e.length;r<i;r++)(n=e[r]).nodeName&&"TR"===n.nodeName.toUpperCase()?o.push(z(t,n)[0]):o.push(H(t,n));return o}),1),r=this.rows(-1);return r.pop(),t.merge(r,n),r})),a("row()",(function(t,e){return Te(this.rows(t,e))})),a("row().data()",(function(t){var e=this.context;if(t===r)return e.length&&this.length?e[0].aoData[this[0]]._aData:r;var n=e[0].aoData[this[0]];return n._aData=t,Array.isArray(t)&&n.nTr&&n.nTr.id&&Z(e[0].rowId)(t,n.nTr.id),nt(e[0],this[0],"data"),this})),a("row().node()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null})),a("row.add()",(function(e){e instanceof t&&e.length&&(e=e[0]);var n=this.iterator("table",(function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?z(t,e)[0]:H(t,e)}));return this.row(n[0])}));var Se=function(t,e){var n=t.context;if(n.length){var i=n[0].aoData[e!==r?e:t[0]];i&&i._details&&(i._details.remove(),i._detailsShow=r,i._details=r)}},we=function(t,e){var n=t.context;if(n.length&&t.length){var r=n[0].aoData[t[0]];r._details&&(r._detailsShow=e,e?r._details.insertAfter(r.nTr):r._details.detach(),Ae(n[0]))}},Ae=function(t){var e=new o(t),n=t.aoData;e.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),E(n,"_details").length>0&&(e.on("draw.dt.DT_details",(function(r,i){t===i&&e.rows({page:"current"}).eq(0).each((function(t){var e=n[t];e._detailsShow&&e._details.insertAfter(e.nTr)}))})),e.on("column-visibility.dt.DT_details",(function(e,r){if(t===r)for(var i,o=U(r),a=0,s=n.length;a<s;a++)(i=n[a])._details&&i._details.children("td[colspan]").attr("colspan",o)})),e.on("destroy.dt.DT_details",(function(r,i){if(t===i)for(var o=0,a=n.length;o<a;o++)n[o]._details&&Se(e,o)})))};a("row().child()",(function(e,n){var i=this.context;return e===r?i.length&&this.length?i[0].aoData[this[0]]._details:r:(!0===e?this.child.show():!1===e?Se(this):i.length&&this.length&&function(e,n,r,i){var o=[],a=function(n,r){if(Array.isArray(n)||n instanceof t)for(var i=0,s=n.length;i<s;i++)a(n[i],r);else if(n.nodeName&&"tr"===n.nodeName.toLowerCase())o.push(n);else{var u=t("<tr><td></td></tr>").addClass(r);t("td",u).addClass(r).html(n)[0].colSpan=U(e),o.push(u[0])}};a(r,i),n._details&&n._details.detach(),n._details=t(o),n._detailsShow&&n._details.insertAfter(n.nTr)}(i[0],i[0].aoData[this[0]],e,n),this)})),a(["row().child.show()","row().child().show()"],(function(){return we(this,!0),this})),a(["row().child.hide()","row().child().hide()"],(function(){return we(this,!1),this})),a(["row().child.remove()","row().child().remove()"],(function(){return Se(this),this})),a("row().child.isShown()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1}));var Ne=/^([^:]+):(name|visIdx|visible)$/,Ie=function(t,e,n,r,i){for(var o=[],a=0,s=i.length;a<s;a++)o.push($(t,i[a],e));return o};a("columns()",(function(e,n){e===r?e="":t.isPlainObject(e)&&(n=e,e=""),n=xe(n);var i=this.iterator("table",(function(r){return function(e,n,r){var i=e.aoColumns,o=E(i,"sName"),a=E(i,"nTh");return Ee("column",n,(function(n){var s=b(n);if(""===n)return T(i.length);if(null!==s)return[s>=0?s:i.length+s];if("function"==typeof n){var u=_e(e,r);return t.map(i,(function(t,r){return n(r,Ie(e,r,0,0,u),a[r])?r:null}))}var l="string"==typeof n?n.match(Ne):"";if(l)switch(l[2]){case"visIdx":case"visible":var c=parseInt(l[1],10);if(c<0){var f=t.map(i,(function(t,e){return t.bVisible?e:null}));return[f[f.length+c]]}return[q(e,c)];case"name":return t.map(o,(function(t,e){return t===l[1]?e:null}));default:return[]}if(n.nodeName&&n._DT_CellIndex)return[n._DT_CellIndex.column];var d=t(a).filter(n).map((function(){return t.inArray(this,a)})).toArray();if(d.length||!n.nodeName)return d;var h=t(n).closest("*[data-dt-column]");return h.length?[h.data("dt-column")]:[]}),e,r)}(r,e,n)}),1);return i.selector.cols=e,i.selector.opts=n,i})),s("columns().header()","column().header()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTh}),1)})),s("columns().footer()","column().footer()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTf}),1)})),s("columns().data()","column().data()",(function(){return this.iterator("column-rows",Ie,1)})),s("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].mData}),1)})),s("columns().cache()","column().cache()",(function(t){return this.iterator("column-rows",(function(e,n,r,i,o){return x(e.aoData,o,"search"===t?"_aFilterData":"_aSortData",n)}),1)})),s("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(t,e,n,r,i){return x(t.aoData,i,"anCells",e)}),1)})),s("columns().visible()","column().visible()",(function(e,n){var i=this,o=this.iterator("column",(function(n,i){if(e===r)return n.aoColumns[i].bVisible;!function(e,n,i){var o,a,s,u,l=e.aoColumns,c=l[n],f=e.aoData;if(i===r)return c.bVisible;if(c.bVisible!==i){if(i){var d=t.inArray(!0,E(l,"bVisible"),n+1);for(a=0,s=f.length;a<s;a++)o=f[a].anCells,(u=f[a].nTr)&&u.insertBefore(o[n],o[d]||null)}else t(E(e.aoData,"anCells",n)).detach();c.bVisible=i}}(n,i,e)}));return e!==r&&this.iterator("table",(function(o){st(o,o.aoHeader),st(o,o.aoFooter),o.aiDisplay.length||t(o.nTBody).find("td[colspan]").attr("colspan",U(o)),ie(o),i.iterator("column",(function(t,r){de(t,null,"column-visibility",[t,r,e,n])})),(n===r||n)&&i.columns.adjust()})),o})),s("columns().indexes()","column().index()",(function(t){return this.iterator("column",(function(e,n){return"visible"===t?F(e,n):n}),1)})),a("columns.adjust()",(function(){return this.iterator("table",(function(t){j(t)}),1)})),a("column.index()",(function(t,e){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===t||"toData"===t)return q(n,e);if("fromData"===t||"toVisible"===t)return F(n,e)}})),a("column()",(function(t,e){return Te(this.columns(t,e))})),a("cells()",(function(e,n,i){if(t.isPlainObject(e)&&(e.row===r?(i=e,e=null):(i=n,n=null)),t.isPlainObject(n)&&(i=n,n=null),null===n||n===r)return this.iterator("table",(function(n){return function(e,n,i){var o,a,s,u,l,c,f,d=e.aoData,h=_e(e,i),p=_(x(d,h,"anCells")),v=t(A([],p)),b=e.aoColumns.length;return Ee("cell",n,(function(n){var i="function"==typeof n;if(null===n||n===r||i){for(a=[],s=0,u=h.length;s<u;s++)for(o=h[s],l=0;l<b;l++)c={row:o,column:l},i?(f=d[o],n(c,$(e,o,l),f.anCells?f.anCells[l]:null)&&a.push(c)):a.push(c);return a}if(t.isPlainObject(n))return n.column!==r&&n.row!==r&&-1!==t.inArray(n.row,h)?[n]:[];var p=v.filter(n).map((function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}})).toArray();return p.length||!n.nodeName?p:(f=t(n).closest("*[data-dt-row]")).length?[{row:f.data("dt-row"),column:f.data("dt-column")}]:[]}),e,i)}(n,e,xe(i))}));var o,a,s,u,l=i?{page:i.page,order:i.order,search:i.search}:{},c=this.columns(n,l),f=this.rows(e,l),d=this.iterator("table",(function(t,e){var n=[];for(o=0,a=f[e].length;o<a;o++)for(s=0,u=c[e].length;s<u;s++)n.push({row:f[e][o],column:c[e][s]});return n}),1),h=i&&i.selected?this.cells(d,i):d;return t.extend(h.selector,{cols:n,rows:e,opts:i}),h})),s("cells().nodes()","cell().node()",(function(){return this.iterator("cell",(function(t,e,n){var i=t.aoData[e];return i&&i.anCells?i.anCells[n]:r}),1)})),a("cells().data()",(function(){return this.iterator("cell",(function(t,e,n){return $(t,e,n)}),1)})),s("cells().cache()","cell().cache()",(function(t){return t="search"===t?"_aFilterData":"_aSortData",this.iterator("cell",(function(e,n,r){return e.aoData[n][t][r]}),1)})),s("cells().render()","cell().render()",(function(t){return this.iterator("cell",(function(e,n,r){return $(e,n,r,t)}),1)})),s("cells().indexes()","cell().index()",(function(){return this.iterator("cell",(function(t,e,n){return{row:e,column:n,columnVisible:F(t,n)}}),1)})),s("cells().invalidate()","cell().invalidate()",(function(t){return this.iterator("cell",(function(e,n,r){nt(e,n,t,r)}))})),a("cell()",(function(t,e,n){return Te(this.cells(t,e,n))})),a("cell().data()",(function(t){var e=this.context,n=this[0];return t===r?e.length&&n.length?$(e[0],n[0].row,n[0].column):r:(Y(e[0],n[0].row,n[0].column,t),nt(e[0],n[0].row,"data",n[0].column),this)})),a("order()",(function(t,e){var n=this.context;return t===r?0!==n.length?n[0].aaSorting:r:("number"==typeof t?t=[[t,e]]:t.length&&!Array.isArray(t[0])&&(t=Array.prototype.slice.call(arguments)),this.iterator("table",(function(e){e.aaSorting=t.slice()})))})),a("order.listener()",(function(t,e,n){return this.iterator("table",(function(r){ee(r,t,e,n)}))})),a("order.fixed()",(function(e){if(!e){var n=this.context,i=n.length?n[0].aaSortingFixed:r;return Array.isArray(i)?{pre:i}:i}return this.iterator("table",(function(n){n.aaSortingFixed=t.extend(!0,{},e)}))})),a(["columns().order()","column().order()"],(function(e){var n=this;return this.iterator("table",(function(r,i){var o=[];t.each(n[i],(function(t,n){o.push([n,e])})),r.aaSorting=o}))})),a("search()",(function(e,n,i,o){var a=this.context;return e===r?0!==a.length?a[0].oPreviousSearch.sSearch:r:this.iterator("table",(function(r){r.oFeatures.bFilter&&yt(r,t.extend({},r.oPreviousSearch,{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===i||i,bCaseInsensitive:null===o||o}),1)}))})),s("columns().search()","column().search()",(function(e,n,i,o){return this.iterator("column",(function(a,s){var u=a.aoPreSearchCols;if(e===r)return u[s].sSearch;a.oFeatures.bFilter&&(t.extend(u[s],{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===i||i,bCaseInsensitive:null===o||o}),yt(a,a.oPreviousSearch,1))}))})),a("state()",(function(){return this.context.length?this.context[0].oSavedState:null})),a("state.clear()",(function(){return this.iterator("table",(function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})}))})),a("state.loaded()",(function(){return this.context.length?this.context[0].oLoadedState:null})),a("state.save()",(function(){return this.iterator("table",(function(t){ie(t)}))})),u.versionCheck=u.fnVersionCheck=function(t){for(var e,n,r=u.version.split("."),i=t.split("."),o=0,a=i.length;o<a;o++)if((e=parseInt(r[o],10)||0)!==(n=parseInt(i[o],10)||0))return e>n;return!0},u.isDataTable=u.fnIsDataTable=function(e){var n=t(e).get(0),r=!1;return e instanceof u.Api||(t.each(u.settings,(function(e,i){var o=i.nScrollHead?t("table",i.nScrollHead)[0]:null,a=i.nScrollFoot?t("table",i.nScrollFoot)[0]:null;i.nTable!==n&&o!==n&&a!==n||(r=!0)})),r)},u.tables=u.fnTables=function(e){var n=!1;t.isPlainObject(e)&&(n=e.api,e=e.visible);var r=t.map(u.settings,(function(n){if(!e||e&&t(n.nTable).is(":visible"))return n.nTable}));return n?new o(r):r},u.camelToHungarian=I,a("$()",(function(e,n){var r=this.rows(n).nodes(),i=t(r);return t([].concat(i.filter(e).toArray(),i.find(e).toArray()))})),t.each(["on","one","off"],(function(e,n){a(n+"()",(function(){var e=Array.prototype.slice.call(arguments);e[0]=t.map(e[0].split(/\s/),(function(t){return t.match(/\.dt\b/)?t:t+".dt"})).join(" ");var r=t(this.tables().nodes());return r[n].apply(r,e),this}))})),a("clear()",(function(){return this.iterator("table",(function(t){tt(t)}))})),a("settings()",(function(){return new o(this.context,this.context)})),a("init()",(function(){var t=this.context;return t.length?t[0].oInit:null})),a("data()",(function(){return this.iterator("table",(function(t){return E(t.aoData,"_aData")})).flatten()})),a("destroy()",(function(n){return n=n||!1,this.iterator("table",(function(r){var i,a=r.nTableWrapper.parentNode,s=r.oClasses,l=r.nTable,c=r.nTBody,f=r.nTHead,d=r.nTFoot,h=t(l),p=t(c),v=t(r.nTableWrapper),b=t.map(r.aoData,(function(t){return t.nTr}));r.bDestroying=!0,de(r,"aoDestroyCallback","destroy",[r]),n||new o(r).columns().visible(!0),v.off(".DT").find(":not(tbody *)").off(".DT"),t(e).off(".DT-"+r.sInstance),l!=f.parentNode&&(h.children("thead").detach(),h.append(f)),d&&l!=d.parentNode&&(h.children("tfoot").detach(),h.append(d)),r.aaSorting=[],r.aaSortingFixed=[],ne(r),t(b).removeClass(r.asStripeClasses.join(" ")),t("th, td",f).removeClass(s.sSortable+" "+s.sSortableAsc+" "+s.sSortableDesc+" "+s.sSortableNone),p.children().detach(),p.append(b);var g=n?"remove":"detach";h[g](),v[g](),!n&&a&&(a.insertBefore(l,r.nTableReinsertBefore),h.css("width",r.sDestroyWidth).removeClass(s.sTable),(i=r.asDestroyStripes.length)&&p.children().each((function(e){t(this).addClass(r.asDestroyStripes[e%i])})));var m=t.inArray(r,u.settings);-1!==m&&u.settings.splice(m,1)}))})),t.each(["column","row","cell"],(function(t,e){a(e+"s().every()",(function(t){var n=this.selector.opts,i=this;return this.iterator(e,(function(o,a,s,u,l){t.call(i[e](a,"cell"===e?s:n,"cell"===e?n:r),a,s,u,l)}))}))})),a("i18n()",(function(e,n,i){var o=this.context[0],a=X(e)(o.oLanguage);return a===r&&(a=n),i!==r&&t.isPlainObject(a)&&(a=a[i]!==r?a[i]:a._),a.replace("%d",i)})),u.version="1.10.24",u.settings=[],u.models={},u.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},u.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},u.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},u.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:t.extend({},u.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},N(u.defaults),u.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},N(u.defaults.column),u.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:r,oAjaxData:r,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==ve(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==ve(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,r=this.aiDisplay.length,i=this.oFeatures,o=i.bPaginate;return i.bServerSide?!1===o||-1===t?e+r:Math.min(e+t,this._iRecordsDisplay):!o||n>r||-1===t?r:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},u.ext=i={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:u.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:u.version},t.extend(i,{afnFiltering:i.search,aTypes:i.type.detect,ofnSearch:i.type.search,oSort:i.type.order,afnSortData:i.order,aoFeatures:i.feature,oApi:i.internal,oStdClasses:i.classes,oPagination:i.pager}),t.extend(u.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_desc_disabled",sSortableDesc:"sorting_asc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Ce=u.ext.pager;function Le(t,e){var n=[],r=Ce.numbers_length,i=Math.floor(r/2);return e<=r?n=T(0,e):t<=i?((n=T(0,r-2)).push("ellipsis"),n.push(e-1)):t>=e-1-i?((n=T(e-(r-2),e)).splice(0,0,"ellipsis"),n.splice(0,0,0)):((n=T(t-i+2,t+i-1)).push("ellipsis"),n.push(e-1),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}t.extend(Ce,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(t,e){return[Le(t,e)]},simple_numbers:function(t,e){return["previous",Le(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Le(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Le(t,e),"last"]},_numbers:Le,numbers_length:7}),t.extend(!0,u.ext.renderer,{pageButton:{_:function(e,i,o,a,s,u){var l,c,f,d=e.oClasses,h=e.oLanguage.oPaginate,p=e.oLanguage.oAria.paginate||{},v=0,b=function(n,r){var i,a,f,g,m=d.sPageButtonDisabled,y=function(t){qt(e,t.data.action,!0)};for(i=0,a=r.length;i<a;i++)if(f=r[i],Array.isArray(f)){var E=t("<"+(f.DT_el||"div")+"/>").appendTo(n);b(E,f)}else{switch(l=null,c=f,g=e.iTabIndex,f){case"ellipsis":n.append('<span class="ellipsis">&#x2026;</span>');break;case"first":l=h.sFirst,0===s&&(g=-1,c+=" "+m);break;case"previous":l=h.sPrevious,0===s&&(g=-1,c+=" "+m);break;case"next":l=h.sNext,0!==u&&s!==u-1||(g=-1,c+=" "+m);break;case"last":l=h.sLast,0!==u&&s!==u-1||(g=-1,c+=" "+m);break;default:l=e.fnFormatNumber(f+1),c=s===f?d.sPageButtonActive:""}null!==l&&(ce(t("<a>",{class:d.sPageButton+" "+c,"aria-controls":e.sTableId,"aria-label":p[f],"data-dt-idx":v,tabindex:g,id:0===o&&"string"==typeof f?e.sTableId+"_"+f:null}).html(l).appendTo(n),{action:f},y),v++)}};try{f=t(i).find(n.activeElement).data("dt-idx")}catch(t){}b(t(i).empty(),a),f!==r&&t(i).find("[data-dt-idx="+f+"]").trigger("focus")}}}),t.extend(u.ext.type.detect,[function(t,e){var n=e.oLanguage.sDecimal;return m(t,n)?"num"+n:null},function(t){if(t&&!(t instanceof Date)&&!d.test(t))return null;var e=Date.parse(t);return null!==e&&!isNaN(e)||v(t)?"date":null},function(t,e){var n=e.oLanguage.sDecimal;return m(t,n,!0)?"num-fmt"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return y(t,n)?"html-num"+n:null},function(t,e){var n=e.oLanguage.sDecimal;return y(t,n,!0)?"html-num-fmt"+n:null},function(t){return v(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),t.extend(u.ext.type.search,{html:function(t){return v(t)?t:"string"==typeof t?t.replace(c," ").replace(f,""):""},string:function(t){return v(t)?t:"string"==typeof t?t.replace(c," "):t}});var Re=function(t,e,n,r){return 0===t||t&&"-"!==t?(e&&(t=g(t,e)),t.replace&&(n&&(t=t.replace(n,"")),r&&(t=t.replace(r,""))),1*t):-1/0};function Oe(e){t.each({num:function(t){return Re(t,e)},"num-fmt":function(t){return Re(t,e,p)},"html-num":function(t){return Re(t,e,f)},"html-num-fmt":function(t){return Re(t,e,f,p)}},(function(t,n){i.type.order[t+e+"-pre"]=n,t.match(/^html\-/)&&(i.type.search[t+e]=i.type.search.html)}))}t.extend(i.type.order,{"date-pre":function(t){var e=Date.parse(t);return isNaN(e)?-1/0:e},"html-pre":function(t){return v(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return v(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:t>e?1:0},"string-desc":function(t,e){return t<e?1:t>e?-1:0}}),Oe(""),t.extend(!0,u.ext.renderer,{header:{_:function(e,n,r,i){t(e.nTable).on("order.dt.DT",(function(t,o,a,s){if(e===o){var u=r.idx;n.removeClass(i.sSortAsc+" "+i.sSortDesc).addClass("asc"==s[u]?i.sSortAsc:"desc"==s[u]?i.sSortDesc:r.sSortingClass)}}))},jqueryui:function(e,n,r,i){t("<div/>").addClass(i.sSortJUIWrapper).append(n.contents()).append(t("<span/>").addClass(i.sSortIcon+" "+r.sSortingClassJUI)).appendTo(n),t(e.nTable).on("order.dt.DT",(function(t,o,a,s){if(e===o){var u=r.idx;n.removeClass(i.sSortAsc+" "+i.sSortDesc).addClass("asc"==s[u]?i.sSortAsc:"desc"==s[u]?i.sSortDesc:r.sSortingClass),n.find("span."+i.sSortIcon).removeClass(i.sSortJUIAsc+" "+i.sSortJUIDesc+" "+i.sSortJUI+" "+i.sSortJUIAscAllowed+" "+i.sSortJUIDescAllowed).addClass("asc"==s[u]?i.sSortJUIAsc:"desc"==s[u]?i.sSortJUIDesc:r.sSortingClassJUI)}}))}}});var ke=function(t){return"string"==typeof t?t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):t};function Pe(t){return function(){var e=[ae(this[u.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return u.ext.internal[t].apply(this,e)}}return u.render={number:function(t,e,n,r,i){return{display:function(o){if("number"!=typeof o&&"string"!=typeof o)return o;var a=o<0?"-":"",s=parseFloat(o);if(isNaN(s))return ke(o);s=s.toFixed(n),o=Math.abs(s);var u=parseInt(o,10),l=n?e+(o-u).toFixed(n).substring(2):"";return a+(r||"")+u.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+l+(i||"")}}},text:function(){return{display:ke,filter:ke}}},t.extend(u.ext.internal,{_fnExternApiFunc:Pe,_fnBuildAjax:ht,_fnAjaxUpdate:pt,_fnAjaxParameters:vt,_fnAjaxUpdateDraw:bt,_fnAjaxDataSrc:gt,_fnAddColumn:D,_fnColumnOptions:M,_fnAdjustColumnSizing:j,_fnVisibleToColumnIndex:q,_fnColumnIndexToVisible:F,_fnVisbleColumns:U,_fnGetColumns:G,_fnColumnTypes:B,_fnApplyColumnDefs:V,_fnHungarianMap:N,_fnCamelToHungarian:I,_fnLanguageCompat:C,_fnBrowserDetect:k,_fnAddData:H,_fnAddTr:z,_fnNodeToDataIndex:function(t,e){return e._DT_RowIndex!==r?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,n,r){return t.inArray(r,e.aoData[n].anCells)},_fnGetCellData:$,_fnSetCellData:Y,_fnSplitObjNotation:K,_fnGetObjectDataFn:X,_fnSetObjectDataFn:Z,_fnGetDataMaster:J,_fnClearTable:tt,_fnDeleteIndex:et,_fnInvalidate:nt,_fnGetRowElements:rt,_fnCreateTr:it,_fnBuildHead:at,_fnDrawHead:st,_fnDraw:ut,_fnReDraw:lt,_fnAddOptionsHtml:ct,_fnDetectHeader:ft,_fnGetUniqueThs:dt,_fnFeatureHtmlFilter:mt,_fnFilterComplete:yt,_fnFilterCustom:Et,_fnFilterColumn:xt,_fnFilter:Tt,_fnFilterCreateSearch:_t,_fnEscapeRegex:St,_fnFilterData:Nt,_fnFeatureHtmlInfo:Lt,_fnUpdateInfo:Rt,_fnInfoMacros:Ot,_fnInitialise:kt,_fnInitComplete:Pt,_fnLengthChange:Dt,_fnFeatureHtmlLength:Mt,_fnFeatureHtmlPaginate:jt,_fnPageChange:qt,_fnFeatureHtmlProcessing:Ft,_fnProcessingDisplay:Ut,_fnFeatureHtmlTable:Gt,_fnScrollDraw:Bt,_fnApplyToChildren:Vt,_fnCalculateColumnWidths:zt,_fnThrottle:$t,_fnConvertToWidth:Yt,_fnGetWidestNode:Wt,_fnGetMaxLenString:Qt,_fnStringToCss:Kt,_fnSortFlatten:Xt,_fnSort:Zt,_fnSortAria:Jt,_fnSortListener:te,_fnSortAttachListener:ee,_fnSortingClasses:ne,_fnSortData:re,_fnSaveState:ie,_fnLoadState:oe,_fnSettingsFromNode:ae,_fnLog:se,_fnMap:ue,_fnBindAction:ce,_fnCallbackReg:fe,_fnCallbackFire:de,_fnLengthOverflow:he,_fnRenderer:pe,_fnDataSource:ve,_fnRowAttributes:ot,_fnExtend:le,_fnCalculateEnd:function(){}}),t.fn.dataTable=u,u.$=t,t.fn.dataTableSettings=u.settings,t.fn.dataTableExt=u.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(u,(function(e,n){t.fn.DataTable[e]=n})),t.fn.dataTable}(t,window,document)}.apply(e,r))||(t.exports=i)},function(t){var e;e=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=1)}([function(t){t.exports=function(t){for(var e=5381,n=t.length;n;)e=33*e^t.charCodeAt(--n);return e>>>0}},function(t,e,n){n.r(e),n.d(e,"default",(function(){return l}));var r=n(0),i=n.n(r);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s,u=(s=0,function(){return s++}),l=function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),a(this,"ID","id"),a(this,"PX","px"),a(this,"RESIZABLE","grip-resizable"),a(this,"FLEX","grip-flex"),a(this,"legacyIE",navigator.userAgent.indexOf("Trident/4.0")>0),a(this,"reset",(function(t){return n.init(t)})),a(this,"onResize",(function(){var t=n.tb;if(t.classList.remove(n.RESIZABLE),t.opt.fixed){t.tableWidth=Number(window.getComputedStyle(t).width.replace(/px/,"")).valueOf();for(var e=0,r=0;r<t.columnCnt;r++)e+=t.columns[r].w;for(var i=0;i<t.columnCnt;i++)t.columns[i].style.width=Math.round(1e3*t.columns[i].w/e)/10+"%",t.columns[i].locked=!0}else n.applyBounds(),"flex"===t.opt.resizeMode&&t.opt.serialize&&n.serializeStore();t.classList.add(n.RESIZABLE),n.syncGrips()})),a(this,"onGripMouseDown",(function(t){var e=t.target.parentNode.data,r=n.tb,i=r.grips[e.i],o=t.touches;if(i.ox=o?o[0].pageX:t.pageX,i.l=i.offsetLeft,i.x=i.l,n.createStyle(document.querySelector("head"),"*{cursor:"+r.opt.dragCursor+"!important}"),document.addEventListener("touchmove",n.onGripDrag),document.addEventListener("mousemove",n.onGripDrag),document.addEventListener("touchend",n.onGripDragOver),document.addEventListener("mouseup",n.onGripDragOver),i.classList.add(r.opt.draggingClass),n.grip=i,r.columns[e.i].locked)for(var a,s=0;s<r.columnCnt;s++)(a=r.columns[s]).locked=!1,a.w=Number(window.getComputedStyle(a).width.replace(/px/,"")).valueOf();t.preventDefault()})),a(this,"onGripDrag",(function(t){var e=n.grip;if(e){var r=e.t,i=t.touches,o=(i?i[0].pageX:t.pageX)-e.ox+e.l,a=r.opt.minWidth,s=e.i,u=1.5*r.cellSpace+a+r.borderSpace,l=s===r.columnCnt-1;if(o=Math.max(s?r.grips[s-1].offsetLeft+r.cellSpace+a:u,Math.min(r.opt.fixed?s===r.columnCnt-1?r.tableWidth-u:r.grips[s+1].offsetLeft-r.cellSpace-a:1/0,o)),e.x=o,e.style.left=o+n.PX,l&&(e.w=r.columns[s].w+o-e.l),r.opt.liveDrag){l?(r.columns[s].style.width=e.w+n.PX,!r.opt.fixed&&r.opt.overflow?r.style.minWidth=r.tableWidth+o-e.l+n.PX:r.tableWidth=Number(window.getComputedStyle(r).width.replace(/px/,"")).valueOf()):n.syncCols(r,s,!1,r.opt),n.syncGrips();var c=r.opt.onDrag;c&&c(t)}t.preventDefault()}})),a(this,"onGripDragOver",(function(t){var e=n.grip;document.removeEventListener("touchend",n.onGripDragOver),document.removeEventListener("mouseup",n.onGripDragOver),document.removeEventListener("touchmove",n.onGripDrag),document.removeEventListener("mousemove",n.onGripDrag);var r=document.querySelector("head").lastChild;if(r.parentNode.removeChild(r),e){if(e.classList.remove(e.t.opt.draggingClass),e.x-e.l!=0){var i=e.t,o=i.opt.onResize,a=e.i;if(a===i.columnCnt-1){var s=i.columns[a];s.style.width=e.w+n.PX,s.w=e.w}else n.syncCols(i,a,!0,i.opt);i.opt.fixed||n.applyBounds(),n.syncGrips(),o&&o(t),i.opt.serialize&&n.serializeStore()}n.grip=null}})),a(this,"init",(function(t){if(t.disable)return n.destroy();var e=n.tb,r=e.getAttribute(n.ID)||n.RESIZABLE+u();if(!e.matches("table")||e.extended&&!t.partialRefresh)return null;var i=document.querySelector("head");n.createStyle(i," .grip-resizable{table-layout:fixed;} .grip-resizable > tbody > tr > td, .grip-resizable > tbody > tr > th{overflow:hidden} .grip-padding > tbody > tr > td, .grip-padding > tbody > tr > th{padding-left:0!important; padding-right:0!important;} .grip-container{ height:0px; position:relative;} .grip-handle{margin-left:-5px; position:absolute; z-index:5; } .grip-handle .grip-resizable{position:absolute;background-color:red;filter:alpha(opacity=1);opacity:0;width:10px;height:100%;cursor: col-resize;top:0px} .grip-lastgrip{position:absolute; width:1px; } .grip-drag{ border-left:1px dotted black;\t} .grip-flex{width:auto!important;} .grip-handle.grip-disabledgrip .grip-resizable{cursor:default; display:none;}"),t.hoverCursor&&"col-resize"!==t.hoverCursor&&n.createStyle(i,".grip-handle .grip-resizable:hover{cursor:"+t.hoverCursor+"!important}"),e.setAttribute(n.ID,r);var o=e.opt;e.opt=n.extendOptions(t);var a=n.getTableHeaders(e);if(n.extendTable(a),t.remoteTable&&t.remoteTable.matches("table")){var s=n.getTableHeaders(e.opt.remoteTable);a.length===s.length?n.extendRemoteTable(e.opt.remoteTable,s,e):console.warn("column count for remote table did not match")}return o})),a(this,"applyBounds",(function(){var t=n.tb,e=t.columns.map((function(t){return window.getComputedStyle(t).width}));t.style.width=window.getComputedStyle(t).width,t.tableWidth=Number(t.style.width.replace(/px/,"")).valueOf(),t.classList.remove(n.FLEX),t.columns.forEach((function(t,n){t.style.width=e[n],t.w=Number(e[n].replace(/px/,"")).valueOf()})),t.classList.add(n.FLEX)})),a(this,"serializeStore",(function(){var t=n.store,e=n.tb;t[e.getAttribute(n.ID)]="";for(var r=0,i=0;i<e.columns.length;i++){var o=window.getComputedStyle(e.columns[i]).width.replace(/px/,"");t[e.getAttribute(n.ID)]+=o+";",r+=Number(o).valueOf()}t[e.getAttribute(n.ID)]+=r.toString(),e.opt.fixed||(t[e.getAttribute(n.ID)]+=";"+window.getComputedStyle(e).width.replace(/px/,""))})),a(this,"syncGrips",(function(){var t=n.tb;t.gripContainer.style.width=t.tableWidth+n.PX;for(var e=0;e<t.columnCnt;e++){var r=t.columns[e],i=r.getBoundingClientRect(),o=t.getBoundingClientRect();t.grips[e].style.left=i.left-o.left+r.offsetWidth+t.cellSpace/2+n.PX,t.grips[e].style.height=(t.opt.headerOnly?t.columns[0].offsetHeight:t.offsetHeight)+n.PX}})),a(this,"destroy",(function(){var t=n.tb,e=t.getAttribute(n.ID);return e?(n.store[e]="",t.classList.remove(n.RESIZABLE),t.classList.remove(n.FLEX),t.remote&&(t.remote.classList.remove(n.RESIZABLE),t.remote.classList.remove(n.FLEX)),t.gripContainer&&t.gripContainer.parentNode&&t.gripContainer.parentNode.removeChild(t.gripContainer),delete t.extended,t.opt):null})),a(this,"createStyle",(function(t,e){var n=i()(e).toString(),r=t.querySelectorAll("style");if(!Array.from(r).filter((function(t){return t.gripid===n})).length){var o=document.createElement("style");o.type="text/css",o.gripid=n,o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e)),t.appendChild(o)}})),a(this,"extendOptions",(function(e){var n=Object.assign({},t.DEFAULTS,e);switch(n.fixed=!0,n.overflow=!1,n.resizeMode){case"flex":n.fixed=!1;break;case"overflow":n.fixed=!1,n.overflow=!0}return n})),a(this,"getTableHeaders",(function(t){var e="#"+t.id,r=Array.from(t.querySelectorAll(e+">thead>tr:nth-of-type(1)>th"));return(r=r.concat(Array.from(t.querySelectorAll(e+">thead>tr:nth-of-type(1)>td")))).length||(r=(r=(r=(r=Array.from(t.querySelectorAll(e+">tbody>tr:nth-of-type(1)>th"))).concat(Array.from(t.querySelectorAll(e+">tr:nth-of-type(1)>th")))).concat(Array.from(t.querySelectorAll(e+">tbody>tr:nth-of-type(1)>td")))).concat(Array.from(t.querySelectorAll(e+">tr:nth-of-type(1)>td")))),n.filterInvisible(r,!1)})),a(this,"filterInvisible",(function(t,e){return t.filter((function(t){return!(0===(e?-1:t.offsetWidth)&&0===(e?-1:t.offsetHeight)||t.style&&t.style.display&&"none"===window.getComputedStyle(t).display)}))})),a(this,"extendTable",(function(t){var e=n.tb;e.opt.removePadding&&e.classList.add("grip-padding"),e.classList.add(n.RESIZABLE),e.insertAdjacentHTML("beforebegin",'<div class="grip-container"/>'),e.grips=[],e.columns=[],e.tableWidth=Number(window.getComputedStyle(e).width.replace(/px/,"")).valueOf(),e.gripContainer=e.previousElementSibling,e.opt.marginLeft&&(e.gripContainer.style.marginLeft=e.opt.marginLeft),e.opt.marginRight&&(e.gripContainer.style.marginRight=e.opt.marginRight),e.cellSpace=parseInt(n.legacyIE?e.cellSpacing||e.currentStyle.borderSpacing:window.getComputedStyle(e).borderSpacing.split(" ")[0].replace(/px/,""))||2,e.borderSpace=parseInt(n.legacyIE?e.border||e.currentStyle.borderLeftWidth:window.getComputedStyle(e).borderLeftWidth.replace(/px/,""))||1,e.extended=!0,n.createGrips(t)})),a(this,"extendRemoteTable",(function(t,e,r){r.opt.removePadding&&t.classList.add("grip-padding"),t.classList.add(n.RESIZABLE),t.getAttribute(n.ID)||t.setAttribute(n.ID,r.getAttribute(n.ID)+"remote"),t.columns=[],e.forEach((function(i,o){var a=e[o];a.w=r.columns[o].w,a.style.width=a.w+n.PX,a.removeAttribute("width"),t.columns.push(a)})),t.tableWidth=r.tableWidth,t.cellSpace=r.cellSpace,t.borderSpace=r.borderSpace;var i=Array.from(t.querySelectorAll("col"));t.columnGrp=n.filterInvisible(i,!0),t.columnGrp.forEach((function(t,e){t.removeAttribute("width"),t.style.width=r.columnGrp[e].style.width})),r.remote=t})),a(this,"createGrips",(function(t){var e=n.tb;e.columnGrp=n.filterInvisible(Array.from(e.querySelectorAll("col")),!0),e.columnGrp.forEach((function(t){t.removeAttribute("width")})),e.columnCnt=t.length;var r=!1;n.store[e.getAttribute(n.ID)]&&(n.deserializeStore(t),r=!0),e.opt.widths||(e.opt.widths=[]),t.forEach((function(i,o){var a=t[o],s=-1!==e.opt.disabledColumns.indexOf(o);n.createDiv(e.gripContainer,"grip-handle");var u=e.gripContainer.lastChild;!s&&e.opt.gripInnerHtml&&(u.innerHTML=e.opt.gripInnerHtml),n.createDiv(u,n.RESIZABLE),o===e.columnCnt-1&&(u.classList.add("grip-lastgrip"),e.opt.fixed&&(u.innerHTML="")),u.addEventListener("touchstart",n.onGripMouseDown,{capture:!0,passive:!0}),u.addEventListener("mousedown",n.onGripMouseDown,!0),s?u.classList.add("grip-disabledgrip"):(u.classList.remove("grip-disabledgrip"),u.addEventListener("touchstart",n.onGripMouseDown,{capture:!0,passive:!0}),u.addEventListener("mousedown",n.onGripMouseDown,!0)),u.t=e,u.i=o,a.w=e.opt.widths[o]?e.opt.widths[o]:r?Number(a.style.width.replace(/px/,"")).valueOf():Number(window.getComputedStyle(a).width.replace(/px/,"")).valueOf(),a.style.width=a.w+n.PX,a.removeAttribute("width"),u.data={i:o,t:e.getAttribute(n.ID),last:o===e.columnCnt-1},e.grips.push(u),e.columns.push(a)}));var i=Array.from(e.querySelectorAll("td"));i.concat(Array.from(e.querySelectorAll("th"))),(i=(i=i.filter((function(e){for(var n=0;n<t.length;n++)if(t[n]===e)return!1;return!0}))).filter((function(t){return!(t.querySelectorAll("table th").length||t.querySelectorAll("table td").length)}))).forEach((function(t){t.removeAttribute("width")})),e.opt.fixed||(e.removeAttribute("width"),e.classList.add(n.FLEX)),n.syncGrips()})),a(this,"deserializeStore",(function(t){var e=n.tb;if(e.columnGrp.forEach((function(t){t.removeAttribute("width")})),e.opt.flush)n.store[e.getAttribute(n.ID)]="";else{var r=n.store[e.getAttribute(n.ID)].split(";"),i=r[e.columnCnt+1];!e.opt.fixed&&i&&(e.style.width=i+n.PX,e.opt.overflow&&(e.style.minWidth=i+n.PX,e.tableWidth=Number(i).valueOf()));for(var o=0;o<e.columnCnt;o++)t[o].style.width=r[o]+n.PX,e.columnGrp[o]&&(e.columnGrp[o].style.width=100*Number(r[o]).valueOf()/Number(r[e.columnCnt]).valueOf()+"%")}})),a(this,"createDiv",(function(t,e,n){var r=document.createElement("div");r.classList.add(e),n&&(r.innerHTML=n),t.appendChild(r)})),a(this,"syncCols",(function(t,e,r,i){var o=t.remote,a=n.grip.x-n.grip.l,s=t.columns[e],u=t.columns[e+1];if(s&&u){var l=s.w+a,c=u.w-a,f=l+n.PX;if(s.style.width=f,t.columnGrp[e]&&t.columnGrp[e].style.width&&(t.columnGrp[e].style.width=f),o&&(o.columns[e].style.width=f,o.columnGrp[e]&&o.columnGrp[e].style.width&&(o.columnGrp[e].style.width=f)),i.fixed){var d=c+n.PX;u.style.width=d,t.columnGrp[e+1]&&t.columnGrp[e+1].style.width&&(t.columnGrp[e+1].style.width=d),o&&(o.columns[e+1].style.width=d,o.columnGrp[e+1]&&o.columnGrp[e+1].style.width&&(o.columnGrp[e+1].style.width=d))}else i.overflow&&(t.style.minWidth=t.tableWidth+a+n.PX);r&&(s.w=l,u.w=i.fixed?c:u.w,o&&(o.columns[e].w=l,o.columns[e+1].w=i.fixed?c:u.w))}}));try{this.store=sessionStorage}catch(e){this.store={}}this.grip=null,this.tb=e,window.addEventListener("resize",this.onResize),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),this.init(r)};l.DEFAULTS={resizeMode:"fit",draggingClass:"grip-drag",gripInnerHtml:"",liveDrag:!1,minWidth:15,headerOnly:!1,hoverCursor:"col-resize",dragCursor:"col-resize",flush:!1,marginLeft:null,marginRight:null,remoteTable:null,disable:!1,partialRefresh:!1,disabledColumns:[],removePadding:!0,widths:[],serialize:!0,onDrag:null,onResize:null}}])},t.exports=e()},function(t){var e;e=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=1)}([function(t){t.exports=function(t){for(var e=5381,n=t.length;n;)e=33*e^t.charCodeAt(--n);return e>>>0}},function(t,e,n){n.r(e),n.d(e,"default",(function(){return l}));var r=n(0),i=n.n(r);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s,u=(s=0,function(){return s++}),l=function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),a(this,"ID","id"),a(this,"PX","px"),a(this,"RESIZABLE","grip-resizable"),a(this,"FLEX","grip-flex"),a(this,"legacyIE",navigator.userAgent.indexOf("Trident/4.0")>0),a(this,"reset",(function(t){return n.init(t)})),a(this,"onResize",(function(){var t=n.tb;if(t.classList.remove(n.RESIZABLE),t.opt.fixed){t.tableWidth=Number(window.getComputedStyle(t).width.replace(/px/,"")).valueOf();for(var e=0,r=0;r<t.columnCnt;r++)e+=t.columns[r].w;for(var i=0;i<t.columnCnt;i++)t.columns[i].style.width=Math.round(1e3*t.columns[i].w/e)/10+"%",t.columns[i].locked=!0}else n.applyBounds(),"flex"===t.opt.resizeMode&&t.opt.serialize&&n.serializeStore();t.classList.add(n.RESIZABLE),n.syncGrips()})),a(this,"onGripMouseDown",(function(t){var e=t.target.parentNode.data,r=n.tb,i=r.grips[e.i],o=t.touches;if(i.ox=o?o[0].pageX:t.pageX,i.l=i.offsetLeft,i.x=i.l,n.createStyle(document.querySelector("head"),"*{cursor:"+r.opt.dragCursor+"!important}"),document.addEventListener("touchmove",n.onGripDrag),document.addEventListener("mousemove",n.onGripDrag),document.addEventListener("touchend",n.onGripDragOver),document.addEventListener("mouseup",n.onGripDragOver),i.classList.add(r.opt.draggingClass),n.grip=i,r.columns[e.i].locked)for(var a,s=0;s<r.columnCnt;s++)(a=r.columns[s]).locked=!1,a.w=Number(window.getComputedStyle(a).width.replace(/px/,"")).valueOf();t.preventDefault()})),a(this,"onGripDrag",(function(t){var e=n.grip;if(e){var r=e.t,i=t.touches,o=(i?i[0].pageX:t.pageX)-e.ox+e.l,a=r.opt.minWidth,s=e.i,u=1.5*r.cellSpace+a+r.borderSpace,l=s===r.columnCnt-1;if(o=Math.max(s?r.grips[s-1].offsetLeft+r.cellSpace+a:u,Math.min(r.opt.fixed?s===r.columnCnt-1?r.tableWidth-u:r.grips[s+1].offsetLeft-r.cellSpace-a:1/0,o)),e.x=o,e.style.left=o+n.PX,l&&(e.w=r.columns[s].w+o-e.l),r.opt.liveDrag){l?(r.columns[s].style.width=e.w+n.PX,!r.opt.fixed&&r.opt.overflow?r.style.minWidth=r.tableWidth+o-e.l+n.PX:r.tableWidth=Number(window.getComputedStyle(r).width.replace(/px/,"")).valueOf()):n.syncCols(r,s,!1,r.opt),n.syncGrips();var c=r.opt.onDrag;c&&c(t)}t.preventDefault()}})),a(this,"onGripDragOver",(function(t){var e=n.grip;document.removeEventListener("touchend",n.onGripDragOver),document.removeEventListener("mouseup",n.onGripDragOver),document.removeEventListener("touchmove",n.onGripDrag),document.removeEventListener("mousemove",n.onGripDrag);var r=document.querySelector("head").lastChild;if(r.parentNode.removeChild(r),e){if(e.classList.remove(e.t.opt.draggingClass),e.x-e.l!=0){var i=e.t,o=i.opt.onResize,a=e.i;if(a===i.columnCnt-1){var s=i.columns[a];s.style.width=e.w+n.PX,s.w=e.w}else n.syncCols(i,a,!0,i.opt);i.opt.fixed||n.applyBounds(),n.syncGrips(),o&&o(t),i.opt.serialize&&n.serializeStore()}n.grip=null}})),a(this,"init",(function(t){if(t.disable)return n.destroy();var e=n.tb,r=e.getAttribute(n.ID)||n.RESIZABLE+u();if(!e.matches("table")||e.extended&&!t.partialRefresh)return null;var i=document.querySelector("head");n.createStyle(i," .grip-resizable{table-layout:fixed;} .grip-resizable > tbody > tr > td, .grip-resizable > tbody > tr > th{overflow:hidden} .grip-padding > tbody > tr > td, .grip-padding > tbody > tr > th{padding-left:0!important; padding-right:0!important;} .grip-container{ height:0px; position:relative;} .grip-handle{margin-left:-5px; position:absolute; z-index:5; } .grip-handle .grip-resizable{position:absolute;background-color:red;filter:alpha(opacity=1);opacity:0;width:10px;height:100%;cursor: col-resize;top:0px} .grip-lastgrip{position:absolute; width:1px; } .grip-drag{ border-left:1px dotted black;\t} .grip-flex{width:auto!important;} .grip-handle.grip-disabledgrip .grip-resizable{cursor:default; display:none;}"),t.hoverCursor&&"col-resize"!==t.hoverCursor&&n.createStyle(i,".grip-handle .grip-resizable:hover{cursor:"+t.hoverCursor+"!important}"),e.setAttribute(n.ID,r);var o=e.opt;e.opt=n.extendOptions(t);var a=n.getTableHeaders(e);if(n.extendTable(a),t.remoteTable&&t.remoteTable.matches("table")){var s=n.getTableHeaders(e.opt.remoteTable);a.length===s.length?n.extendRemoteTable(e.opt.remoteTable,s,e):console.warn("column count for remote table did not match")}return o})),a(this,"applyBounds",(function(){var t=n.tb,e=t.columns.map((function(t){return window.getComputedStyle(t).width}));t.style.width=window.getComputedStyle(t).width,t.tableWidth=Number(t.style.width.replace(/px/,"")).valueOf(),t.classList.remove(n.FLEX),t.columns.forEach((function(t,n){t.style.width=e[n],t.w=Number(e[n].replace(/px/,"")).valueOf()})),t.classList.add(n.FLEX)})),a(this,"serializeStore",(function(){var t=n.store,e=n.tb;t[e.getAttribute(n.ID)]="";for(var r=0,i=0;i<e.columns.length;i++){var o=window.getComputedStyle(e.columns[i]).width.replace(/px/,"");t[e.getAttribute(n.ID)]+=o+";",r+=Number(o).valueOf()}t[e.getAttribute(n.ID)]+=r.toString(),e.opt.fixed||(t[e.getAttribute(n.ID)]+=";"+window.getComputedStyle(e).width.replace(/px/,""))})),a(this,"syncGrips",(function(){var t=n.tb;t.gripContainer.style.width=t.tableWidth+n.PX;for(var e=0;e<t.columnCnt;e++){var r=t.columns[e],i=r.getBoundingClientRect(),o=t.getBoundingClientRect();t.grips[e].style.left=i.left-o.left+r.offsetWidth+t.cellSpace/2+n.PX,t.grips[e].style.height=(t.opt.headerOnly?t.columns[0].offsetHeight:t.offsetHeight)+n.PX}})),a(this,"destroy",(function(){var t=n.tb,e=t.getAttribute(n.ID);return e?(n.store[e]="",t.classList.remove(n.RESIZABLE),t.classList.remove(n.FLEX),t.remote&&(t.remote.classList.remove(n.RESIZABLE),t.remote.classList.remove(n.FLEX)),t.gripContainer&&t.gripContainer.parentNode&&t.gripContainer.parentNode.removeChild(t.gripContainer),delete t.extended,t.opt):null})),a(this,"createStyle",(function(t,e){var n=i()(e).toString(),r=t.querySelectorAll("style");if(!Array.from(r).filter((function(t){return t.gripid===n})).length){var o=document.createElement("style");o.type="text/css",o.gripid=n,o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e)),t.appendChild(o)}})),a(this,"extendOptions",(function(e){var n=Object.assign({},t.DEFAULTS,e);switch(n.fixed=!0,n.overflow=!1,n.resizeMode){case"flex":n.fixed=!1;break;case"overflow":n.fixed=!1,n.overflow=!0}return n})),a(this,"getTableHeaders",(function(t){var e="#"+t.id,r=Array.from(t.querySelectorAll(e+">thead>tr:nth-of-type(1)>th"));return(r=r.concat(Array.from(t.querySelectorAll(e+">thead>tr:nth-of-type(1)>td")))).length||(r=(r=(r=(r=Array.from(t.querySelectorAll(e+">tbody>tr:nth-of-type(1)>th"))).concat(Array.from(t.querySelectorAll(e+">tr:nth-of-type(1)>th")))).concat(Array.from(t.querySelectorAll(e+">tbody>tr:nth-of-type(1)>td")))).concat(Array.from(t.querySelectorAll(e+">tr:nth-of-type(1)>td")))),n.filterInvisible(r,!1)})),a(this,"filterInvisible",(function(t,e){return t.filter((function(t){return!(0===(e?-1:t.offsetWidth)&&0===(e?-1:t.offsetHeight)||t.style&&t.style.display&&"none"===window.getComputedStyle(t).display)}))})),a(this,"extendTable",(function(t){var e=n.tb;e.opt.removePadding&&e.classList.add("grip-padding"),e.classList.add(n.RESIZABLE),e.insertAdjacentHTML("beforebegin",'<div class="grip-container"/>'),e.grips=[],e.columns=[],e.tableWidth=Number(window.getComputedStyle(e).width.replace(/px/,"")).valueOf(),e.gripContainer=e.previousElementSibling,e.opt.marginLeft&&(e.gripContainer.style.marginLeft=e.opt.marginLeft),e.opt.marginRight&&(e.gripContainer.style.marginRight=e.opt.marginRight),e.cellSpace=parseInt(n.legacyIE?e.cellSpacing||e.currentStyle.borderSpacing:window.getComputedStyle(e).borderSpacing.split(" ")[0].replace(/px/,""))||2,e.borderSpace=parseInt(n.legacyIE?e.border||e.currentStyle.borderLeftWidth:window.getComputedStyle(e).borderLeftWidth.replace(/px/,""))||1,e.extended=!0,n.createGrips(t)})),a(this,"extendRemoteTable",(function(t,e,r){r.opt.removePadding&&t.classList.add("grip-padding"),t.classList.add(n.RESIZABLE),t.getAttribute(n.ID)||t.setAttribute(n.ID,r.getAttribute(n.ID)+"remote"),t.columns=[],e.forEach((function(i,o){var a=e[o];a.w=r.columns[o].w,a.style.width=a.w+n.PX,a.removeAttribute("width"),t.columns.push(a)})),t.tableWidth=r.tableWidth,t.cellSpace=r.cellSpace,t.borderSpace=r.borderSpace;var i=Array.from(t.querySelectorAll("col"));t.columnGrp=n.filterInvisible(i,!0),t.columnGrp.forEach((function(t,e){t.removeAttribute("width"),t.style.width=r.columnGrp[e].style.width})),r.remote=t})),a(this,"createGrips",(function(t){var e=n.tb;e.columnGrp=n.filterInvisible(Array.from(e.querySelectorAll("col")),!0),e.columnGrp.forEach((function(t){t.removeAttribute("width")})),e.columnCnt=t.length;var r=!1;n.store[e.getAttribute(n.ID)]&&(n.deserializeStore(t),r=!0),e.opt.widths||(e.opt.widths=[]),t.forEach((function(i,o){var a=t[o],s=-1!==e.opt.disabledColumns.indexOf(o);n.createDiv(e.gripContainer,"grip-handle");var u=e.gripContainer.lastChild;!s&&e.opt.gripInnerHtml&&(u.innerHTML=e.opt.gripInnerHtml),n.createDiv(u,n.RESIZABLE),o===e.columnCnt-1&&(u.classList.add("grip-lastgrip"),e.opt.fixed&&(u.innerHTML="")),u.addEventListener("touchstart",n.onGripMouseDown,{capture:!0,passive:!0}),u.addEventListener("mousedown",n.onGripMouseDown,!0),s?u.classList.add("grip-disabledgrip"):(u.classList.remove("grip-disabledgrip"),u.addEventListener("touchstart",n.onGripMouseDown,{capture:!0,passive:!0}),u.addEventListener("mousedown",n.onGripMouseDown,!0)),u.t=e,u.i=o,a.w=e.opt.widths[o]?e.opt.widths[o]:r?Number(a.style.width.replace(/px/,"")).valueOf():Number(window.getComputedStyle(a).width.replace(/px/,"")).valueOf(),a.style.width=a.w+n.PX,a.removeAttribute("width"),u.data={i:o,t:e.getAttribute(n.ID),last:o===e.columnCnt-1},e.grips.push(u),e.columns.push(a)}));var i=Array.from(e.querySelectorAll("td"));i.concat(Array.from(e.querySelectorAll("th"))),(i=(i=i.filter((function(e){for(var n=0;n<t.length;n++)if(t[n]===e)return!1;return!0}))).filter((function(t){return!(t.querySelectorAll("table th").length||t.querySelectorAll("table td").length)}))).forEach((function(t){t.removeAttribute("width")})),e.opt.fixed||(e.removeAttribute("width"),e.classList.add(n.FLEX)),n.syncGrips()})),a(this,"deserializeStore",(function(t){var e=n.tb;if(e.columnGrp.forEach((function(t){t.removeAttribute("width")})),e.opt.flush)n.store[e.getAttribute(n.ID)]="";else{var r=n.store[e.getAttribute(n.ID)].split(";"),i=r[e.columnCnt+1];!e.opt.fixed&&i&&(e.style.width=i+n.PX,e.opt.overflow&&(e.style.minWidth=i+n.PX,e.tableWidth=Number(i).valueOf()));for(var o=0;o<e.columnCnt;o++)t[o].style.width=r[o]+n.PX,e.columnGrp[o]&&(e.columnGrp[o].style.width=100*Number(r[o]).valueOf()/Number(r[e.columnCnt]).valueOf()+"%")}})),a(this,"createDiv",(function(t,e,n){var r=document.createElement("div");r.classList.add(e),n&&(r.innerHTML=n),t.appendChild(r)})),a(this,"syncCols",(function(t,e,r,i){var o=t.remote,a=n.grip.x-n.grip.l,s=t.columns[e],u=t.columns[e+1];if(s&&u){var l=s.w+a,c=u.w-a,f=l+n.PX;if(s.style.width=f,t.columnGrp[e]&&t.columnGrp[e].style.width&&(t.columnGrp[e].style.width=f),o&&(o.columns[e].style.width=f,o.columnGrp[e]&&o.columnGrp[e].style.width&&(o.columnGrp[e].style.width=f)),i.fixed){var d=c+n.PX;u.style.width=d,t.columnGrp[e+1]&&t.columnGrp[e+1].style.width&&(t.columnGrp[e+1].style.width=d),o&&(o.columns[e+1].style.width=d,o.columnGrp[e+1]&&o.columnGrp[e+1].style.width&&(o.columnGrp[e+1].style.width=d))}else i.overflow&&(t.style.minWidth=t.tableWidth+a+n.PX);r&&(s.w=l,u.w=i.fixed?c:u.w,o&&(o.columns[e].w=l,o.columns[e+1].w=i.fixed?c:u.w))}}));try{this.store=sessionStorage}catch(e){this.store={}}this.grip=null,this.tb=e,window.addEventListener("resize",this.onResize),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),this.init(r)};l.DEFAULTS={resizeMode:"fit",draggingClass:"grip-drag",gripInnerHtml:"",liveDrag:!1,minWidth:15,headerOnly:!1,hoverCursor:"col-resize",dragCursor:"col-resize",flush:!1,marginLeft:null,marginRight:null,remoteTable:null,disable:!1,partialRefresh:!1,disabledColumns:[],removePadding:!0,widths:[],serialize:!0,onDrag:null,onResize:null}}])},t.exports=e()},function(){},function(){},function(t,e,n){!function(t){var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,u={},l=i.htmlMode?e:n;for(var c in l)u[c]=l[c];for(var c in i)u[c]=i[c];function f(t,e){function n(n){return e.tokenize=n,n(t,e)}var r=t.next();return"<"==r?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(h("atom","]]>")):null:t.match("--")?n(h("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(function t(e){return function(n,r){for(var i;null!=(i=n.next());){if("<"==i)return r.tokenize=t(e+1),r.tokenize(n,r);if(">"==i){if(1==e){r.tokenize=f;break}return r.tokenize=t(e-1),r.tokenize(n,r)}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=h("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",e.tokenize=d,"tag bracket"):"&"==r?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function d(t,e){var n,r,i=t.next();if(">"==i||"/"==i&&t.eat(">"))return e.tokenize=f,o=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return o="equals",null;if("<"==i){e.tokenize=f,e.state=g,e.tagName=e.tagStart=null;var a=e.tokenize(t,e);return a?a+" tag error":"tag error"}return/[\'\"]/.test(i)?(e.tokenize=(n=i,(r=function(t,e){for(;!t.eol();)if(t.next()==n){e.tokenize=d;break}return"string"}).isInAttribute=!0,r),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(t,e){return function(n,r){for(;!n.eol();){if(n.match(e)){r.tokenize=f;break}n.next()}return t}}function p(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(u.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function v(t){t.context&&(t.context=t.context.prev)}function b(t,e){for(var n;;){if(!t.context)return;if(!u.contextGrabbers.hasOwnProperty(n=t.context.tagName)||!u.contextGrabbers[n].hasOwnProperty(e))return;v(t)}}function g(t,e,n){return"openTag"==t?(n.tagStart=e.column(),m):"closeTag"==t?y:g}function m(t,e,n){return"word"==t?(n.tagName=e.current(),a="tag",T):u.allowMissingTagName&&"endTag"==t?(a="tag bracket",T(t,0,n)):(a="error",m)}function y(t,e,n){if("word"==t){var r=e.current();return n.context&&n.context.tagName!=r&&u.implicitlyClosed.hasOwnProperty(n.context.tagName)&&v(n),n.context&&n.context.tagName==r||!1===u.matchClosing?(a="tag",E):(a="tag error",x)}return u.allowMissingTagName&&"endTag"==t?(a="tag bracket",E(t,0,n)):(a="error",x)}function E(t,e,n){return"endTag"!=t?(a="error",E):(v(n),g)}function x(t,e,n){return a="error",E(t,0,n)}function T(t,e,n){if("word"==t)return a="attribute",_;if("endTag"==t||"selfcloseTag"==t){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||u.autoSelfClosers.hasOwnProperty(r)?b(n,r):(b(n,r),n.context=new p(n,r,i==n.indented)),g}return a="error",T}function _(t,e,n){return"equals"==t?S:(u.allowMissing||(a="error"),T(t,0,n))}function S(t,e,n){return"string"==t?w:"word"==t&&u.allowUnquoted?(a="string",T):(a="error",T(t,0,n))}function w(t,e,n){return"string"==t?w:T(t,0,n)}return f.isInText=!0,{startState:function(t){var e={tokenize:f,state:g,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;o=null;var n=e.tokenize(t,e);return(n||o)&&"comment"!=n&&(a=null,e.state=e.state(o||n,t,e),a&&(n="error"==a?n+" error":a)),n},indent:function(e,n,r){var i=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(i&&i.noIndent)return t.Pass;if(e.tokenize!=d&&e.tokenize!=f)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==u.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(u.multilineTagIndentFactor||1);if(u.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;i;){if(i.tagName==o[2]){i=i.prev;break}if(!u.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(o)for(;i;){var a=u.contextGrabbers[i.tagName];if(!a||!a.hasOwnProperty(o[2]))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:u.htmlMode?"html":"xml",helperType:u.htmlMode?"html":"xml",skipAttribute:function(t){t.state==S&&(t.state=T)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],n=t.context;n;n=n.prev)n.tagName&&e.push(n.tagName);return e.reverse()}}})),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(4))},function(t,e,n){!function(t){t.defineMode("javascript",(function(e,n){var r,i,o=e.indentUnit,a=n.statementIndent,s=n.jsonld,u=n.json||s,l=n.typescript,c=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function t(t){return{type:t,style:"keyword"}}var e=t("keyword a"),n=t("keyword b"),r=t("keyword c"),i=t("keyword d"),o=t("operator"),a={type:"atom",style:"atom"};return{if:t("if"),while:e,with:e,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:t("new"),delete:r,void:r,throw:r,debugger:t("debugger"),var:t("var"),const:t("var"),let:t("var"),function:t("function"),catch:t("catch"),for:t("for"),switch:t("switch"),case:t("case"),default:t("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:t("this"),class:t("class"),super:t("atom"),yield:r,export:t("export"),import:t("import"),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function p(t,e,n){return r=t,i=n,e}function v(t,e){var n,r=t.next();if('"'==r||"'"==r)return e.tokenize=(n=r,function(t,e){var r,i=!1;if(s&&"@"==t.peek()&&t.match(h))return e.tokenize=v,p("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(e.tokenize=v),p("string","string")}),e.tokenize(t,e);if("."==r&&t.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return p("number","number");if("."==r&&t.match(".."))return p("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return p(r);if("="==r&&t.eat(">"))return p("=>","operator");if("0"==r&&t.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return p("number","number");if(/\d/.test(r))return t.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),p("number","number");if("/"==r)return t.eat("*")?(e.tokenize=b,b(t,e)):t.eat("/")?(t.skipToEnd(),p("comment","comment")):Yt(t,e,1)?(function(t){for(var e,n=!1,r=!1;null!=(e=t.next());){if(!n){if("/"==e&&!r)return;"["==e?r=!0:r&&"]"==e&&(r=!1)}n=!n&&"\\"==e}}(t),t.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),p("regexp","string-2")):(t.eat("="),p("operator","operator",t.current()));if("`"==r)return e.tokenize=g,g(t,e);if("#"==r&&"!"==t.peek())return t.skipToEnd(),p("meta","meta");if("#"==r&&t.eatWhile(c))return p("variable","property");if("<"==r&&t.match("!--")||"-"==r&&t.match("->")&&!/\S/.test(t.string.slice(0,t.start)))return t.skipToEnd(),p("comment","comment");if(d.test(r))return">"==r&&e.lexical&&">"==e.lexical.type||(t.eat("=")?"!"!=r&&"="!=r||t.eat("="):/[<>*+\-]/.test(r)&&(t.eat(r),">"==r&&t.eat(r))),"?"==r&&t.eat(".")?p("."):p("operator","operator",t.current());if(c.test(r)){t.eatWhile(c);var i=t.current();if("."!=e.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return p(o.type,o.style,i)}if("async"==i&&t.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return p("async","keyword",i)}return p("variable","variable",i)}}function b(t,e){for(var n,r=!1;n=t.next();){if("/"==n&&r){e.tokenize=v;break}r="*"==n}return p("comment","comment")}function g(t,e){for(var n,r=!1;null!=(n=t.next());){if(!r&&("`"==n||"$"==n&&t.eat("{"))){e.tokenize=v;break}r=!r&&"\\"==n}return p("quasi","string-2",t.current())}function m(t,e){e.fatArrowAt&&(e.fatArrowAt=null);var n=t.string.indexOf("=>",t.start);if(!(n<0)){if(l){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=t.string.charAt(a),u="([{}])".indexOf(s);if(u>=0&&u<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(u>=3&&u<6)++i;else if(c.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(t.string.charAt(a-1)==s&&"\\"!=t.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(e.fatArrowAt=a)}}var y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function E(t,e,n,r,i,o){this.indented=t,this.column=e,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function x(t,e){for(var n=t.localVars;n;n=n.next)if(n.name==e)return!0;for(var r=t.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==e)return!0}var T={state:null,column:null,marked:null,cc:null};function _(){for(var t=arguments.length-1;t>=0;t--)T.cc.push(arguments[t])}function S(){return _.apply(null,arguments),!0}function w(t,e){for(var n=e;n;n=n.next)if(n.name==t)return!0;return!1}function A(t){var e=T.state;if(T.marked="def",e.context)if("var"==e.lexical.info&&e.context&&e.context.block){var r=function t(e,n){if(n){if(n.block){var r=t(e,n.prev);return r?r==n.prev?n:new I(r,n.vars,!0):null}return w(e,n.vars)?n:new I(n.prev,new C(e,n.vars),!1)}return null}(t,e.context);if(null!=r)return void(e.context=r)}else if(!w(t,e.localVars))return void(e.localVars=new C(t,e.localVars));n.globalVars&&!w(t,e.globalVars)&&(e.globalVars=new C(t,e.globalVars))}function N(t){return"public"==t||"private"==t||"protected"==t||"abstract"==t||"readonly"==t}function I(t,e,n){this.prev=t,this.vars=e,this.block=n}function C(t,e){this.name=t,this.next=e}var L=new C("this",new C("arguments",null));function R(){T.state.context=new I(T.state.context,T.state.localVars,!1),T.state.localVars=L}function O(){T.state.context=new I(T.state.context,T.state.localVars,!0),T.state.localVars=null}function k(){T.state.localVars=T.state.context.vars,T.state.context=T.state.context.prev}function P(t,e){var n=function(){var n=T.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new E(r,T.stream.column(),t,null,n.lexical,e)};return n.lex=!0,n}function D(){var t=T.state;t.lexical.prev&&(")"==t.lexical.type&&(t.indented=t.lexical.indented),t.lexical=t.lexical.prev)}function M(t){return function e(n){return n==t?S():";"==t||"}"==n||")"==n||"]"==n?_():S(e)}}function j(t,e){return"var"==t?S(P("vardef",e),mt,M(";"),D):"keyword a"==t?S(P("form"),G,j,D):"keyword b"==t?S(P("form"),j,D):"keyword d"==t?T.stream.match(/^\s*$/,!1)?S():S(P("stat"),V,M(";"),D):"debugger"==t?S(M(";")):"{"==t?S(P("}"),O,ot,D,k):";"==t?S():"if"==t?("else"==T.state.lexical.info&&T.state.cc[T.state.cc.length-1]==D&&T.state.cc.pop()(),S(P("form"),G,j,D,St)):"function"==t?S(It):"for"==t?S(P("form"),wt,j,D):"class"==t||l&&"interface"==e?(T.marked="keyword",S(P("form","class"==t?t:e),kt,D)):"variable"==t?l&&"declare"==e?(T.marked="keyword",S(j)):l&&("module"==e||"enum"==e||"type"==e)&&T.stream.match(/^\s*\w/,!1)?(T.marked="keyword","enum"==e?S(zt):"type"==e?S(Lt,M("operator"),ct,M(";")):S(P("form"),yt,M("{"),P("}"),ot,D,D)):l&&"namespace"==e?(T.marked="keyword",S(P("form"),F,j,D)):l&&"abstract"==e?(T.marked="keyword",S(j)):S(P("stat"),Z):"switch"==t?S(P("form"),G,M("{"),P("}","switch"),O,ot,D,D,k):"case"==t?S(F,M(":")):"default"==t?S(M(":")):"catch"==t?S(P("form"),R,q,j,D,k):"export"==t?S(P("stat"),jt,D):"import"==t?S(P("stat"),Ft,D):"async"==t?S(j):"@"==e?S(F,j):_(P("stat"),F,M(";"),D)}function q(t){if("("==t)return S(Rt,M(")"))}function F(t,e){return B(t,e,!1)}function U(t,e){return B(t,e,!0)}function G(t){return"("!=t?_():S(P(")"),V,M(")"),D)}function B(t,e,n){if(T.state.fatArrowAt==T.stream.start){var r=n?Q:W;if("("==t)return S(R,P(")"),rt(Rt,")"),D,M("=>"),r,k);if("variable"==t)return _(R,yt,M("=>"),r,k)}var i=n?z:H;return y.hasOwnProperty(t)?S(i):"function"==t?S(It,i):"class"==t||l&&"interface"==e?(T.marked="keyword",S(P("form"),Ot,D)):"keyword c"==t||"async"==t?S(n?U:F):"("==t?S(P(")"),V,M(")"),D,i):"operator"==t||"spread"==t?S(n?U:F):"["==t?S(P("]"),Ht,D,i):"{"==t?it(tt,"}",null,i):"quasi"==t?_($,i):"new"==t?S(function(t){return function(e){return"."==e?S(t?X:K):"variable"==e&&l?S(vt,t?z:H):_(t?U:F)}}(n)):"import"==t?S(F):S()}function V(t){return t.match(/[;\}\)\],]/)?_():_(F)}function H(t,e){return","==t?S(V):z(t,e,!1)}function z(t,e,n){var r=0==n?H:z,i=0==n?F:U;return"=>"==t?S(R,n?Q:W,k):"operator"==t?/\+\+|--/.test(e)||l&&"!"==e?S(r):l&&"<"==e&&T.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(P(">"),rt(ct,">"),D,r):"?"==e?S(F,M(":"),i):S(i):"quasi"==t?_($,r):";"!=t?"("==t?it(U,")","call",r):"."==t?S(J,r):"["==t?S(P("]"),V,M("]"),D,r):l&&"as"==e?(T.marked="keyword",S(ct,r)):"regexp"==t?(T.state.lastType=T.marked="operator",T.stream.backUp(T.stream.pos-T.stream.start-1),S(i)):void 0:void 0}function $(t,e){return"quasi"!=t?_():"${"!=e.slice(e.length-2)?S($):S(F,Y)}function Y(t){if("}"==t)return T.marked="string-2",T.state.tokenize=g,S($)}function W(t){return m(T.stream,T.state),_("{"==t?j:F)}function Q(t){return m(T.stream,T.state),_("{"==t?j:U)}function K(t,e){if("target"==e)return T.marked="keyword",S(H)}function X(t,e){if("target"==e)return T.marked="keyword",S(z)}function Z(t){return":"==t?S(D,j):_(H,M(";"),D)}function J(t){if("variable"==t)return T.marked="property",S()}function tt(t,e){return"async"==t?(T.marked="property",S(tt)):"variable"==t||"keyword"==T.style?(T.marked="property","get"==e||"set"==e?S(et):(l&&T.state.fatArrowAt==T.stream.start&&(n=T.stream.match(/^\s*:\s*/,!1))&&(T.state.fatArrowAt=T.stream.pos+n[0].length),S(nt))):"number"==t||"string"==t?(T.marked=s?"property":T.style+" property",S(nt)):"jsonld-keyword"==t?S(nt):l&&N(e)?(T.marked="keyword",S(tt)):"["==t?S(F,at,M("]"),nt):"spread"==t?S(U,nt):"*"==e?(T.marked="keyword",S(tt)):":"==t?_(nt):void 0;var n}function et(t){return"variable"!=t?_(nt):(T.marked="property",S(It))}function nt(t){return":"==t?S(U):"("==t?_(It):void 0}function rt(t,e,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=T.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),S((function(n,r){return n==e||r==e?_():_(t)}),r)}return i==e||o==e?S():n&&n.indexOf(";")>-1?_(t):S(M(e))}return function(n,i){return n==e||i==e?S():_(t,r)}}function it(t,e,n){for(var r=3;r<arguments.length;r++)T.cc.push(arguments[r]);return S(P(e,n),rt(t,e),D)}function ot(t){return"}"==t?S():_(j,ot)}function at(t,e){if(l){if(":"==t)return S(ct);if("?"==e)return S(at)}}function st(t,e){if(l&&(":"==t||"in"==e))return S(ct)}function ut(t){if(l&&":"==t)return T.stream.match(/^\s*\w+\s+is\b/,!1)?S(F,lt,ct):S(ct)}function lt(t,e){if("is"==e)return T.marked="keyword",S()}function ct(t,e){return"keyof"==e||"typeof"==e||"infer"==e?(T.marked="keyword",S("typeof"==e?U:ct)):"variable"==t||"void"==e?(T.marked="type",S(pt)):"|"==e||"&"==e?S(ct):"string"==t||"number"==t||"atom"==t?S(pt):"["==t?S(P("]"),rt(ct,"]",","),D,pt):"{"==t?S(P("}"),rt(dt,"}",",;"),D,pt):"("==t?S(rt(ht,")"),ft,pt):"<"==t?S(rt(ct,">"),ct):void 0}function ft(t){if("=>"==t)return S(ct)}function dt(t,e){return"variable"==t||"keyword"==T.style?(T.marked="property",S(dt)):"?"==e||"number"==t||"string"==t?S(dt):":"==t?S(ct):"["==t?S(M("variable"),st,M("]"),dt):"("==t?_(Ct,dt):void 0}function ht(t,e){return"variable"==t&&T.stream.match(/^\s*[?:]/,!1)||"?"==e?S(ht):":"==t?S(ct):"spread"==t?S(ht):_(ct)}function pt(t,e){return"<"==e?S(P(">"),rt(ct,">"),D,pt):"|"==e||"."==t||"&"==e?S(ct):"["==t?S(ct,M("]"),pt):"extends"==e||"implements"==e?(T.marked="keyword",S(ct)):"?"==e?S(ct,M(":"),ct):void 0}function vt(t,e){if("<"==e)return S(P(">"),rt(ct,">"),D,pt)}function bt(){return _(ct,gt)}function gt(t,e){if("="==e)return S(ct)}function mt(t,e){return"enum"==e?(T.marked="keyword",S(zt)):_(yt,at,Tt,_t)}function yt(t,e){return l&&N(e)?(T.marked="keyword",S(yt)):"variable"==t?(A(e),S()):"spread"==t?S(yt):"["==t?it(xt,"]"):"{"==t?it(Et,"}"):void 0}function Et(t,e){return"variable"!=t||T.stream.match(/^\s*:/,!1)?("variable"==t&&(T.marked="property"),"spread"==t?S(yt):"}"==t?_():"["==t?S(F,M("]"),M(":"),Et):S(M(":"),yt,Tt)):(A(e),S(Tt))}function xt(){return _(yt,Tt)}function Tt(t,e){if("="==e)return S(U)}function _t(t){if(","==t)return S(mt)}function St(t,e){if("keyword b"==t&&"else"==e)return S(P("form","else"),j,D)}function wt(t,e){return"await"==e?S(wt):"("==t?S(P(")"),At,D):void 0}function At(t){return"var"==t?S(mt,Nt):"variable"==t?S(Nt):_(Nt)}function Nt(t,e){return")"==t?S():";"==t?S(Nt):"in"==e||"of"==e?(T.marked="keyword",S(F,Nt)):_(F,Nt)}function It(t,e){return"*"==e?(T.marked="keyword",S(It)):"variable"==t?(A(e),S(It)):"("==t?S(R,P(")"),rt(Rt,")"),D,ut,j,k):l&&"<"==e?S(P(">"),rt(bt,">"),D,It):void 0}function Ct(t,e){return"*"==e?(T.marked="keyword",S(Ct)):"variable"==t?(A(e),S(Ct)):"("==t?S(R,P(")"),rt(Rt,")"),D,ut,k):l&&"<"==e?S(P(">"),rt(bt,">"),D,Ct):void 0}function Lt(t,e){return"keyword"==t||"variable"==t?(T.marked="type",S(Lt)):"<"==e?S(P(">"),rt(bt,">"),D):void 0}function Rt(t,e){return"@"==e&&S(F,Rt),"spread"==t?S(Rt):l&&N(e)?(T.marked="keyword",S(Rt)):l&&"this"==t?S(at,Tt):_(yt,at,Tt)}function Ot(t,e){return"variable"==t?kt(t,e):Pt(t,e)}function kt(t,e){if("variable"==t)return A(e),S(Pt)}function Pt(t,e){return"<"==e?S(P(">"),rt(bt,">"),D,Pt):"extends"==e||"implements"==e||l&&","==t?("implements"==e&&(T.marked="keyword"),S(l?ct:F,Pt)):"{"==t?S(P("}"),Dt,D):void 0}function Dt(t,e){return"async"==t||"variable"==t&&("static"==e||"get"==e||"set"==e||l&&N(e))&&T.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(T.marked="keyword",S(Dt)):"variable"==t||"keyword"==T.style?(T.marked="property",S(Mt,Dt)):"number"==t||"string"==t?S(Mt,Dt):"["==t?S(F,at,M("]"),Mt,Dt):"*"==e?(T.marked="keyword",S(Dt)):l&&"("==t?_(Ct,Dt):";"==t||","==t?S(Dt):"}"==t?S():"@"==e?S(F,Dt):void 0}function Mt(t,e){if("?"==e)return S(Mt);if(":"==t)return S(ct,Tt);if("="==e)return S(U);var n=T.state.lexical.prev;return _(n&&"interface"==n.info?Ct:It)}function jt(t,e){return"*"==e?(T.marked="keyword",S(Vt,M(";"))):"default"==e?(T.marked="keyword",S(F,M(";"))):"{"==t?S(rt(qt,"}"),Vt,M(";")):_(j)}function qt(t,e){return"as"==e?(T.marked="keyword",S(M("variable"))):"variable"==t?_(U,qt):void 0}function Ft(t){return"string"==t?S():"("==t?_(F):_(Ut,Gt,Vt)}function Ut(t,e){return"{"==t?it(Ut,"}"):("variable"==t&&A(e),"*"==e&&(T.marked="keyword"),S(Bt))}function Gt(t){if(","==t)return S(Ut,Gt)}function Bt(t,e){if("as"==e)return T.marked="keyword",S(Ut)}function Vt(t,e){if("from"==e)return T.marked="keyword",S(F)}function Ht(t){return"]"==t?S():_(rt(U,"]"))}function zt(){return _(P("form"),yt,M("{"),P("}"),rt($t,"}"),D,D)}function $t(){return _(yt,Tt)}function Yt(t,e,n){return e.tokenize==v&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(n||0)))}return k.lex=!0,D.lex=!0,{startState:function(t){var e={tokenize:v,lastType:"sof",cc:[],lexical:new E((t||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new I(null,null,!1),indented:t||0};return n.globalVars&&"object"==typeof n.globalVars&&(e.globalVars=n.globalVars),e},token:function(t,e){if(t.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=t.indentation(),m(t,e)),e.tokenize!=b&&t.eatSpace())return null;var n=e.tokenize(t,e);return"comment"==r?n:(e.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",function(t,e,n,r,i){var o=t.cc;for(T.state=t,T.stream=i,T.marked=null,T.cc=o,T.style=e,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;)if((o.length?o.pop():u?F:j)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return T.marked?T.marked:"variable"==n&&x(t,r)?"variable-2":e}}(e,n,r,i,t))},indent:function(e,r){if(e.tokenize==b)return t.Pass;if(e.tokenize!=v)return 0;var i,s=r&&r.charAt(0),u=e.lexical;if(!/^\s*else\b/.test(r))for(var l=e.cc.length-1;l>=0;--l){var c=e.cc[l];if(c==D)u=u.prev;else if(c!=St)break}for(;("stat"==u.type||"form"==u.type)&&("}"==s||(i=e.cc[e.cc.length-1])&&(i==H||i==z)&&!/^[,\.=+\-*:?[\(]/.test(r));)u=u.prev;a&&")"==u.type&&"stat"==u.prev.type&&(u=u.prev);var f=u.type,h=s==f;return"vardef"==f?u.indented+("operator"==e.lastType||","==e.lastType?u.info.length+1:0):"form"==f&&"{"==s?u.indented:"form"==f?u.indented+o:"stat"==f?u.indented+(function(t,e){return"operator"==t.lastType||","==t.lastType||d.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}(e,r)?a||o:0):"switch"!=u.info||h||0==n.doubleIndentSwitch?u.align?u.column+(h?0:1):u.indented+(h?0:o):u.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:s,jsonMode:u,expressionAllowed:Yt,skipExpression:function(t){var e=t.cc[t.cc.length-1];e!=F&&e!=U||t.cc.pop()}}})),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(4))},function(t){t.exports=function(t,e){var n=[];return 0===e.length?n.push({text:t,highlight:!1}):e[0][0]>0&&n.push({text:t.slice(0,e[0][0]),highlight:!1}),e.forEach((function(r,i){var o=r[1];n.push({text:t.slice(r[0],o),highlight:!0}),i===e.length-1?o<t.length&&n.push({text:t.slice(o,t.length),highlight:!1}):o<e[i+1][0]&&n.push({text:t.slice(o,e[i+1][0]),highlight:!1})})),n}},function(t,e,n){var r=n(84),i=n(86),o=Object(i.a)((function(t,e,n){Object(r.a)(t,e,n)}));e.a=o},function(t,e,n){var r=n(57),i=Object(r.a)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),o=n(30),a=/[&<>"']/g,s=RegExp(a.source);e.a=function(t){return(t=Object(o.a)(t))&&s.test(t)?t.replace(a,i):t}},function(t){var e;e=function(){function t(t){return t.innerHTML=""}function e(e,n,i,a,s,u){a({event:e,query:n instanceof HTMLInputElement?n.value:n.innerHTML,matches:s.matches,results:s.list.map((function(t){return t.value})),selection:s.list.find((function(t){return e.keyCode===o?t.index===Number(u.getAttribute(r)):"mousedown"===e.type?t.index===Number(e.currentTarget.getAttribute(r)):void 0}))}),t(i)}function n(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}var r="data-id",i="autoComplete_selected",o=13,a=function(t){return"string"==typeof t?document.querySelector(t):t()},s=function(t){return"<span class=".concat("autoComplete_highlighted",">").concat(t,"</span>")},u=function(t,e,n){var i=document.createDocumentFragment();e.forEach((function(t,o){var a=document.createElement(n.element);a.setAttribute(r,e[o].index),a.setAttribute("class","autoComplete_result"),n.content?n.content(t,a):a.innerHTML=t.match||t,i.appendChild(a)})),t.appendChild(i)},l=t;n.prototype=window.Event.prototype;var c={CustomEventWrapper:"function"==typeof window.CustomEvent&&window.CustomEvent||n,initElementClosestPolyfill:function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null})}};return function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=e.selector,r=void 0===n?"#autoComplete":n,i=e.data,o=i.key,s=i.src,u=i.cache,l=void 0===u||u,c=e.query,f=e.trigger,d=(f=void 0===f?{}:f).event,h=void 0===d?["input"]:d,p=f.condition,v=void 0!==p&&p,b=e.searchEngine,g=void 0===b?"strict":b,m=e.threshold,y=void 0===m?0:m,E=e.debounce,x=void 0===E?0:E,T=e.resultsList,_=(T=void 0===T?{}:T).render,S=void 0!==_&&_,w=T.container,A=T.position,N=void 0===A?"afterend":A,I=T.element,C=void 0===I?"ul":I,L=T.navigation,R=void 0!==L&&L,O=e.sort,k=void 0!==O&&O,P=e.placeHolder,D=e.maxResults,M=void 0===D?5:D,j=e.resultItem,q=(j=void 0===j?{}:j).content,F=void 0!==q&&q,U=j.element,G=void 0===U?"li":U,B=e.noResults,V=e.highlight,H=void 0!==V&&V,z=e.onSelection,$=S?function(t){var e=document.createElement(t.element);return e.setAttribute("id","autoComplete_list"),t.container&&t.container(e),t.destination.insertAdjacentElement(t.position,e),e}({container:void 0!==w&&w,destination:T.destination||a(r),position:N,element:C}):null;this.selector=r,this.data={src:function(){return"function"==typeof s?s():s},key:o,cache:l},this.query=c,this.trigger={event:h,condition:v},this.searchEngine="loose"===g?"loose":"function"==typeof g?g:"strict",this.threshold=y,this.debounce=x,this.resultsList={render:S,view:$,navigation:R},this.sort=k,this.placeHolder=P,this.maxResults=M,this.resultItem={content:F,element:G},this.noResults=B,this.highlight=H,this.onSelection=z,this.init()}return function(t,e){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(t,[{key:"search",value:function(t,e){var n=e.toLowerCase();if("loose"===this.searchEngine){t=t.replace(/ /g,"");for(var r=[],i=0,o=0;o<n.length;o++){var a=e[o];i<t.length&&n[o]===t[i]&&(a=this.highlight?s(a):a,i++),r.push(a)}return i===t.length&&r.join("")}if(n.includes(t))return t=new RegExp("".concat(t),"i").exec(e),this.highlight?e.replace(t,s(t)):e}},{key:"listMatchedResults",value:function(t){var e=this;return new Promise((function(n){var r=[];t.filter((function(t,n){function i(i){var o=i?t[i]:t;if(o){var a="function"==typeof e.searchEngine?e.searchEngine(e.queryValue,o):e.search(e.queryValue,o);a&&i?r.push({key:i,index:n,match:a,value:t}):a&&!i&&r.push({index:n,match:a,value:t})}}if(e.data.key){var o=!0,a=!1,s=void 0;try{for(var u,l=e.data.key[Symbol.iterator]();!(o=(u=l.next()).done);o=!0)i(u.value)}catch(i){a=!0,s=i}finally{try{o||null==l.return||l.return()}finally{if(a)throw s}}}else i()}));var i=e.sort?r.sort(e.sort).slice(0,e.maxResults):r.slice(0,e.maxResults);return n({matches:r.length,list:i})}))}},{key:"ignite",value:function(){var t=this,n=a(this.selector);function r(r){Promise.resolve(t.data.cache?t.dataStream:t.data.src()).then((function(a){t.dataStream=a,function(r){function a(t,e){n.dispatchEvent(new c.CustomEventWrapper("autoComplete",{bubbles:!0,detail:{event:t,input:s,query:f,matches:e?e.matches:null,results:e?e.list:null},cancelable:!0}))}var s=n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement?n.value.toLowerCase():n.innerHTML.toLowerCase(),f=t.queryValue=t.query&&t.query.manipulate?t.query.manipulate(s):s,d=t.resultsList.render,h=t.trigger.condition?t.trigger.condition(f):f.length>t.threshold&&f.replace(/ /g,"").length;if(d){var p=t.resultsList.view;l(p),h?t.listMatchedResults(t.dataStream,r).then((function(s){a(r,s),t.resultsList.render&&(0===s.list.length&&t.noResults?t.noResults():(u(p,s.list,t.resultItem),t.onSelection&&(t.resultsList.navigation?t.resultsList.navigation(r,n,p,t.onSelection,s):function(t,n,r,a){function s(t){d.classList.remove(i),l=1===t?d.nextSibling:d.previousSibling}function u(t){(d=t).classList.add(i)}var l,c=n.childNodes,f=c.length-1,d=void 0;t.onkeydown=function(i){if(0<c.length)switch(i.keyCode){case 38:d?(s(0),u(l||c[f])):u(c[f]);break;case 40:d?(s(1),u(l||c[0])):u(c[0]);break;case o:d&&e(i,t,n,r,a,d)}},c.forEach((function(i){i.onmousedown=function(i){return e(i,t,n,r,a)}}))}(n,p,t.onSelection,s))))})):a(r)}else!d&&h&&t.listMatchedResults(t.dataStream,r).then((function(t){a(r,t)}))}(r)}))}this.placeHolder&&n.setAttribute("placeholder",this.placeHolder),this.trigger.event.forEach((function(e){n.addEventListener(e,function(t,e){var n;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout((function(){return t.apply(r,i)}),e)}}((function(t){return r(t)}),t.debounce))}))}},{key:"init",value:function(){var t=this;this.data.cache?Promise.resolve(this.data.src()).then((function(e){t.dataStream=e,t.ignite()})):this.ignite(),c.initElementClosestPolyfill()}}]),t}()},t.exports=e()},,function(t,e,n){t.exports=n(189)},function(t,e,n){var r=n(28),i=n(77),o=n(61);e.a=function(t,e){var n={};return e=Object(o.a)(e,3),Object(i.a)(t,(function(t,i,o){Object(r.a)(n,i,e(t,i,o))})),n}},function(){},function(t,e,n){var r;!function(){var i={starts_with_slashes:/^\/+/,ends_with_slashes:/\/+$/,pluses:/\+/g,query_separator:/[&;]/,uri_parser:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*)(?::([^:@]*))?)?@)?(\[[0-9a-fA-F:.]+\]|[^:\/?#]*)(?::(\d+|(?=:)))?(:)?)((((?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/};function o(t){return t&&(t=t.toString().replace(i.pluses,"%20"),t=decodeURIComponent(t)),t}function a(t){var e,n,r,a,s,u,l,c=[];if(null==t||""===t)return c;for(0===t.indexOf("?")&&(t=t.substring(1)),e=0,l=(n=t.toString().split(i.query_separator)).length;e<l;e++)0!==(a=(r=n[e]).indexOf("="))&&(s=o(r.substring(0,a)),u=o(r.substring(a+1)),c.push(-1===a?[r,null]:[s,u]));return c}function s(t){this.uriParts=function(t){var e=i.uri_parser.exec(t||""),n={};return["source","protocol","authority","userInfo","user","password","host","port","isColonUri","relative","path","directory","file","query","anchor"].forEach((function(t,r){n[t]=e[r]||""})),n}(t),this.queryPairs=a(this.uriParts.query),this.hasAuthorityPrefixUserPref=null}Array.prototype.forEach||(Array.prototype.forEach=function(t,e){var n,r;if(null==this)throw new TypeError(" this is null or not defined");var i=Object(this),o=i.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=e),r=0;r<o;)r in i&&t.call(n,i[r],r,i),r++}),["protocol","userInfo","host","port","path","anchor"].forEach((function(t){s.prototype[t]=function(e){return void 0!==e&&(this.uriParts[t]=e),this.uriParts[t]}})),s.prototype.hasAuthorityPrefix=function(t){return void 0!==t&&(this.hasAuthorityPrefixUserPref=t),null===this.hasAuthorityPrefixUserPref?-1!==this.uriParts.source.indexOf("//"):this.hasAuthorityPrefixUserPref},s.prototype.isColonUri=function(t){if(void 0===t)return!!this.uriParts.isColonUri;this.uriParts.isColonUri=!!t},s.prototype.query=function(t){var e,n,r,i="";for(void 0!==t&&(this.queryPairs=a(t)),e=0,r=this.queryPairs.length;e<r;e++)i.length>0&&(i+="&"),null===(n=this.queryPairs[e])[1]?i+=n[0]:(i+=n[0],i+="=",void 0!==n[1]&&(i+=encodeURIComponent(n[1])));return i.length>0?"?"+i:i},s.prototype.getQueryParamValue=function(t){var e,n,r;for(n=0,r=this.queryPairs.length;n<r;n++)if(t===(e=this.queryPairs[n])[0])return e[1]},s.prototype.getQueryParamValues=function(t){var e,n,r,i=[];for(e=0,r=this.queryPairs.length;e<r;e++)t===(n=this.queryPairs[e])[0]&&i.push(n[1]);return i},s.prototype.deleteQueryParam=function(t,e){var n,r,i,a,s,u=[];for(n=0,s=this.queryPairs.length;n<s;n++)i=o((r=this.queryPairs[n])[0])===o(t),a=r[1]===e,(1!==arguments.length||i)&&(2!==arguments.length||i&&a)||u.push(r);return this.queryPairs=u,this},s.prototype.addQueryParam=function(t,e,n){return 3===arguments.length&&-1!==n?(n=Math.min(n,this.queryPairs.length),this.queryPairs.splice(n,0,[t,e])):arguments.length>0&&this.queryPairs.push([t,e]),this},s.prototype.hasQueryParam=function(t){var e,n=this.queryPairs.length;for(e=0;e<n;e++)if(this.queryPairs[e][0]==t)return!0;return!1},s.prototype.replaceQueryParam=function(t,e,n){var r,i,a=-1,s=this.queryPairs.length;if(3===arguments.length){for(r=0;r<s;r++)if(o((i=this.queryPairs[r])[0])===o(t)&&decodeURIComponent(i[1])===o(n)){a=r;break}a>=0&&this.deleteQueryParam(t,o(n)).addQueryParam(t,e,a)}else{for(r=0;r<s;r++)if(o((i=this.queryPairs[r])[0])===o(t)){a=r;break}this.deleteQueryParam(t),this.addQueryParam(t,e,a)}return this},["protocol","hasAuthorityPrefix","isColonUri","userInfo","host","port","path","query","anchor"].forEach((function(t){var e="set"+t.charAt(0).toUpperCase()+t.slice(1);s.prototype[e]=function(e){return this[t](e),this}})),s.prototype.scheme=function(){var t="";return this.protocol()?(t+=this.protocol(),this.protocol().indexOf(":")!==this.protocol().length-1&&(t+=":"),t+="//"):this.hasAuthorityPrefix()&&this.host()&&(t+="//"),t},s.prototype.origin=function(){var t=this.scheme();return this.userInfo()&&this.host()&&(t+=this.userInfo(),this.userInfo().indexOf("@")!==this.userInfo().length-1&&(t+="@")),this.host()&&(t+=this.host(),(this.port()||this.path()&&this.path().substr(0,1).match(/[0-9]/))&&(t+=":"+this.port())),t},s.prototype.addTrailingSlash=function(){var t=this.path()||"";return"/"!==t.substr(-1)&&this.path(t+"/"),this},s.prototype.toString=function(){var t,e=this.origin();return this.isColonUri()?this.path()&&(e+=":"+this.path()):this.path()?(t=this.path(),i.ends_with_slashes.test(e)||i.starts_with_slashes.test(t)?(e&&e.replace(i.ends_with_slashes,"/"),t=t.replace(i.starts_with_slashes,"/")):e+="/",e+=t):this.host()&&(this.query().toString()||this.anchor())&&(e+="/"),this.query().toString()&&(e+=this.query().toString()),this.anchor()&&(0!==this.anchor().indexOf("#")&&(e+="#"),e+=this.anchor()),e},s.prototype.clone=function(){return new s(this.toString())},void 0===(r=function(){return s}.call(e,n,e,t))||(t.exports=r)}()},function(){},function(){},function(){},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}function s(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function u(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}n.r(e),n.d(e,"MultiDrag",(function(){return me})),n.d(e,"Sortable",(function(){return Ft})),n.d(e,"Swap",(function(){return se}));var c=l(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),f=l(/Edge/i),d=l(/firefox/i),h=l(/safari/i)&&!l(/chrome/i)&&!l(/android/i),p=l(/iP(ad|od|hone)/i),v=l(/chrome/i)&&l(/android/i),b={capture:!1,passive:!1};function g(t,e,n){t.addEventListener(e,n,!c&&b)}function m(t,e,n){t.removeEventListener(e,n,!c&&b)}function y(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function E(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function x(t,e,n,r){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&y(t,e):y(t,e))||r&&t===n)return t;if(t===n)break}while(t=E(t))}return null}var T,_=/\s+/g;function S(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(_," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(_," ")}}function w(t,e,n){var r=t&&t.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in r||-1!==e.indexOf("webkit")||(e="-webkit-"+e),r[e]=n+("string"==typeof n?"":"px")}}function A(t,e){var n="";if("string"==typeof t)n=t;else do{var r=w(t,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function N(t,e,n){if(t){var r=t.getElementsByTagName(e),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function I(){return document.scrollingElement||document.documentElement}function C(t,e,n,r,i){if(t.getBoundingClientRect||t===window){var o,a,s,u,l,f,d;if(t!==window&&t!==I()?(a=(o=t.getBoundingClientRect()).top,s=o.left,u=o.bottom,l=o.right,f=o.height,d=o.width):(a=0,s=0,u=window.innerHeight,l=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!c))do{if(i&&i.getBoundingClientRect&&("none"!==w(i,"transform")||n&&"static"!==w(i,"position"))){var h=i.getBoundingClientRect();a-=h.top+parseInt(w(i,"border-top-width")),s-=h.left+parseInt(w(i,"border-left-width")),u=a+o.height,l=s+o.width;break}}while(i=i.parentNode);if(r&&t!==window){var p=A(i||t),v=p&&p.a,b=p&&p.d;p&&(u=(a/=b)+(f/=b),l=(s/=v)+(d/=v))}return{top:a,left:s,bottom:u,right:l,width:d,height:f}}}function L(t,e,n){for(var r=D(t,!0),i=C(t)[e];r;){var o=C(r)[n];if(!("top"===n||"left"===n?i>=o:i<=o))return r;if(r===I())break;r=D(r,!1)}return!1}function R(t,e,n){for(var r=0,i=0,o=t.children;i<o.length;){if("none"!==o[i].style.display&&o[i]!==Ft.ghost&&o[i]!==Ft.dragged&&x(o[i],n.draggable,t,!1)){if(r===e)return o[i];r++}i++}return null}function O(t,e){for(var n=t.lastElementChild;n&&(n===Ft.ghost||"none"===w(n,"display")||e&&!y(n,e));)n=n.previousElementSibling;return n||null}function k(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Ft.clone||e&&!y(t,e)||n++;return n}function P(t){var e=0,n=0,r=I();if(t)do{var i=A(t);e+=t.scrollLeft*i.a,n+=t.scrollTop*i.d}while(t!==r&&(t=t.parentNode));return[e,n]}function D(t,e){if(!t||!t.getBoundingClientRect)return I();var n=t,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=w(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return I();if(r||e)return n;r=!0}}}while(n=n.parentNode);return I()}function M(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function j(t,e){return function(){if(!T){var n=arguments,r=this;1===n.length?t.call(r,n[0]):t.apply(r,n),T=setTimeout((function(){T=void 0}),e)}}}function q(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function F(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function U(t,e){w(t,"position","absolute"),w(t,"top",e.top),w(t,"left",e.left),w(t,"width",e.width),w(t,"height",e.height)}function G(t){w(t,"position",""),w(t,"top",""),w(t,"left",""),w(t,"width",""),w(t,"height","")}var B="Sortable"+(new Date).getTime(),V=[],H={initializeByDefault:!0},z={mount:function(t){for(var e in H)H.hasOwnProperty(e)&&!(e in t)&&(t[e]=H[e]);V.push(t)},pluginEvent:function(t,e,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=t+"Global";V.forEach((function(r){e[r.pluginName]&&(e[r.pluginName][i]&&e[r.pluginName][i](a({sortable:e},n)),e.options[r.pluginName]&&e[r.pluginName][t]&&e[r.pluginName][t](a({sortable:e},n)))}))},initializePlugins:function(t,e,n){for(var r in V.forEach((function(r){var i=r.pluginName;if(t.options[i]||r.initializeByDefault){var a=new r(t,e,t.options);a.sortable=t,a.options=t.options,t[i]=a,o(n,a.defaults)}})),t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);void 0!==i&&(t.options[r]=i)}},getEventProperties:function(t,e){var n={};return V.forEach((function(r){"function"==typeof r.eventProperties&&o(n,r.eventProperties.call(e[r.pluginName],t))})),n},modifyOption:function(t,e,n){var r;return V.forEach((function(i){t[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[e]&&(r=i.optionListeners[e].call(t[i.pluginName],n))})),r}};function $(t){var e=t.sortable,n=t.rootEl,r=t.name,i=t.targetEl,o=t.cloneEl,s=t.toEl,u=t.fromEl,l=t.oldIndex,d=t.newIndex,h=t.oldDraggableIndex,p=t.newDraggableIndex,v=t.originalEvent,b=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[B]){var m,y=e.options,E="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||c||f?(m=document.createEvent("Event")).initEvent(r,!0,!0):m=new CustomEvent(r,{bubbles:!0,cancelable:!0}),m.to=s||n,m.from=u||n,m.item=i||n,m.clone=o,m.oldIndex=l,m.newIndex=d,m.oldDraggableIndex=h,m.newDraggableIndex=p,m.originalEvent=v,m.pullMode=b?b.lastPutMode:void 0;var x=a({},g,z.getEventProperties(r,e));for(var T in x)m[T]=x[T];n&&n.dispatchEvent(m),y[E]&&y[E].call(e,m)}}var Y=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=s(n,["evt"]);z.pluginEvent.bind(Ft)(t,e,a({dragEl:Q,parentEl:K,ghostEl:X,rootEl:Z,nextEl:J,lastDownEl:tt,cloneEl:et,cloneHidden:nt,dragStarted:vt,putSortable:ut,activeSortable:Ft.active,originalEvent:r,oldIndex:rt,oldDraggableIndex:ot,newIndex:it,newDraggableIndex:at,hideGhostForTarget:Dt,unhideGhostForTarget:Mt,cloneNowHidden:function(){nt=!0},cloneNowShown:function(){nt=!1},dispatchSortableEvent:function(t){W({sortable:e,name:t,originalEvent:r})}},i))};function W(t){$(a({putSortable:ut,cloneEl:et,targetEl:Q,rootEl:Z,oldIndex:rt,oldDraggableIndex:ot,newIndex:it,newDraggableIndex:at},t))}var Q,K,X,Z,J,tt,et,nt,rt,it,ot,at,st,ut,lt,ct,ft,dt,ht,pt,vt,bt,gt,mt,yt,Et=!1,xt=!1,Tt=[],_t=!1,St=!1,wt=[],At=!1,Nt=[],It="undefined"!=typeof document,Ct=p,Lt=f||c?"cssFloat":"float",Rt=It&&!v&&!p&&"draggable"in document.createElement("div"),Ot=function(){if(It){if(c)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),kt=function(t,e){var n=w(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=R(t,0,e),o=R(t,1,e),a=i&&w(i),s=o&&w(o),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+C(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+C(o).width;return"flex"===n.display?"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal":"grid"===n.display?n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":i&&a.float&&"none"!==a.float?!o||"both"!==s.clear&&s.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=r&&"none"===n[Lt]||o&&"none"===n[Lt]&&u+l>r)?"vertical":"horizontal"},Pt=function(t){function e(t,n){return function(r,i,o,a){if(null==t&&(n||r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(r,i,o,a),n)(r,i,o,a);var s=(n?r:i).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},i=t.group;i&&"object"==r(i)||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},Dt=function(){!Ot&&X&&w(X,"display","none")},Mt=function(){!Ot&&X&&w(X,"display","")};It&&document.addEventListener("click",(function(t){if(xt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),xt=!1,!1}),!0);var jt=function(t){if(Q){var e=(i=(t=t.touches?t.touches[0]:t).clientX,o=t.clientY,Tt.some((function(t){if(!O(t)){var e=C(t),n=t[B].options.emptyInsertThreshold;return n&&i>=e.left-n&&i<=e.right+n&&o>=e.top-n&&o<=e.bottom+n?a=t:void 0}})),a);if(e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[B]._onDragOver(n)}}var i,o,a},qt=function(t){Q&&Q.parentNode[B]._isOutsideThisEl(t.target)};function Ft(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=o({},e),t[B]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return kt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ft.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in z.initializePlugins(this,t,n),n)!(r in e)&&(e[r]=n[r]);for(var i in Pt(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Rt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?g(t,"pointerdown",this._onTapStart):(g(t,"mousedown",this._onTapStart),g(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(g(t,"dragover",this),g(t,"dragenter",this)),Tt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),o(this,function(){var t,e=[];return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==w(t,"display")&&t!==Ft.ghost){e.push({target:t,rect:C(t)});var n=a({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=A(t,!0);r&&(n.top-=r.f,n.left-=r.e)}t.fromRect=n}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var i=!1,o=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,s=C(n),u=n.prevFromRect,l=n.prevToRect,c=t.rect,f=A(n,!0);f&&(s.top-=f.f,s.left-=f.e),n.toRect=s,n.thisAnimationDuration&&M(u,s)&&!M(a,s)&&(c.top-s.top)/(c.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(e=function(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}(c,u,l,r.options)),M(s,a)||(n.prevFromRect=a,n.prevToRect=s,e||(e=r.options.animation),r.animate(n,c,s,e)),e&&(i=!0,o=Math.max(o,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),i?t=setTimeout((function(){"function"==typeof n&&n()}),o):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,r){if(r){w(t,"transition",""),w(t,"transform","");var i=A(this.el),o=(e.left-n.left)/(i&&i.a||1),a=(e.top-n.top)/(i&&i.d||1);t.animatingX=!!o,t.animatingY=!!a,w(t,"transform","translate3d("+o+"px,"+a+"px,0)"),w(t,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),w(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){w(t,"transition",""),w(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),r)}}}}())}function Ut(t,e,n,r,i,o,a,s){var u,l,d=t[B],h=d.options.onMove;return!window.CustomEvent||c||f?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=e,u.from=t,u.dragged=n,u.draggedRect=r,u.related=i||e,u.relatedRect=o||C(e),u.willInsertAfter=s,u.originalEvent=a,t.dispatchEvent(u),h&&(l=h.call(d,u,a)),l}function Gt(t){t.draggable=!1}function Bt(){At=!1}function Vt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function Ht(t){return setTimeout(t,0)}function zt(t){return clearTimeout(t)}Ft.prototype={constructor:Ft,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(bt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,Q):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,r=this.options,i=r.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,l=r.filter;if(function(t){Nt.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&Nt.push(r)}}(n),!Q&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||r.disabled||u.isContentEditable||(s=x(s,r.draggable,n,!1))&&s.animated||tt===s)){if(rt=k(s),ot=k(s,r.draggable),"function"==typeof l){if(l.call(this,t,s,this))return W({sortable:e,rootEl:u,name:"filter",targetEl:s,toEl:n,fromEl:n}),Y("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(l&&(l=l.split(",").some((function(r){if(r=x(u,r.trim(),n,!1))return W({sortable:e,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),Y("filter",e,{evt:t}),!0}))))return void(i&&t.cancelable&&t.preventDefault());r.handle&&!x(u,r.handle,n,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!Q&&n.parentNode===o){var u=C(n);if(Z=o,K=(Q=n).parentNode,J=Q.nextSibling,tt=n,st=a.group,Ft.dragged=Q,ht=(lt={target:Q,clientX:(e||t).clientX,clientY:(e||t).clientY}).clientX-u.left,pt=lt.clientY-u.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Q.style["will-change"]="all",r=function(){Y("delayEnded",i,{evt:t}),Ft.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!d&&i.nativeDraggable&&(Q.draggable=!0),i._triggerDragStart(t,e),W({sortable:i,name:"choose",originalEvent:t}),S(Q,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){N(Q,t.trim(),Gt)})),g(s,"dragover",jt),g(s,"mousemove",jt),g(s,"touchmove",jt),g(s,"mouseup",i._onDrop),g(s,"touchend",i._onDrop),g(s,"touchcancel",i._onDrop),d&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Q.draggable=!0),Y("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(f||c))r();else{if(Ft.eventCanceled)return void this._onDrop();g(s,"mouseup",i._disableDelayedDrag),g(s,"touchend",i._disableDelayedDrag),g(s,"touchcancel",i._disableDelayedDrag),g(s,"mousemove",i._delayedDragTouchMoveHandler),g(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&g(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Q&&Gt(Q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;m(t,"mouseup",this._disableDelayedDrag),m(t,"touchend",this._disableDelayedDrag),m(t,"touchcancel",this._disableDelayedDrag),m(t,"mousemove",this._delayedDragTouchMoveHandler),m(t,"touchmove",this._delayedDragTouchMoveHandler),m(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?g(document,this.options.supportPointer?"pointermove":e?"touchmove":"mousemove",this._onTouchMove):(g(Q,"dragend",this),g(Z,"dragstart",this._onDragStart));try{document.selection?Ht((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(Et=!1,Z&&Q){Y("dragStarted",this,{evt:e}),this.nativeDraggable&&g(document,"dragover",qt);var n=this.options;!t&&S(Q,n.dragClass,!1),S(Q,n.ghostClass,!0),Ft.active=this,t&&this._appendGhost(),W({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(ct){this._lastX=ct.clientX,this._lastY=ct.clientY,Dt();for(var t=document.elementFromPoint(ct.clientX,ct.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ct.clientX,ct.clientY))!==e;)e=t;if(Q.parentNode[B]._isOutsideThisEl(t),e)do{if(e[B]&&e[B]._onDragOver({clientX:ct.clientX,clientY:ct.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break;t=e}while(e=e.parentNode);Mt()}},_onTouchMove:function(t){if(lt){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,i=t.touches?t.touches[0]:t,o=X&&A(X,!0),a=X&&o&&o.a,s=X&&o&&o.d,u=Ct&&yt&&P(yt),l=(i.clientX-lt.clientX+r.x)/(a||1)+(u?u[0]-wt[0]:0)/(a||1),c=(i.clientY-lt.clientY+r.y)/(s||1)+(u?u[1]-wt[1]:0)/(s||1);if(!Ft.active&&!Et){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(X){o?(o.e+=l-(ft||0),o.f+=c-(dt||0)):o={a:1,b:0,c:0,d:1,e:l,f:c};var f="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");w(X,"webkitTransform",f),w(X,"mozTransform",f),w(X,"msTransform",f),w(X,"transform",f),ft=l,dt=c,ct=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!X){var t=this.options.fallbackOnBody?document.body:Z,e=C(Q,!0,Ct,!0,t),n=this.options;if(Ct){for(yt=t;"static"===w(yt,"position")&&"none"===w(yt,"transform")&&yt!==document;)yt=yt.parentNode;yt!==document.body&&yt!==document.documentElement?(yt===document&&(yt=I()),e.top+=yt.scrollTop,e.left+=yt.scrollLeft):yt=I(),wt=P(yt)}S(X=Q.cloneNode(!0),n.ghostClass,!1),S(X,n.fallbackClass,!0),S(X,n.dragClass,!0),w(X,"transition",""),w(X,"transform",""),w(X,"box-sizing","border-box"),w(X,"margin",0),w(X,"top",e.top),w(X,"left",e.left),w(X,"width",e.width),w(X,"height",e.height),w(X,"opacity","0.8"),w(X,"position",Ct?"absolute":"fixed"),w(X,"zIndex","100000"),w(X,"pointerEvents","none"),Ft.ghost=X,t.appendChild(X),w(X,"transform-origin",ht/parseInt(X.style.width)*100+"% "+pt/parseInt(X.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,r=t.dataTransfer,i=n.options;Y("dragStart",this,{evt:t}),Ft.eventCanceled?this._onDrop():(Y("setupClone",this),Ft.eventCanceled||((et=F(Q)).draggable=!1,et.style["will-change"]="",this._hideClone(),S(et,this.options.chosenClass,!1),Ft.clone=et),n.cloneId=Ht((function(){Y("clone",n),Ft.eventCanceled||(n.options.removeCloneOnHide||Z.insertBefore(et,Q),n._hideClone(),W({sortable:n,name:"clone"}))})),!e&&S(Q,i.dragClass,!0),e?(xt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(m(document,"mouseup",n._onDrop),m(document,"touchend",n._onDrop),m(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,Q)),g(document,"drop",n),w(Q,"transform","translateZ(0)")),Et=!0,n._dragStartId=Ht(n._dragStarted.bind(n,e,t)),g(document,"selectstart",n),vt=!0,h&&w(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,r,i,o=this.el,s=t.target,u=this.options,l=u.group,c=Ft.active,f=st===l,d=u.sort,h=ut||c,p=this,v=!1;if(!At){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=x(s,u.draggable,o,!0),M("dragOver"),Ft.eventCanceled)return v;if(Q.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return F(!1);if(xt=!1,c&&!u.disabled&&(f?d||(r=!Z.contains(Q)):ut===this||(this.lastPutMode=st.checkPull(this,c,Q,t))&&l.checkPut(this,c,Q,t))){if(i="vertical"===this._getDirection(t,s),e=C(Q),M("dragOverValid"),Ft.eventCanceled)return v;if(r)return K=Z,j(),this._hideClone(),M("revert"),Ft.eventCanceled||(J?Z.insertBefore(Q,J):Z.appendChild(Q)),F(!0);var b=O(o,u.draggable);if(!b||function(t,e,n){var r=C(O(n.el,n.options.draggable));return e?t.clientX>r.right+10||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+10}(t,i,this)&&!b.animated){if(b===Q)return F(!1);if(b&&o===t.target&&(s=b),s&&(n=C(s)),!1!==Ut(Z,o,Q,e,s,n,t,!!s))return j(),o.appendChild(Q),K=o,U(),F(!0)}else if(s.parentNode===o){n=C(s);var g,m,y,E=Q.parentNode!==o,T=!function(t,e,n){var r=n?t.left:t.top,i=n?e.left:e.top;return r===i||(n?t.right:t.bottom)===(n?e.right:e.bottom)||r+(n?t.width:t.height)/2===i+(n?e.width:e.height)/2}(Q.animated&&Q.toRect||e,s.animated&&s.toRect||n,i),_=i?"top":"left",A=L(s,"top","top")||L(Q,"top","top"),N=A?A.scrollTop:void 0;if(bt!==s&&(m=n[_],_t=!1,St=!T&&u.invertSwap||E),0!==(g=function(t,e,n,r,i,o,a,s){var u=r?t.clientY:t.clientX,l=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a)if(s&&mt<l*i){if(!_t&&(1===gt?u>c+l*o/2:u<f-l*o/2)&&(_t=!0),_t)d=!0;else if(1===gt?u<c+mt:u>f-mt)return-gt}else if(u>c+l*(1-i)/2&&u<f-l*(1-i)/2)return function(t){return k(Q)<k(t)?1:-1}(e);return(d=d||a)&&(u<c+l*o/2||u>f-l*o/2)?u>c+l/2?1:-1:0}(t,s,n,i,T?1:u.swapThreshold,null==u.invertedSwapThreshold?u.swapThreshold:u.invertedSwapThreshold,St,bt===s))){var I=k(Q);do{y=K.children[I-=g]}while(y&&("none"===w(y,"display")||y===X))}if(0===g||y===s)return F(!1);bt=s,gt=g;var R=s.nextElementSibling,P=!1,D=Ut(Z,o,Q,e,s,n,t,P=1===g);if(!1!==D)return 1!==D&&-1!==D||(P=1===D),At=!0,setTimeout(Bt,30),j(),P&&!R?o.appendChild(Q):s.parentNode.insertBefore(Q,P?R:s),A&&q(A,0,N-A.scrollTop),K=Q.parentNode,void 0===m||St||(mt=Math.abs(m-C(s)[_])),U(),F(!0)}if(o.contains(Q))return F(!1)}return!1}function M(u,l){Y(u,p,a({evt:t,isOwner:f,axis:i?"vertical":"horizontal",revert:r,dragRect:e,targetRect:n,canSort:d,fromSortable:h,target:s,completed:F,onMove:function(n,r){return Ut(Z,o,Q,e,n,C(n),t,r)},changed:U},l))}function j(){M("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function F(e){return M("dragOverCompleted",{insertion:e}),e&&(f?c._hideClone():c._showClone(p),p!==h&&(S(Q,ut?ut.options.ghostClass:c.options.ghostClass,!1),S(Q,u.ghostClass,!0)),ut!==p&&p!==Ft.active?ut=p:p===Ft.active&&ut&&(ut=null),h===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){M("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(s===Q&&!Q.animated||s===o&&!s.animated)&&(bt=null),u.dragoverBubble||t.rootEl||s===document||(Q.parentNode[B]._isOutsideThisEl(t.target),!e&&jt(t)),!u.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function U(){it=k(Q),at=k(Q,u.draggable),W({sortable:p,name:"change",toEl:o,newIndex:it,newDraggableIndex:at,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){m(document,"mousemove",this._onTouchMove),m(document,"touchmove",this._onTouchMove),m(document,"pointermove",this._onTouchMove),m(document,"dragover",jt),m(document,"mousemove",jt),m(document,"touchmove",jt)},_offUpEvents:function(){var t=this.el.ownerDocument;m(t,"mouseup",this._onDrop),m(t,"touchend",this._onDrop),m(t,"pointerup",this._onDrop),m(t,"touchcancel",this._onDrop),m(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;it=k(Q),at=k(Q,n.draggable),Y("drop",this,{evt:t}),K=Q&&Q.parentNode,it=k(Q),at=k(Q,n.draggable),Ft.eventCanceled||(Et=!1,St=!1,_t=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),zt(this.cloneId),zt(this._dragStartId),this.nativeDraggable&&(m(document,"drop",this),m(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),h&&w(document.body,"user-select",""),w(Q,"transform",""),t&&(vt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),X&&X.parentNode&&X.parentNode.removeChild(X),(Z===K||ut&&"clone"!==ut.lastPutMode)&&et&&et.parentNode&&et.parentNode.removeChild(et),Q&&(this.nativeDraggable&&m(Q,"dragend",this),Gt(Q),Q.style["will-change"]="",vt&&!Et&&S(Q,ut?ut.options.ghostClass:this.options.ghostClass,!1),S(Q,this.options.chosenClass,!1),W({sortable:this,name:"unchoose",toEl:K,newIndex:null,newDraggableIndex:null,originalEvent:t}),Z!==K?(it>=0&&(W({rootEl:K,name:"add",toEl:K,fromEl:Z,originalEvent:t}),W({sortable:this,name:"remove",toEl:K,originalEvent:t}),W({rootEl:K,name:"sort",toEl:K,fromEl:Z,originalEvent:t}),W({sortable:this,name:"sort",toEl:K,originalEvent:t})),ut&&ut.save()):it!==rt&&it>=0&&(W({sortable:this,name:"update",toEl:K,originalEvent:t}),W({sortable:this,name:"sort",toEl:K,originalEvent:t})),Ft.active&&(null!=it&&-1!==it||(it=rt,at=ot),W({sortable:this,name:"end",toEl:K,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Y("nulling",this),Z=Q=K=X=J=et=tt=nt=lt=ct=vt=it=at=rt=ot=bt=gt=ut=st=Ft.dragged=Ft.ghost=Ft.clone=Ft.active=null,Nt.forEach((function(t){t.checked=!0})),Nt.length=ft=dt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Q&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)x(t=n[r],o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||Vt(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,r){var i=n.children[r];x(i,this.options.draggable,n,!1)&&(e[t]=i)}),this),t.forEach((function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return x(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var r=z.modifyOption(this,t,e);n[t]=void 0!==r?r:e,"group"===t&&Pt(n)},destroy:function(){Y("destroy",this);var t=this.el;t[B]=null,m(t,"mousedown",this._onTapStart),m(t,"touchstart",this._onTapStart),m(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(m(t,"dragover",this),m(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Tt.splice(Tt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!nt){if(Y("hideClone",this),Ft.eventCanceled)return;w(et,"display","none"),this.options.removeCloneOnHide&&et.parentNode&&et.parentNode.removeChild(et),nt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(nt){if(Y("showClone",this),Ft.eventCanceled)return;Z.contains(Q)&&!this.options.group.revertClone?Z.insertBefore(et,Q):J?Z.insertBefore(et,J):Z.appendChild(et),this.options.group.revertClone&&this.animate(Q,et),w(et,"display",""),nt=!1}}else this._hideClone()}},It&&g(document,"touchmove",(function(t){(Ft.active||Et)&&t.cancelable&&t.preventDefault()})),Ft.utils={on:g,off:m,css:w,find:N,is:function(t,e){return!!x(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:j,closest:x,toggleClass:S,clone:F,index:k,nextTick:Ht,cancelNextTick:zt,detectDirection:kt,getChild:R},Ft.get=function(t){return t[B]},Ft.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Ft.utils=a({},Ft.utils,t.utils)),z.mount(t)}))},Ft.create=function(t,e){return new Ft(t,e)},Ft.version="1.10.2";var $t,Yt,Wt,Qt,Kt,Xt,Zt=[],Jt=!1;function te(){Zt.forEach((function(t){clearInterval(t.pid)})),Zt=[]}function ee(){clearInterval(Xt)}var ne,re=j((function(t,e,n,r){if(e.scroll){var i,o=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,u=e.scrollSpeed,l=I(),c=!1;Yt!==n&&(Yt=n,te(),i=e.scrollFn,!0===($t=e.scroll)&&($t=D(n,!0)));var f=0,d=$t;do{var h=d,p=C(h),v=p.top,b=p.bottom,g=p.left,m=p.right,y=p.width,E=p.height,x=void 0,T=void 0,_=h.scrollWidth,S=h.scrollHeight,A=w(h),N=h.scrollLeft,L=h.scrollTop;h===l?(x=y<_&&("auto"===A.overflowX||"scroll"===A.overflowX||"visible"===A.overflowX),T=E<S&&("auto"===A.overflowY||"scroll"===A.overflowY||"visible"===A.overflowY)):(x=y<_&&("auto"===A.overflowX||"scroll"===A.overflowX),T=E<S&&("auto"===A.overflowY||"scroll"===A.overflowY));var R=x&&(Math.abs(m-o)<=s&&N+y<_)-(Math.abs(g-o)<=s&&!!N),O=T&&(Math.abs(b-a)<=s&&L+E<S)-(Math.abs(v-a)<=s&&!!L);if(!Zt[f])for(var k=0;k<=f;k++)Zt[k]||(Zt[k]={});Zt[f].vx==R&&Zt[f].vy==O&&Zt[f].el===h||(Zt[f].el=h,Zt[f].vx=R,Zt[f].vy=O,clearInterval(Zt[f].pid),0==R&&0==O||(c=!0,Zt[f].pid=setInterval(function(){r&&0===this.layer&&Ft.active._onTouchMove(Kt);var e=Zt[this.layer].vy?Zt[this.layer].vy*u:0,n=Zt[this.layer].vx?Zt[this.layer].vx*u:0;"function"==typeof i&&"continue"!==i.call(Ft.dragged.parentNode[B],n,e,t,Kt,Zt[this.layer].el)||q(Zt[this.layer].el,n,e)}.bind({layer:f}),24))),f++}while(e.bubbleScroll&&d!==l&&(d=D(d,!1)));Jt=c}}),30),ie=function(t){var e=t.originalEvent,n=t.putSortable,r=t.dragEl,i=t.dispatchSortableEvent,o=t.unhideGhostForTarget;if(e){var a=n||t.activeSortable;(0,t.hideGhostForTarget)();var s=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(s.clientX,s.clientY);o(),a&&!a.el.contains(u)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function oe(){}function ae(){}function se(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){ne=t.dragEl},dragOverValid:function(t){var e=t.completed,n=t.target,r=t.changed,i=t.cancel;if(t.activeSortable.options.swap){var o=this.options;if(n&&n!==this.sortable.el){var a=ne;!1!==(0,t.onMove)(n)?(S(n,o.swapClass,!0),ne=n):ne=null,a&&a!==ne&&S(a,o.swapClass,!1)}r(),e(!0),i()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,r=t.dragEl,i=n||this.sortable,o=this.options;ne&&S(ne,o.swapClass,!1),ne&&(o.swap||n&&n.options.swap)&&r!==ne&&(i.captureAnimationState(),i!==e&&e.captureAnimationState(),function(t,e){var n,r,i=t.parentNode,o=e.parentNode;i&&o&&!i.isEqualNode(e)&&!o.isEqualNode(t)&&(n=k(t),r=k(e),i.isEqualNode(o)&&n<r&&r++,i.insertBefore(e,i.children[n]),o.insertBefore(t,o.children[r]))}(r,ne),i.animateAll(),i!==e&&e.animateAll())},nulling:function(){ne=null}},o(t,{pluginName:"swap",eventProperties:function(){return{swapItem:ne}}})}oe.prototype={startIndex:null,dragStart:function(t){this.startIndex=t.oldDraggableIndex},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=R(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:ie},o(oe,{pluginName:"revertOnSpill"}),ae.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:ie},o(ae,{pluginName:"removeOnSpill"});var ue,le,ce,fe,de,he=[],pe=[],ve=!1,be=!1,ge=!1;function me(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?g(document,"pointerup",this._deselectMultiDrag):(g(document,"mouseup",this._deselectMultiDrag),g(document,"touchend",this._deselectMultiDrag)),g(document,"keydown",this._checkKeyDown),g(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var r="";he.length&&le===t?he.forEach((function(t,e){r+=(e?", ":"")+t.textContent})):r=n.textContent,e.setData("Text",r)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){ce=t.dragEl},delayEnded:function(){this.isMultiDrag=~he.indexOf(ce)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var r=0;r<he.length;r++)pe.push(F(he[r])),pe[r].sortableIndex=he[r].sortableIndex,pe[r].draggable=!1,pe[r].style["will-change"]="",S(pe[r],this.options.selectedClass,!1),he[r]===ce&&S(pe[r],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.dispatchSortableEvent,n=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||he.length&&le===t.sortable&&(ye(!0,t.rootEl),e("clone"),n()))},showClone:function(t){var e=t.cloneNowShown,n=t.cancel;this.isMultiDrag&&(ye(!1,t.rootEl),pe.forEach((function(t){w(t,"display","")})),e(),de=!1,n())},hideClone:function(t){var e=this,n=t.cloneNowHidden,r=t.cancel;this.isMultiDrag&&(pe.forEach((function(t){w(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),n(),de=!0,r())},dragStartGlobal:function(){!this.isMultiDrag&&le&&le.multiDrag._deselectMultiDrag(),he.forEach((function(t){t.sortableIndex=k(t)})),he=he.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),ge=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){he.forEach((function(t){t!==ce&&w(t,"position","absolute")}));var r=C(ce,!1,!0,!0);he.forEach((function(t){t!==ce&&U(t,r)})),be=!0,ve=!0}n.animateAll((function(){be=!1,ve=!1,e.options.animation&&he.forEach((function(t){G(t)})),e.options.sort&&Ee()}))}},dragOver:function(t){var e=t.completed,n=t.cancel;be&&~he.indexOf(t.target)&&(e(!1),n())},revert:function(t){var e=t.fromSortable,n=t.rootEl,r=t.sortable,i=t.dragRect;he.length>1&&(he.forEach((function(t){r.addAnimationState({target:t,rect:be?C(t):i}),G(t),t.fromRect=i,e.removeAnimationState(t)})),be=!1,function(t,e){he.forEach((function(n,r){var i=e.children[n.sortableIndex+(t?Number(r):0)];i?e.insertBefore(n,i):e.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,r=t.activeSortable,i=t.parentEl,o=t.putSortable,a=this.options;if(t.insertion){if(n&&r._hideClone(),ve=!1,a.animation&&he.length>1&&(be||!n&&!r.options.sort&&!o)){var s=C(ce,!1,!0,!0);he.forEach((function(t){t!==ce&&(U(t,s),i.appendChild(t))})),be=!0}if(!n)if(be||Ee(),he.length>1){var u=de;r._showClone(e),r.options.animation&&!de&&u&&pe.forEach((function(t){r.addAnimationState({target:t,rect:fe}),t.fromRect=fe,t.thisAnimationDuration=null}))}else r._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,r=t.activeSortable;if(he.forEach((function(t){t.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){fe=o({},e);var i=A(ce,!0);fe.top-=i.f,fe.left-=i.e}},dragOverAnimationComplete:function(){be&&(be=!1,Ee())},drop:function(t){var e=t.originalEvent,n=t.rootEl,r=t.parentEl,i=t.sortable,o=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable,u=s||this.sortable;if(e){var l=this.options,c=r.children;if(!ge)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),S(ce,l.selectedClass,!~he.indexOf(ce)),~he.indexOf(ce))he.splice(he.indexOf(ce),1),ue=null,$({sortable:i,rootEl:n,name:"deselect",targetEl:ce,originalEvt:e});else{if(he.push(ce),$({sortable:i,rootEl:n,name:"select",targetEl:ce,originalEvt:e}),e.shiftKey&&ue&&i.el.contains(ue)){var f,d,h=k(ue),p=k(ce);if(~h&&~p&&h!==p)for(p>h?(d=h,f=p):(d=p,f=h+1);d<f;d++)~he.indexOf(c[d])||(S(c[d],l.selectedClass,!0),he.push(c[d]),$({sortable:i,rootEl:n,name:"select",targetEl:c[d],originalEvt:e}))}else ue=ce;le=u}if(ge&&this.isMultiDrag){if((r[B].options.sort||r!==n)&&he.length>1){var v=C(ce),b=k(ce,":not(."+this.options.selectedClass+")");if(!ve&&l.animation&&(ce.thisAnimationDuration=null),u.captureAnimationState(),!ve&&(l.animation&&(ce.fromRect=v,he.forEach((function(t){if(t.thisAnimationDuration=null,t!==ce){var e=be?C(t):v;t.fromRect=e,u.addAnimationState({target:t,rect:e})}}))),Ee(),he.forEach((function(t){c[b]?r.insertBefore(t,c[b]):r.appendChild(t),b++})),a===k(ce))){var g=!1;he.forEach((function(t){t.sortableIndex===k(t)||(g=!0)})),g&&o("update")}he.forEach((function(t){G(t)})),u.animateAll()}le=u}(n===r||s&&"clone"!==s.lastPutMode)&&pe.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=ge=!1,pe.length=0},destroyGlobal:function(){this._deselectMultiDrag(),m(document,"pointerup",this._deselectMultiDrag),m(document,"mouseup",this._deselectMultiDrag),m(document,"touchend",this._deselectMultiDrag),m(document,"keydown",this._checkKeyDown),m(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==ge&&ge||le!==this.sortable||t&&x(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;he.length;){var e=he[0];S(e,this.options.selectedClass,!1),he.shift(),$({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[B];e&&e.options.multiDrag&&!~he.indexOf(t)&&(le&&le!==e&&(le.multiDrag._deselectMultiDrag(),le=e),S(t,e.options.selectedClass,!0),he.push(t))},deselect:function(t){var e=t.parentNode[B],n=he.indexOf(t);e&&e.options.multiDrag&&~n&&(S(t,e.options.selectedClass,!1),he.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return he.forEach((function(r){var i;e.push({multiDragElement:r,index:r.sortableIndex}),i=be&&r!==ce?-1:be?k(r,":not(."+t.options.selectedClass+")"):k(r),n.push({multiDragElement:r,index:i})})),{items:u(he),clones:[].concat(pe),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function ye(t,e){pe.forEach((function(n,r){var i=e.children[n.sortableIndex+(t?Number(r):0)];i?e.insertBefore(n,i):e.appendChild(n)}))}function Ee(){he.forEach((function(t){t!==ce&&t.parentNode&&t.parentNode.removeChild(t)}))}Ft.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):g(document,this.options.supportPointer?"pointermove":e.touches?"touchmove":"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?m(document,"dragover",this._handleAutoScroll):(m(document,"pointermove",this._handleFallbackAutoScroll),m(document,"touchmove",this._handleFallbackAutoScroll),m(document,"mousemove",this._handleFallbackAutoScroll)),ee(),te(),clearTimeout(T),T=void 0},nulling:function(){Kt=Yt=$t=Jt=Xt=Wt=Qt=null,Zt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(r,i);if(Kt=t,e||f||c||h){re(t,this.options,o,e);var a=D(o,!0);!Jt||Xt&&r===Wt&&i===Qt||(Xt&&ee(),Xt=setInterval((function(){var o=D(document.elementFromPoint(r,i),!0);o!==a&&(a=o,te()),re(t,n.options,o,e)}),10),Wt=r,Qt=i)}else{if(!this.options.bubbleScroll||D(o,!0)===I())return void te();re(t,this.options,D(o,!1),!1)}}},o(t,{pluginName:"scroll",initializeByDefault:!0})}),Ft.mount(ae,oe),e.default=Ft},function(){},function(){},function(){},function(t,e,n){n.r(e),n.d(e,"Yasgui",(function(){return ke})),n.d(e,"getRandomId",(function(){return Pe}));var r={};n.r(r),n.d(r,"appendArgsToUrl",(function(){return qt})),n.d(r,"createShareLink",(function(){return Ft})),n.d(r,"createShareConfig",(function(){return Ut})),n.d(r,"getConfigFromUrl",(function(){return Gt})),n.d(r,"queryCatalogConfigToTabConfig",(function(){return Bt}));var i=n(1),o=n.n(i),a=n(2),s=n.n(a),u=n(12),l=n.n(u),c=n(8),f=n.n(c),d=n(11),h=n.n(d),p=n(3),v=n.n(p),b=n(47),g=n(174),m=n(61),y=n(16),E=n(26),x=n(85),T=Math.max,_=function(t,e,n){var r=Object(t);if(!Object(y.a)(t)){var i=Object(m.a)(e,3);t=Object(E.a)(t),e=function(t){return i(r[t],t,r)}}var o=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Object(x.a)(n);return i<0&&(i=T(r+i,0)),function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}(t,Object(m.a)(e,3),i)}(t,e,n);return o>-1?r[i?t[o]:o]:void 0},S=n(78),w=function(t,e){return Object(S.a)(t,e)},A=n(55),N=n(51),I=n(0),C=function(){function t(e){o()(this,t),this.yasgui=e,this.storageId=this.yasgui.getStorageId(this.yasgui.config.persistenceLabelConfig),this.storage=new I.d("triply"),this.fromStorage(),this.registerListeners()}return s()(t,[{key:"setActive",value:function(t){this.persistedJson.active=t,this.toStorage()}},{key:"getActiveId",value:function(){return this.persistedJson.active}},{key:"addToTabList",value:function(t,e){void 0!==e&&this.persistedJson.tabs.length>e?this.persistedJson.tabs.splice(e,0,t):this.persistedJson.tabs.push(t),this.toStorage()}},{key:"setTabOrder",value:function(t){this.persistedJson.tabs=t,this.toStorage()}},{key:"getEndpointHistory",value:function(){return this.persistedJson.endpointHistory}},{key:"retrieveLastClosedTab",value:function(){var t=this.persistedJson.lastClosedTab;return void 0===t||(this.persistedJson.lastClosedTab=void 0),t}},{key:"hasLastClosedTab",value:function(){return!!this.persistedJson.lastClosedTab}},{key:"deleteTab",value:function(t){var e=this.persistedJson.tabs.indexOf(t);e>-1&&this.persistedJson.tabs.splice(e,1),this.tabIsActive(t)&&(this.persistedJson.active=void 0),this.persistedJson.lastClosedTab={index:e,tab:this.persistedJson.tabConfig[t]},delete this.persistedJson.tabConfig[t],this.toStorage()}},{key:"registerListeners",value:function(){var t=this;this.yasgui.on("tabChange",(function(e,n){t.persistedJson.tabConfig[n.getId()]=n.getPersistedJson(),t.toStorage()})),this.yasgui.on("endpointHistoryChange",(function(e,n){t.persistedJson.endpointHistory=n,t.toStorage()}))}},{key:"toStorage",value:function(){var t=this.yasgui.getHandleLocalStorageQuotaFull?this.yasgui.getHandleLocalStorageQuotaFull():this.handleLocalStorageQuotaFull;this.storage.set(this.storageId,this.persistedJson,this.yasgui.config.persistencyExpire,t)}},{key:"fromStorage",value:function(){return this.persistedJson=this.storage.get(this.storageId)||{endpointHistory:[],tabs:[],active:void 0,tabConfig:{},lastClosedTab:void 0},this.persistedJson.endpointHistory||(this.persistedJson.endpointHistory=[]),this.persistedJson}},{key:"handleLocalStorageQuotaFull",value:function(){console.warn("Localstorage quota exceeded. Clearing all YASGUI configurations"),t.clear()}},{key:"getTabs",value:function(){return this.persistedJson.tabs}},{key:"getTab",value:function(t){return this.persistedJson.tabConfig[t]}},{key:"setTab",value:function(t,e){this.persistedJson.tabs.push(t),this.persistedJson.tabConfig[t]=e,this.persistedJson.active=t}},{key:"tabIsActive",value:function(t){return t===this.persistedJson.active}},{key:"currentId",value:function(){return this.persistedJson.active}},{key:"getTabConfig",value:function(){return this.persistedJson.tabConfig}}],[{key:"clear",value:function(){new I.d("triply").removeNamespace()}}]),t}(),L=n(10),R=n.n(L),O=n(17),k=n.n(O),P=n(63),D=n.n(P),M=(n(180),n(82)),j=n(27),q=n(104),F=function(t){return function(e){var n=Object(j.a)(e);return"[object Map]"==n?Object(q.a)(e):"[object Set]"==n?function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}(e):function(t,e){return Object(M.a)(e,(function(e){return[e,t[e]]}))}(e,t(e))}}(E.a),U=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r};function G(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return B(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var V=[{key:"JSON",value:"application/sparql-results+json"},{key:"XML",value:"application/sparql-results+xml"},{key:"CSV",value:"text/csv"},{key:"TSV",value:"text/tab-separated-values"}],H=[{key:"Turtle",value:"text/turtle"},{key:"JSON",value:"application/rdf+json"},{key:"RDF/XML",value:"application/rdf+xml"},{key:"TriG",value:"application/trig"},{key:"N-Triples",value:"application/n-triples"},{key:"N-Quads",value:"application/n-quads"},{key:"CSV",value:"text/csv"},{key:"TSV",value:"text/tab-separated-values"}],z=function(){function t(e,n,r){o()(this,t),this.updateLabelFunctions=[],this.tab=e,this.translationService=this.tab.yasgui.translationService,this.rootEl=n,this.isOpen=!1,this.init(r)}return s()(t,[{key:"update",value:function(){this.updateLabelFunctions.forEach((function(t){return t()}))}},{key:"init",value:function(t){var e=this;this.settingsButton=document.createElement("button"),this.toggleAriaSettings(),this.settingsButton.appendChild(this.getSettingButtonElement()),this.updateLabelFunctions.push(this.updateSettingButtonLabel.bind(this)),Object(I.g)(this.settingsButton,"tabContextButton"),t.appendChild(this.settingsButton),this.settingsButton.onclick=function(t){e.open(t)},this.menuElement=document.createElement("div"),Object(I.g)(this.menuElement,"tabMenu"),t.appendChild(this.menuElement),this.menuElement.onclick=function(t){return t.stopImmediatePropagation(),!1},this.drawBody()}},{key:"getSettingButtonElement",value:function(){return Object(I.i)('<svg width="100.06" height="100.05" data-name="Layer 1" version="1.1" viewBox="0 0 100.06 100.05" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n <metadata>\n <rdf:RDF>\n <cc:Work rdf:about="">\n <dc:format>image/svg+xml</dc:format>\n <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>\n <dc:title>'.concat(this.translationService.translate("yasgui.control_bar.settings.btn.label"),"</dc:title>\n </cc:Work>\n </rdf:RDF>\n </metadata>\n <title>").concat(this.translationService.translate("yasgui.control_bar.settings.btn.label"),'</title>\n <path d="m95.868 58.018-3-3.24a42.5 42.5 0 0 0 0-9.43l3-3.22c1.79-1.91 5-4.44 4-6.85l-4.11-10c-1-2.41-5.08-1.91-7.69-2l-4.43-0.16a43.24 43.24 0 0 0-6.64-6.66l-0.14-4.43c-0.08-2.6 0.43-6.69-2-7.69l-10-4.15c-2.4-1-4.95 2.25-6.85 4l-3.23 3a42.49 42.49 0 0 0-9.44 0l-3.21-3c-1.9-1.78-4.44-5-6.85-4l-10 4.11c-2.41 1-1.9 5.09-2 7.69l-0.16 4.42a43.24 43.24 0 0 0-6.67 6.65l-4.42 0.14c-2.6 0.08-6.69-0.43-7.69 2l-4.15 10c-1 2.4 2.25 4.94 4 6.84l3 3.23a42.49 42.49 0 0 0 0 9.44l-3 3.22c-1.78 1.9-5 4.43-4 6.84l4.11 10c1 2.41 5.09 1.91 7.7 2l4.41 0.15a43.24 43.24 0 0 0 6.66 6.68l0.13 4.41c0.08 2.6-0.43 6.7 2 7.7l10 4.15c2.4 1 4.94-2.25 6.84-4l3.24-3a42.5 42.5 0 0 0 9.42 0l3.22 3c1.91 1.79 4.43 5 6.84 4l10-4.11c2.41-1 1.91-5.08 2-7.7l0.15-4.42a43.24 43.24 0 0 0 6.68-6.65l4.42-0.14c2.6-0.08 6.7 0.43 7.7-2l4.15-10c1.04-2.36-2.22-4.9-3.99-6.82zm-45.74 15.7c-12.66 0-22.91-10.61-22.91-23.7s10.25-23.7 22.91-23.7 22.91 10.61 22.91 23.7-10.25 23.7-22.91 23.7z"/>\n </svg>'))}},{key:"updateBody",value:function(){var t=this.tab.getRequestConfig();"function"!=typeof t.method&&this.setRequestMethod(t.method),this.setAcceptHeader_select(t.acceptHeaderSelect),this.setAcceptHeader_graph(t.acceptHeaderGraph),"function"!=typeof t.args&&this.setArguments(k()(t.args)||[]),"function"!=typeof t.headers&&this.setHeaders(F(t.headers).map((function(t){var e=D()(t,2);return{name:e[0],value:e[1]}}))),"function"!=typeof t.defaultGraphs&&this.setDefaultGraphs(k()(t.defaultGraphs)||[]),"function"!=typeof t.namedGraphs&&this.setNamedGraphs(k()(t.namedGraphs)||[])}},{key:"open",value:function(t){var e=this;this.isOpen||(this.updateBody(),this.isOpen=!0,Object(I.g)(this.menuElement,"open"),this.toggleAriaSettings(),document.addEventListener("click",(function t(n){for(var r=n.target;window.MSInputMethodContext&&document.documentMode&&r.parentElement;){if(-1!==r.className.indexOf("tabMenu"))return!1;r=r.parentElement}return e.close(n),document.removeEventListener("click",t,!0),!1}),{once:!0}),t.stopImmediatePropagation())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,Object(I.l)(this.menuElement,"open"),this.toggleAriaSettings())}},{key:"toggleAriaSettings",value:function(){this.settingsButton.setAttribute("aria-label",this.translationService.translate(this.isOpen?"yasgui.control_bar.settings.btn.close_settings.aria_label":"yasgui.control_bar.settings.btn.open_settings.aria_label")),this.settingsButton.setAttribute("aria-expanded","".concat(this.isOpen))}},{key:"drawRequestMethodSelector",value:function(){var t=this,e=document.createElement("div");Object(I.g)(e,"requestConfigWrapper");var n=W(this.translationService.translate("yasgui.control_bar.request_method.label"),e);this.updateLabelFunctions.push((function(){return n.innerText=t.translationService.translate("yasgui.control_bar.request_method.label")}));var r=document.createElement("button");Object(I.g)(r,"selectorButton","selectorGetButton"),r.innerText=this.translationService.translate("yasgui.control_bar.get.btn.label"),this.updateLabelFunctions.push((function(){return r.innerText=t.translationService.translate("yasgui.control_bar.get.btn.label")}));var i=document.createElement("button");Object(I.g)(i,"selectorButton","selectorPostButton"),i.innerText=this.translationService.translate("yasgui.control_bar.post.btn.label"),this.updateLabelFunctions.push((function(){return i.innerText=t.translationService.translate("yasgui.control_bar.get.btn.label")})),Object(I.g)("GET"===this.tab.getRequestConfig().method?r:i,"selected"),this.setRequestMethod=function(t){"GET"===t?(Object(I.g)(r,"selected"),Object(I.l)(i,"selected")):"POST"===t&&(Object(I.g)(i,"selected"),Object(I.l)(r,"selected"))},r.onclick=function(){t.tab.setRequestConfig({method:"GET"}),t.setRequestMethod("GET")},i.onclick=function(){t.tab.setRequestConfig({method:"POST"}),t.setRequestMethod("POST")},e.appendChild(r),e.appendChild(i),this.menuElement.appendChild(e)}},{key:"drawAcceptSelector",value:function(){var t=this,e=document.createElement("div");Object(I.g)(e,"requestConfigWrapper","acceptWrapper");var n=W(this.translationService.translate("yasgui.control_bar.accept_headers.label"),e);this.updateLabelFunctions.push((function(){return n.innerText=t.translationService.translate("yasgui.control_bar.accept_headers.label")}));var r=function(e,n){t.updateLabelFunctions.push((function(){return e.innerText=t.translationService.translate(n)}))};this.setAcceptHeader_select=$(V,(function(e){t.tab.setRequestConfig({acceptHeaderSelect:e.target.value})}),"yasgui.control_bar.ask_select.label",e,this.translationService,r),this.setAcceptHeader_graph=$(H,(function(e){t.tab.setRequestConfig({acceptHeaderGraph:e.target.value})}),"yasgui.control_bar.construct_describe.label",e,this.translationService,r),this.menuElement.appendChild(e)}},{key:"drawArgumentsInput",value:function(){var t=this,e=function(){var e=[];n.querySelectorAll(".textRow").forEach((function(t){var n=D()(t.children,2),r=n[0],i=n[1];r instanceof HTMLInputElement&&i instanceof HTMLInputElement&&r.value.length&&e.push({name:r.value,value:i.value})})),t.tab.setRequestConfig({args:e})},n=document.createElement("div");Object(I.g)(n,"requestConfigWrapper","textSetting");var r=W(this.translationService.translate("yasgui.control_bar.arguments.label"),n);this.updateLabelFunctions.push((function(){return r.innerText=t.translationService.translate("yasgui.control_bar.arguments.label")})),this.menuElement.appendChild(n),this.setArguments=function(r){n.querySelectorAll(".textRow").forEach((function(t){n.removeChild(t)}));for(var i=function(i){K((function(){r.splice(i,1),t.tab.setRequestConfig({args:r}),t.setArguments(r)}),tt(n,i,r,e))},o=0;o<r.length;o++)i(o);J(n,r,e)}}},{key:"drawHeaderInput",value:function(){var t=this,e=function(){var e={};n.querySelectorAll(".textRow").forEach((function(t){var n=D()(t.children,2),r=n[0],i=n[1];r instanceof HTMLInputElement&&i instanceof HTMLInputElement&&r.value.length&&(e[r.value]=i.value)})),t.tab.setRequestConfig({headers:e})},n=document.createElement("div");Object(I.g)(n,"requestConfigWrapper","textSetting");var r=W(this.translationService.translate("yasgui.control_bar.header_arguments.label"));this.updateLabelFunctions.push((function(){return r.innerText=t.translationService.translate("yasgui.control_bar.header_arguments.label")})),n.appendChild(r),this.menuElement.appendChild(n),this.setHeaders=function(r){n.querySelectorAll(".textRow").forEach((function(t){n.removeChild(t)}));for(var i=function(i){K((function(){r.splice(i,1),t.tab.setRequestConfig({headers:U(r.map((function(t){return[t.name,t.value]})))}),t.setHeaders(r)}),tt(n,i,r,e))},o=0;o<r.length;o++)i(o);J(n,r,e)}}},{key:"drawDefaultGraphInput",value:function(){var t=this,e=document.createElement("div");Object(I.g)(e,"requestConfigWrapper","textSetting");var n=W(this.translationService.translate("yasgui.control_bar.default_graphs.label"));this.updateLabelFunctions.push((function(){return n.innerText=t.translationService.translate("yasgui.control_bar.default_graphs.label")})),e.appendChild(n),this.menuElement.appendChild(e);var r=function(){var n=[];e.querySelectorAll(".graphInput").forEach((function(t){var e=D()(t.children,1)[0];e instanceof HTMLInputElement&&e.value.length&&n.push(e.value)})),t.tab.setRequestConfig({defaultGraphs:n})};this.setDefaultGraphs=function(t){e.querySelectorAll(".graphInput").forEach((function(t){e.removeChild(t)}));for(var n=function(n){K((function(){return t[n]=void 0}),Z(e,n,t,r))},i=0;i<t.length;i++)n(i);X(e,t,r)}}},{key:"drawNamedGraphInput",value:function(){var t=this,e=document.createElement("div");Object(I.g)(e,"requestConfigWrapper","textSetting");var n=W(this.translationService.translate("yasgui.control_bar.named_graph.label"));this.updateLabelFunctions.push((function(){return n.innerText=t.translationService.translate("yasgui.control_bar.named_graph.label")})),e.appendChild(n),this.menuElement.appendChild(e);var r=function(){var n=[];e.querySelectorAll(".graphInput").forEach((function(t){var e=D()(t.children,1)[0];e instanceof HTMLInputElement&&e.value.length&&n.push(e.value)})),t.tab.setRequestConfig({namedGraphs:n})};this.setNamedGraphs=function(t){e.querySelectorAll(".graphInput").forEach((function(t){e.removeChild(t)}));for(var n=function(n){K((function(){return t[n]=void 0}),Z(e,n,t,r))},i=0;i<t.length;i++)n(i);X(e,t,r)}}},{key:"drawBody",value:function(){this.drawRequestMethodSelector(),this.drawAcceptSelector(),this.drawArgumentsInput(),this.drawHeaderInput(),this.drawDefaultGraphInput(),this.drawNamedGraphInput()}},{key:"destroy",value:function(){for(this.settingsButton.onclick=null,this.menuElement.onclick=null;this.menuElement.firstChild;)this.menuElement.firstChild.remove();this.menuElement.remove(),this.updateLabelFunctions=[]}},{key:"updateSettingButtonLabel",value:function(){for(;this.settingsButton.firstChild;)this.settingsButton.removeChild(this.settingsButton.firstChild);this.settingsButton.appendChild(this.getSettingButtonElement()),this.toggleAriaSettings()}}]),t}();function $(t,e,n,r,i,o){var a=document.createElement("div");Object(I.g)(a,"selector");var s=W(i.translate(n),a);o(s,n),Object(I.g)(s,"selectorLabel");var u=document.createElement("select");u.onchange=e,a.appendChild(u);var l=t.map((function(t){return function(t,e){var n=document.createElement("option");return n.textContent=t.key,n.value=t.value,e.appendChild(n),n}(t,u)}));return r.appendChild(a),function(t){if("string"==typeof t){var e,n=G(l);try{for(n.s();!(e=n.n()).done;){var r=e.value;r.selected=r.value===t}}catch(t){n.e(t)}finally{n.f()}}}}function Y(t){var e,n=[],r=G(t.getElementsByTagName("input"));try{for(r.s();!(e=r.n()).done;)n.push(e.value.value)}catch(t){r.e(t)}finally{r.f()}return n}function W(t,e){var n=document.createElement("label");return Object(I.g)(n,"label"),n.innerText=t,e&&e.appendChild(n),n}function Q(t,e){var n=document.createElement("input");return n.type="text",n.value=t||"",e&&e.appendChild(n),n}function K(t,e){var n=document.createElement("button");return n.textContent="X",Object(I.g)(n,"removeButton"),e&&e.appendChild(n),n.onclick=function(e){var n;t(),null===(n=e.target.parentElement)||void 0===n||n.remove()},n}function X(t,e,n){var r=t.querySelector(".graphInput:last-of-type");if(!r||""!==Y(r)[0]||0!==r.getElementsByTagName("button").length){var i=e.length;Z(t,i,e,n),r&&0===r.getElementsByTagName("button").length&&K((function(){return e[i-1]=void 0}),r)}}function Z(t,e,n,r){var i=document.createElement("div");return Object(I.g)(i,"graphInput"),Q(n[e]||"",i).onkeyup=function(i){var o=i.target;n[e]?n[e]=o.value:n.push(o.value),X(t,n,r)},i.onblur=r,t.appendChild(i),i}function J(t,e,n){var r=t.querySelector(".textRow:last-of-type");if(!r||0!==Y(r).filter((function(t){return t})).length){var i=e.length;tt(t,i,e,n),r&&0===r.getElementsByTagName("button").length&&K((function(){return e[i-1]=void 0}),r)}}function tt(t,e,n,r){var i=document.createElement("div");Object(I.g)(i,"textRow");var o=n[e],a=Q(o?o.name:"",i),s=Q(o?o.value:"",i);return a.onkeyup=function(i){var o=n[e];o?o.name=i.target.value:n.push({name:i.target.value,value:""}),J(t,n,r)},a.onblur=r,s.onkeyup=function(i){var o=n[e];o?o.value=i.target.value:n.push({value:i.target.value,name:""}),J(t,n,r)},s.onblur=r,t.appendChild(i),i}var et=n(19),nt=n(84),rt=n(86),it=Object(rt.a)((function(t,e,n,r){Object(nt.a)(t,e,n,r)})),ot=n(83),at=n(77),st=n(42),ut=Object.prototype.toString,lt=function(t,e){return function(n,r){return function(t,e,n,r){return Object(at.a)(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=ut.call(e)),t[e]=n}),Object(ot.a)(st.a)),ct=n(179),ft=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ht=n(30),pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",vt="["+pt+"]",bt="\\d+",gt="[a-z\\xdf-\\xf6\\xf8-\\xff]",mt="[^\\ud800-\\udfff"+pt+bt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",yt="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",xt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Tt="(?:"+gt+"|"+mt+")",_t="(?:"+xt+"|"+mt+")",St="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",wt="[\\ufe0e\\ufe0f]?"+St+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",yt,Et].join("|")+")[\\ufe0e\\ufe0f]?"+St+")*",At="(?:"+["[\\u2700-\\u27bf]",yt,Et].join("|")+")"+wt,Nt=RegExp([xt+"?"+gt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[vt,xt,"$"].join("|")+")",_t+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[vt,xt+Tt,"$"].join("|")+")",xt+"?"+Tt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",xt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bt,At].join("|"),"g"),It=n(57),Ct=Object(It.a)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Lt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Rt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),Ot=n(45),kt=n.n(Ot);function Pt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Dt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Dt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Mt=n(181),jt=function(t){var e=!1;t||(t=window.location.href,e=!0);var n=new Mt(t);return n.anchor().length>0&&(n.query(n.anchor()),e&&(window.location.hash="")),n};function qt(t,e){var n=new Mt(t);for(var r in e){var i=e[r];if(Array.isArray(i)){var o,a=Pt(i);try{for(a.s();!(o=a.n()).done;)n.addQueryParam(r,o.value)}catch(t){a.e(t)}finally{a.f()}}else n.addQueryParam(r,i)}return n.toString()}function Ft(t,e){var n,r=new Mt(t),i=new Mt,o=Ut(e);for(n in o)o.hasOwnProperty(n)&&("namedGraphs"===n?o.namedGraphs.forEach((function(t){return i.addQueryParam("namedGraph",t)})):"defaultGraphs"===n?o.defaultGraphs.forEach((function(t){return i.addQueryParam("defaultGraph",t)})):"args"===n?Object(I.j)(o.args,e.yasgui).forEach((function(t){return i.addQueryParam(t.name,t.value)})):"object"===kt()(o[n])?o[n]&&i.addQueryParam(n,JSON.stringify(o[n])):o[n]&&i.addQueryParam(n,o[n]));return jt(t).queryPairs.forEach((function(t){i.hasQueryParam(t[0])||i.addQueryParam(t[0],t[1])})),r.anchor(i.query().substr(1)),r.toString()}function Ut(t){var e=t.yasgui,n=t.getRequestConfig(),r=t.getPersistedJson().yasr.settings;return{query:t.getQuery(),endpoint:t.getEndpoint(),requestMethod:Object(I.j)(n.method,e),tabTitle:t.getName(),headers:Object(I.j)(n.headers,e),contentTypeConstruct:Object(I.j)(n.acceptHeaderGraph,e),contentTypeSelect:Object(I.j)(n.acceptHeaderSelect,e),args:Object(I.j)(n.args,e),namedGraphs:Object(I.j)(n.namedGraphs,e),defaultGraphs:Object(I.j)(n.defaultGraphs,e),outputFormat:r.selectedPlugin,outputSettings:r.pluginsConfig&&r.selectedPlugin?r.pluginsConfig[r.selectedPlugin]:void 0}}function Gt(t,e){var n,r=t,i=jt(e),o=!1;if(i.queryPairs.forEach((function(t){var e=D()(t,2),i=e[0],a=e[1];"query"===i?(o=!0,r.yasqe.value=a):"outputFormat"===i&&a.length?A.default.plugins[a]?r.yasr.settings.selectedPlugin=a:console.warn('Output format plugin "'.concat(a,'" not found')):"outputSettings"==i?n=JSON.parse(a):"contentTypeConstruct"==i?r.requestConfig.acceptHeaderGraph=a:"contentTypeSelect"==i?r.requestConfig.acceptHeaderSelect=a:"endpoint"==i?r.requestConfig.endpoint=a:"requestMethod"==i?r.requestConfig.method=a:"tabTitle"==i?r.name=a:"namedGraph"==i?(Array.isArray(r.requestConfig.namedGraphs)||(r.requestConfig.namedGraphs=[]),r.requestConfig.namedGraphs.push(a)):"defaultGraph"==i?(Array.isArray(r.requestConfig.defaultGraphs)||(r.requestConfig.defaultGraphs=[]),r.requestConfig.defaultGraphs.push(a)):"headers"==i?(r.requestConfig.headers||(r.requestConfig.headers={}),r.requestConfig.headers=JSON.parse(a)):(r.requestConfig.args||(r.requestConfig.args=[]),r.requestConfig.args.push({name:i,value:a}))})),n&&r.yasr.settings.selectedPlugin&&r.yasr.settings.pluginsConfig&&(r.yasr.settings.pluginsConfig[r.yasr.settings.selectedPlugin]=n),o)return r}function Bt(t,e){var n=e||xe.getDefaults();return t.service&&(n.requestConfig.endpoint=t.service),t.requestConfig&&(t.requestConfig.payload&&(t.requestConfig.payload.query&&(n.yasqe.value=t.requestConfig.payload.query),t.requestConfig.payload["default-graph-uri"]&&(n.requestConfig.defaultGraphs=Array.isArray(t.requestConfig.payload["default-graph-uri"])?t.requestConfig.payload["default-graph-uri"]:[t.requestConfig.payload["default-graph-uri"]]),t.requestConfig.payload["named-graph-uri"]&&(n.requestConfig.namedGraphs=Array.isArray(t.requestConfig.payload["named-graph-uri"])?t.requestConfig.payload["named-graph-uri"]:[t.requestConfig.payload["named-graph-uri"]])),t.requestConfig.headers&&(n.requestConfig.headers=t.requestConfig.headers)),t.renderConfig&&(t.renderConfig.output&&(A.default.plugins[t.renderConfig.output]?n.yasr.settings.selectedPlugin=t.renderConfig.output:console.warn('Output format plugin "'.concat(t.renderConfig.output,'" not found'))),t.renderConfig.settings&&(A.default.plugins[t.renderConfig.output]&&n.yasr.settings.pluginsConfig?n.yasr.settings.pluginsConfig[t.renderConfig.output]=t.renderConfig.settings:console.warn('Output format plugin "'.concat(t.renderConfig.output,'" not found, cannot apply settings')))),t.name&&(n.name=t.name),n}var Vt=n(176),Ht=n.n(Vt),zt=n(75),$t=n(58),Yt=n(62),Wt=n(43),Qt=n(5),Kt=n(46),Xt=function(t,e,n,r){if(!Object(Qt.a)(t))return t;for(var i=-1,o=(e=Object(Yt.a)(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var u=Object(Kt.a)(e[i]),l=n;if(i!=a){var c=s[u];void 0===(l=r?r(c,u,s):void 0)&&(l=Object(Qt.a)(c)?c:Object(Wt.a)(e[i+1])?[]:{})}Object($t.a)(s,u,l),s=s[u]}return t},Zt=n(105),Jt=n(76),te=n(13),ee=n(24),ne=n(6),re=te.a?te.a.isConcatSpreadable:void 0,ie=function(t){return Object(ne.a)(t)||Object(ee.a)(t)||!!(re&&t&&t[re])},oe=function t(e,n,r,i,o){var a=-1,s=e.length;for(r||(r=ie),o||(o=[]);++a<s;){var u=e[a];n>0&&r(u)?n>1?t(u,n-1,r,i,o):Object(Jt.a)(o,u):i||(o[o.length]=u)}return o},ae=function(t){return null!=t&&t.length?oe(t,1):[]},se=n(88),ue=n(87),le=function(t){return Object(ue.a)(Object(se.a)(t,void 0,ae),t+"")}((function(t,e){return null==t?{}:function(t,e){return function(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=Object(zt.a)(t,a);n(0,a)&&Xt(o,Object(Yt.a)(a,t),s)}return o}(t,e,(function(e,n){return Object(Zt.a)(t,n)}))}(t,e)})),ce=n(173),fe=n.n(ce);function de(t){return t.match(/\S+/g)||[]}function he(t,e){return de(e).reduce((function(e,n){if(!n.length)return e;var r=n.length,i=t.indexOf(n);return i>-1&&(e.push([i,i+r]),t=t.slice(0,i)+new Array(r+1).join(" ")+t.slice(i+r)),e}),[]).sort((function(t,e){return t[0]-e[0]}))}n(182);var pe=function(t){f()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v()(t);if(e){var i=v()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}(n);function n(t,r,i,a){var s;return o()(this,n),(s=e.call(this)).clearListSuggestionList=function(){var t=s.container.querySelector(".autocompleteList");t&&(t.innerHTML="")},s.container=r,s.options=i,s.value=t,s.history=a.map((function(t){return{endpoint:t,type:"history"}})),s.options.keys.indexOf("endpoint")<=0&&s.options.keys.push("endpoint"),s.draw(),s}return s()(n,[{key:"draw",value:function(){var t=this,e=document.createElement("div");Object(I.g)(e,"autocompleteWrapper"),this.container.appendChild(e),this.inputField=document.createElement("input"),Object(I.g)(this.inputField,"autocomplete"),this.inputField.value=this.value,e.appendChild(this.inputField),new Ht.a({placeholder:"Search or add an endpoint",highlight:!1,maxResults:100,trigger:{event:["input","focusin"],condition:function(){return!0}},searchEngine:function(t,e){return!t||0===t.trim().length||de(t).every((function(t){return e.indexOf(t)>=0}))},data:{src:function(){return function(t,e,n,r){return new(n||(n=Promise))((function(e,i){function o(t){try{s(r.next(t))}catch(t){i(t)}}function a(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(t){t(r)}))).then(o,a)}s((r=r.apply(t,[])).next())}))}(t,0,void 0,R.a.mark((function t(){var e=this;return R.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",[].concat(k()(this.history),k()(this.options.getData())).map((function(t){return Object.assign(Object.assign({},t),{all:Object.values(le(t,["endpoint"].concat(k()(e.options.keys)))).join(" ")})})));case 1:case"end":return t.stop()}}),t,this)})))},key:["all"],cache:!1},selector:function(){return t.inputField},resultsList:{render:!0,destination:this.inputField,container:function(t){t.id="",Object(I.g)(t,"autocompleteList")}},resultItem:{content:function(e,n){if(e.value.type&&"history"===e.value.type){var r=document.createElement("div");r.innerHTML=fe()(e.value.endpoint,he(e.value.endpoint,t.inputField.value)).reduce((function(t,e){return e.highlight?t+e.text.bold():t+e.text}),""),n.append(r);var i=document.createElement("button");i.textContent="✖",Object(I.g)(i,"removeItem"),i.addEventListener("mousedown",(function(r){t.history=t.history.filter((function(t){return t.endpoint!==e.value.endpoint})),t.emit("remove",t.value,t.history.map((function(t){return t.endpoint}))),n.remove(),r.stopPropagation()})),n.appendChild(i)}else{for(var o={matches:{}},a=0,s=k()(t.options.keys);a<s.length;a++){var u=s[a],l=e.value[u];l&&(o.matches[u]=fe()(l,he(l,t.inputField.value)))}t.options.renderItem(Object.assign(Object.assign({},e),o),n)}},element:"li"},onSelection:function(e){t.value=e.selection.value.endpoint,t.inputField.value=t.value,t.emit("select",t.value,t.history.map((function(t){return t.endpoint})))},noResults:function(){var e=t.container.querySelector(".autocompleteList");if(e){var n=document.createElement("div");Object(I.g)(n,"noResults"),n.innerText='Press "enter" to add this endpoint',e.appendChild(n)}}}),this.inputField.addEventListener("keyup",(function(e){var n=e.target;if(13===e.keyCode){if(t.value===n.value)return t.clearListSuggestionList(),void t.inputField.blur();if(!n.value||!n.value.trim())return t.clearListSuggestionList(),void t.inputField.blur();if(t.options.getData().find((function(e){return e.endpoint===t.inputField.value}))||t.history.find((function(e){return e.endpoint===t.inputField.value})))return t.value=n.value,t.clearListSuggestionList(),t.emit("select",t.value,t.history.map((function(t){return t.endpoint}))),void t.inputField.blur();t.value=n.value,t.history.push({endpoint:n.value,type:"history"}),t.emit("select",t.value,t.history.map((function(t){return t.endpoint}))),t.clearListSuggestionList(),t.inputField.blur()}if(27===e.keyCode&&(t.inputField.blur(),t.inputField.value=t.value,t.clearListSuggestionList()),38===e.keyCode||40===e.keyCode){e.stopPropagation();var r=t.container.querySelector(".autocompleteList .autoComplete_result.autoComplete_selected");r&&!function(t){var e=t.getBoundingClientRect(),n=e.top,r=e.bottom;if(r<0)return!1;if(n>document.documentElement.clientHeight)return!1;var i=t.parentNode.getBoundingClientRect();return r<=i.bottom!=0&&!(n<=i.top)}(r)&&r.scrollIntoView(!1)}})),this.inputField.addEventListener("blur",(function(e){e.target.className===t.inputField.className&&e.relatedTarget&&(t.clearListSuggestionList(),t.inputField.value=t.value)})),document.addEventListener("mousedown",(function(e){if(2!==e.button){var n=e.target;if("removeItem"===n.className||"autoComplete_result"===n.className||"autocomplete"===n.className)return;t.clearListSuggestionList(),t.inputField.value=t.value}}))}},{key:"setEndpoint",value:function(t,e){this.value=t,e&&(this.history=e.map((function(t){return{endpoint:t,type:"history"}}))),this.inputField===document.activeElement?this.inputField.focus():this.inputField.value=t}},{key:"destroy",value:function(){this.removeAllListeners(),this.inputField.remove()}}]),n}(b.EventEmitter),ve=n(18),be=n(39),ge=n.n(be),me=function(t){f()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v()(t);if(e){var i=v()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}(n);function n(t,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;return o()(this,n),(i=e.call(this,t,r,a,null==s?void 0:s.yasr.response)).persistentJson=s,i.externalPluginsConfigurations=a.externalPluginsConfigurations,t.config.paginationOn&&(i.yasqe.on("queryResponse",i.updatePaginationRelatedElements.bind(l()(i))),i.yasqe.on("totalElementsPersisted",i.updatePaginationRelatedElements.bind(l()(i)))),i.yasqe.on("countAffectedRepositoryStatementsPersisted",i.updateResponseInfo.bind(l()(i))),i}return s()(n,[{key:"drawPluginSelectors",value:function(){var t=this;if(!this.yasqe.isUpdateQuery()&&!this.yasqe.isAskQuery()&&(ge()(v()(n.prototype),"drawPluginSelectors",this).call(this),!this.yasrToolbarManagers&&this.config.yasrToolbarPlugins&&(this.yasrToolbarManagers=this.config.yasrToolbarPlugins.map((function(t){return new ye(t)})),this.yasrToolbarManagers=this.yasrToolbarManagers.sort((function(t,e){return t.getOrder()-e.getOrder()}))),this.yasqe.config.paginationOn||this.yasrToolbarManagers)){var e=this.getPluginSelectorsEl(),r=document.createElement("li");if(r.classList.add("spacer"),e.appendChild(r),this.yasrToolbarManagers){var i=document.createElement("li");i.className="yasr-toolbar",this.yasrToolbarManagers.forEach((function(e){var n=e.createElement(t);n.classList.add("yasr-toolbar-element"),i.appendChild(n)})),e.appendChild(i)}}}},{key:"draw",value:function(){var t=this,e=this.translationService.translate("loader.message.query.editor.render.results");this.yasqe.isQueryRunning()?(e=this.yasqe.isUpdateQuery()?this.translationService.translate("loader.message.query.editor.executing.update"):this.translationService.translate("loader.message.query.editor.evaluating.query"),this.showLoader(e,!0)):this.showLoader(e),setTimeout((function(){t.updatePluginElementVisibility(),ge()(v()(n.prototype),"draw",t).call(t)}),100)}},{key:"updatePluginSelectorNames",value:function(){var t,e=this;ge()(v()(n.prototype),"updatePluginSelectorNames",this).call(this),null===(t=this.yasrToolbarManagers)||void 0===t||t.forEach((function(t){return t.updateElement(e)}))}},{key:"updatePaginationRelatedElements",value:function(){this.updatePluginElementVisibility(),this.updateResponseInfo(),this.updatePluginSelectorNames()}},{key:"updatePluginElementVisibility",value:function(){var t;this.yasqe.isUpdateQuery()||this.yasqe.isAskQuery()||(null===(t=this.results)||void 0===t?void 0:t.hasError())?this.hidePluginElementVisibility():this.showPluginElementVisibility()}},{key:"hidePluginElementVisibility",value:function(){var t=this.getPluginSelectorsEl();t&&Object(I.g)(t,"hidden")}},{key:"showPluginElementVisibility",value:function(){var t=this.getPluginSelectorsEl();t&&Object(I.l)(t,"hidden")}},{key:"hasResults",value:function(){return!!this.results&&(this.results.getBindings()||[]).length>0}},{key:"getTabId",value:function(){return this.config.tabId}},{key:"destroy",value:function(){var t,e=this;ge()(v()(n.prototype),"destroy",this).call(this),null===(t=this.yasrToolbarManagers)||void 0===t||t.forEach((function(t){return t.destroy(e)}))}},{key:"getUpdateTypeQueryResponseInfo",value:function(){var t,e,n=null===(t=this.results)||void 0===t?void 0:t.getCustomResultMessage();if(n){if(n.message)return n.message;var r=n.messageLabelKey;if(r)return this.translationService.translate(r,n.parameters)}var i=null===(e=this.results)||void 0===e?void 0:e.getCountAffectedRepositoryStatements();if(void 0===i)return"";if(0===i)return this.translationService.translate("yasr.message_info.no_changes.message");var o=i<0?"yasr.message_info.removed_statements.message":"yasr.message_info.added_statements.message",a=[{key:"countAffectedRepositoryStatements",value:"".concat(Math.abs(i))}];return this.translationService.translate(o,a)}},{key:"getQueryTypeQueryResponseInfo",value:function(){var t,e,n,r,i,o,a,s;if(this.yasqe.isAskQuery())return"";var u=null===(t=this.results)||void 0===t?void 0:t.getBindings();if(!u||0===u.length)return this.translationService.translate("yasr.plugin_control.response_chip.message.result_empty");if(!this.yasqe.config.paginationOn)return this.getCountResultMessage(u);var l=this.yasqe.getPageSize()||(null===(e=this.persistentJson)||void 0===e?void 0:e.yasqe.pageSize),c=this.yasqe.getPageNumber()||(null===(n=this.persistentJson)||void 0===n?void 0:n.yasqe.pageNumber),f=(null===(i=null===(r=this.persistentJson)||void 0===r?void 0:r.yasr.response)||void 0===i?void 0:i.totalElements)||(null===(o=this.results)||void 0===o?void 0:o.getTotalElements()),d=l*(c-1),h=this.getFromToMessage(d,d+u.length),p="";return f?p=this.getTotalResultsMessage(f)+".":(null===(s=null===(a=this.persistentJson)||void 0===a?void 0:a.yasr.response)||void 0===s?void 0:s.possibleElementsCount)&&(p=this.getHasMoreResultsMessage(this.persistentJson.yasr.response.possibleElementsCount)+"."),"".concat(h," ").concat(p)}},{key:"updateResponseInfo",value:function(){var t,e,n,r=this.getResponseInfoElement();if(this.config.showResultInfo&&!(null===(t=this.results)||void 0===t?void 0:t.hasError())){Object(I.l)(r,"hidden");var i=null===(e=this.results)||void 0===e?void 0:e.getResponseTime(),o=null===(n=this.results)||void 0===n?void 0:n.getQueryStartedTime();if(!this.results||!i||!o)return Object(I.g)(r,"empty"),void(r.innerHTML="");Object(I.l)(r,"empty");var a=o+i,s=this.getStaleWarningMessage(a),u=this.yasqe.isUpdateQuery()?this.getUpdateTypeQueryResponseInfo():this.getQueryTypeQueryResponseInfo(),l=this.getResultTimeMessage(i,a);r.innerHTML='<span class="response-info-message">'.concat(s," ").concat(u," ").concat(l,"</span>")}else Object(I.g)(r,"hidden")}},{key:"getCountResultMessage",value:function(t){var e=[{key:"countResults",value:"".concat(t.length)}];return this.translationService.translate(1===t.length?"yasr.plugin_control.info.count_result":"yasr.plugin_control.info.count_results",e)}},{key:"getFromToMessage",value:function(t,e){var n=[{key:"from",value:"".concat(t)},{key:"to",value:"".concat(e)}];return this.translationService.translate("yasr.plugin_control.response_chip.message.result_info",n)}},{key:"getTotalResultsMessage",value:function(t){var e=[{key:"totalResults",value:"".concat(t)}];return this.translationService.translate("yasr.plugin_control.response_chip.message.result_info.total_results",e)}},{key:"getHasMoreResultsMessage",value:function(t){var e=[{key:"atLeastResults",value:"".concat(t)}];return this.translationService.translate("yasr.plugin_control.response_chip.message.result_info.at_least_results",e)}},{key:"getResultTimeMessage",value:function(t,e){var n,r,i=[{key:"seconds",value:null===(n=this.timeFormattingService)||void 0===n?void 0:n.getHumanReadableSeconds(t,!0)},{key:"timestamp",value:null===(r=this.timeFormattingService)||void 0===r?void 0:r.getHumanReadableTimestamp(e)}];return" ".concat(this.translationService.translate("yasr.plugin_control.response_chip.message.result_time",i))}},{key:"getStaleWarningMessage",value:function(t){var e,r=Date.now()-t;if(r>=n.ONE_HOUR_IN_MILLISECONDS){var i=[{key:"timeAgo",value:null===(e=this.timeFormattingService)||void 0===e?void 0:e.getHumanReadableSeconds(r)}],o=this.translationService.translate("yasr.plugin_control.response_chip.timestamp.warning.tooltip",i);return'<yasgui-tooltip data-tooltip="'.concat(o,'" placement="top"><span class="icon-warning icon-lg" style="padding: 5px"></span></yasgui-tooltip>')}return""}}]),n}(A.default);me.ONE_HOUR_IN_MILLISECONDS=36e5;var ye=function(){function t(e){o()(this,t),this.plugin=e}return s()(t,[{key:"createElement",value:function(t){return this.element=this.plugin.createElement(t),this.updateElement(t),this.element}},{key:"updateElement",value:function(t){this.element&&this.plugin.updateElement(this.element,t)}},{key:"getOrder",value:function(){return this.plugin.getOrder()}},{key:"destroy",value:function(t){this.element&&"function"==typeof this.plugin.destroy&&this.plugin.destroy(this.element,t)}}]),t}(),Ee=function(){function t(e,n,r,i){o()(this,t),this.translationService=e,this.confirmationTitle=n,this.confirmationMessage=r,this.onConfirm=i,this.init(),this.boundRejectHandler=this.rejectedhandler.bind(this),this.boundConfirmationHandler=this.confirmationHandler.bind(this)}return s()(t,[{key:"open",value:function(){this.confirmationDialog.addEventListener("internalConfirmationRejectedEvent",this.boundRejectHandler),this.confirmationDialog.addEventListener("internalConfirmationApprovedEvent",this.boundConfirmationHandler),document.body.appendChild(this.confirmationDialog)}},{key:"init",value:function(){this.confirmationDialog=document.createElement("confirmation-dialog"),this.confirmationDialog.translationService=this.translationService,this.confirmationDialog.config={title:this.confirmationTitle,message:this.confirmationMessage}}},{key:"rejectedhandler",value:function(){this.closeConfirmation()}},{key:"confirmationHandler",value:function(){this.closeConfirmation(),this.onConfirm()}},{key:"closeConfirmation",value:function(){document.body.removeChild(this.confirmationDialog),this.confirmationDialog.removeEventListener("internalConfirmationRejectedEvent",this.boundRejectHandler),this.confirmationDialog.removeEventListener("internalConfirmationApprovedEvent",this.boundConfirmationHandler),this.confirmationDialog=null}}]),t}();n(183);var xe=function(t){f()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v()(t);if(e){var i=v()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}(n);function n(t,r){var i;if(o()(this,n),(i=e.call(this)).handleOpenNewTab=function(){i.emit("openNewTab",l()(i))},i.handleOpenNextTab=function(){i.emit("openNextTab",l()(i))},i.handleOpenPreviousTab=function(){i.emit("openPreviousTab",l()(i))},i.handlerCloseOtherTabs=function(){i.emit("closeOtherTabs",l()(i))},i.handleQueryStatusChange=function(){i.emit("queryStatus",l()(i),arguments.length<=2?void 0:arguments[2])},i.handleYasqeBlur=function(t){i.updatePersistJson(t),i.emit("change",l()(i),i.persistentJson)},i.updatePersistJson=function(t){i.persistentJson.yasqe.value=t.getValue();var e=t.getSameAs();void 0!==e&&(i.persistentJson.yasqe.sameAs=e);var n=t.getInfer();void 0!==n&&(i.persistentJson.yasqe.infer=n);var r=t.getPageSize();void 0!==r&&(i.persistentJson.yasqe.pageSize=r);var o=t.getPageNumber();void 0!==o&&(i.persistentJson.yasqe.pageNumber=o),i.persistentJson.yasqe.explainPlanQueryType=t.getExplainPlanQueryType()},i.hasPersistenceJsonBeenChanged=function(t){return t.getValue()!==i.persistentJson.yasqe.value||t.getInfer()!==i.persistentJson.yasqe.infer||t.getSameAs()!==i.persistentJson.yasqe.sameAs||t.getPageSize()!==i.persistentJson.yasqe.pageSize||t.getPageNumber()!==i.persistentJson.yasqe.pageNumber||t.getExplainPlanQueryType()!==i.persistentJson.yasqe.explainPlanQueryType},i.handleYasqeQuery=function(t,e){var n,r;null===(n=i.yasr)||void 0===n||n.hideWarning();var o=t.isUpdateQuery()?i.yasgui.translationService.translate("loader.message.query.editor.executing.update"):i.yasgui.translationService.translate("loader.message.query.editor.evaluating.query");if(null===(r=i.yasr)||void 0===r||r.showLoader(o,!0),i.hasPersistenceJsonBeenChanged(t)&&i.updatePersistJson(t),i.persistentJson.yasr.response=void 0,i.emit("change",l()(i),i.persistentJson),i.yasr&&(i.yasr.results=void 0,i.yasr.refresh()),i.emit("query",l()(i)),i.rootEl){var a={request:e,query:t.getValue(),queryMode:t.getQueryMode(),queryType:t.getQueryType(),pageSize:t.getPageSize()};i.eventService.emitEvent(i.rootEl,"internalQueryEvent",a)}},i.handleYasqeQueryAbort=function(){var t;null===(t=i.yasr)||void 0===t||t.hideLoader(),i.emit("queryAbort",l()(i))},i.handleYasqeResize=function(t,e){i.persistentJson.yasqe.editorHeight=e,i.emit("change",l()(i),i.persistentJson)},i.handleAutocompletionShown=function(t,e){i.emit("autocompletionShown",l()(i),e)},i.handleAutocompletionClose=function(){i.emit("autocompletionClose",l()(i))},i.handleQueryResponse=function(t,e,n,r,o,a,s){var u;if(null===(u=i.yasr)||void 0===u||u.hideLoader(),i.emit("queryResponse",l()(i)),!i.yasr)throw new Error("Resultset visualizer not initialized. Cannot draw results");if(i.yasr.setResponse(e,n,r,o,a,s),i.yasr.results){var c=i.yasr.results.getAsStoreObject(i.yasgui.config.yasr.maxPersistentResponseSize);i.yasr.results.hasError()?(c&&c.error&&(c.error.text=c.error.text.replace(/^([^: ]+: )+/,"")),i.persistentJson.yasr.response=c):i.persistentJson.yasr.response=c,i.emit("change",l()(i),i.persistentJson),i.yasgui.emitInternalEvent("internalQueryExecuted",{duration:n,tabId:i.getId()})}},i.handleTotalElementsChanged=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(null===(e=i.yasr)||void 0===e?void 0:e.results){i.yasr.results.setTotalElements(n);var r=i.persistentJson.yasr.response;r&&r.totalElements!==n&&(r.totalElements=n,i.emit("change",l()(i),i.persistentJson))}},i.handleCountAffectedRepositoryStatementsChanged=function(t,e){var n;if(null===(n=i.yasr)||void 0===n?void 0:n.results){var r=i.persistentJson.yasr.response;if(!r)return;r.countAffectedRepositoryStatements!==e&&(r.countAffectedRepositoryStatements=e,i.yasr.results.setCountAffectedRepositoryStatements(e),i.emit("change",l()(i),i.persistentJson))}},i.eventService=t.eventService,!r||void 0===r.id)throw new Error("Expected a valid configuration to initialize tab with");return i.yasgui=t,i.persistentJson=r,i}return s()(n,[{key:"name",value:function(){return this.persistentJson.name}},{key:"getPersistedJson",value:function(){return this.persistentJson}},{key:"getId",value:function(){return this.persistentJson.id}},{key:"draw",value:function(){var t,e;if(this.rootEl)return null===(t=this.yasqe)||void 0===t||t.update(),void(null===(e=this.tabPanel)||void 0===e||e.update());this.rootEl=document.createElement("div"),this.rootEl.className="tabPanel",this.rootEl.id=this.persistentJson.id,this.rootEl.setAttribute("role","tabpanel"),this.rootEl.setAttribute("aria-labelledby","tab-"+this.persistentJson.id);var n=document.createElement("div");this.controlBarEl=document.createElement("div"),this.controlBarEl.className="controlbar",n.appendChild(this.controlBarEl),this.yasqeWrapperEl=document.createElement("div"),n.appendChild(this.yasqeWrapperEl),this.yasrWrapperEl=document.createElement("div"),n.appendChild(this.yasrWrapperEl),this.initTabSettingsMenu(),this.rootEl.appendChild(n),this.initControlbar(),this.initYasqe(),this.emit("yasqeReady",this,this.getYasqe()),this.initYasr(),this.yasgui._setPanel(this.persistentJson.id,this.rootEl)}},{key:"hide",value:function(){Object(I.l)(this.rootEl,"active")}},{key:"show",value:function(){this.draw(),Object(I.g)(this.rootEl,"active"),this.yasgui.tabElements.selectTab(this.persistentJson.id),this.yasqe&&(this.yasqe.refresh(),this.yasgui.config.autofocus&&this.yasqe.focus()),this.yasr&&this.yasr.refresh(),this.setEndpoint(this.getEndpoint(),this.yasgui.persistentConfig.getEndpointHistory())}},{key:"select",value:function(){this.yasgui.selectTabId(this.persistentJson.id)}},{key:"close",value:function(){var t,e,n=this,r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(1!==this.yasgui.persistentConfig.getTabs().length){var i=function(){var t;if(n.yasqe&&n.yasqe.abortQuery(),n.yasgui.getTab()===n){var e=n.yasgui.persistentConfig.getTabs(),r=e.indexOf(n.persistentJson.id);r>-1&&n.yasgui.selectTabId(e[r===e.length-1?r-1:r+1])}n.yasgui._removePanel(n.rootEl),n.yasgui.persistentConfig.deleteTab(n.persistentJson.id),n.yasgui.emit("tabClose",n.yasgui,n),n.emit("close",n),n.yasgui.tabElements.get(n.persistentJson.id).delete(),delete n.yasgui._tabs[n.persistentJson.id],null===(t=n.yasqe)||void 0===t||t.destroy()};if(r){var o="";o=(null===(t=this.yasqe)||void 0===t?void 0:t.hasOngoingRequest())?"update"===(null===(e=this.yasqe)||void 0===e?void 0:e.getQueryMode().toLowerCase())?this.yasgui.config.translationService.translate("yasgui.tab_list.close_tab.confirmation.not_query_update.message"):this.yasgui.config.translationService.translate("yasgui.tab_list.close_tab.confirmation.query_non_updates.message"):this.yasgui.config.translationService.translate("yasgui.tab_list.close_tab.confirmation.not_queries_non_updates.message"),new Ee(this.yasgui.config.translationService,this.yasgui.config.translationService.translate("yasgui.tab_list.close_tab.confirmation.title"),o,i).open()}else i()}else this.yasgui.config.notificationMessageService.error("close_last_tab_warning",this.yasgui.config.translationService.translate("yasgui.tab_list.close_last_tab.warning.message"))}},{key:"getQuery",value:function(){var t;if(!this.yasqe)throw new Error("Cannot get value from uninitialized editor");return null===(t=this.yasqe)||void 0===t?void 0:t.getValue()}},{key:"setQuery",value:function(t){if(!this.yasqe)throw new Error("Cannot set value for uninitialized editor");return this.yasqe.setValue(t),this.persistentJson.yasqe.value=t,this.emit("change",this,this.persistentJson),this}},{key:"getRequestConfig",value:function(){return this.persistentJson.requestConfig}},{key:"initControlbar",value:function(){this.initEndpointSelectField(),this.yasgui.config.endpointInfo&&this.controlBarEl&&this.controlBarEl.appendChild(this.yasgui.config.endpointInfo())}},{key:"getYasqe",value:function(){return this.yasqe}},{key:"getYasr",value:function(){return this.yasr}},{key:"initTabSettingsMenu",value:function(){if(!this.rootEl||!this.controlBarEl)throw new Error("Need to initialize wrapper elements before drawing tab pabel");this.tabPanel=new z(this,this.rootEl,this.controlBarEl)}},{key:"initEndpointSelectField",value:function(){var t=this;if(!this.controlBarEl)throw new Error("Need to initialize wrapper elements before drawing endpoint field");this.endpointSelect=new pe(this.getEndpoint(),this.controlBarEl,this.yasgui.config.endpointCatalogueOptions,this.yasgui.persistentConfig.getEndpointHistory()),this.endpointSelect.on("select",(function(e,n){t.setEndpoint(e,n)})),this.endpointSelect.on("remove",(function(e,n){t.setEndpoint(e,n)}))}},{key:"checkEndpointForCors",value:function(t){this.yasgui.config.corsProxy&&!(t in De.corsEnabled)&&ve.get(t).query({query:"ASK {?x ?y ?z}"}).then((function(){De.corsEnabled[t]=!0}),(function(e){De.corsEnabled[t]=e.status>0}))}},{key:"setEndpoint",value:function(t,e){return t&&(t=t.trim()),e&&!Object(et.a)(e,this.yasgui.persistentConfig.getEndpointHistory())&&this.yasgui.emit("endpointHistoryChange",this.yasgui,e),this.checkEndpointForCors(t),this.persistentJson.requestConfig.endpoint!==t&&(this.persistentJson.requestConfig.endpoint=t,this.emit("change",this,this.persistentJson),this.emit("endpointChange",this,t)),this.endpointSelect instanceof pe&&this.endpointSelect.setEndpoint(t,e),this}},{key:"getEndpoint",value:function(){return Object(I.j)(this.persistentJson.requestConfig.endpoint,this.yasgui)}},{key:"updateContextMenu",value:function(){this.getTabListEl().redrawContextMenu()}},{key:"getShareableLink",value:function(t){return Ft(t||window.location.href,this)}},{key:"getShareObject",value:function(){return Ut(this)}},{key:"getTabListEl",value:function(){return this.yasgui.tabElements.get(this.persistentJson.id)}},{key:"setName",value:function(t){return this.getTabListEl().rename(t),this.persistentJson.name=t,this.emit("change",this,this.persistentJson),this}},{key:"hasResults",value:function(){var t;return!!(null===(t=this.yasr)||void 0===t?void 0:t.results)}},{key:"getName",value:function(){return this.persistentJson.name}},{key:"query",value:function(){return this.yasqe?this.yasqe.query():Promise.reject(new Error("No yasqe editor initialized"))}},{key:"setRequestConfig",value:function(t){this.persistentJson.requestConfig=Object.assign(Object.assign({},this.persistentJson.requestConfig),t),this.emit("change",this,this.persistentJson)}},{key:"getStaticRequestConfig",value:function(){var t,e={};for(t in this.yasgui.config.requestConfig)if("adjustQueryBeforeRequest"!==t){var n=this.yasgui.config.requestConfig[t];"function"==typeof n&&(e[t]=n(this.yasgui))}return e}},{key:"initYasqe",value:function(){var t=this,e=Object.assign(Object.assign({},this.yasgui.config.yasqe),{value:this.persistentJson.yasqe.value,editorHeight:this.persistentJson.yasqe.editorHeight?this.persistentJson.yasqe.editorHeight:void 0,infer:this.persistentJson.yasqe.infer,sameAs:this.persistentJson.yasqe.sameAs,explainPlanQueryType:this.persistentJson.yasqe.explainPlanQueryType,pageNumber:this.persistentJson.yasqe.pageNumber||this.yasgui.config.pageNumber,pageSize:this.persistentJson.yasqe.pageSize||this.yasgui.config.pageSize,paginationOn:this.yasgui.config.paginationOn,persistenceId:null,consumeShareLink:null,createShareableLink:function(){return t.getShareableLink()},requestConfig:function(){var e=Object.assign(Object.assign({acceptHeaderGraph:"text/turtle",acceptHeaderSelect:"application/sparql-results+json"},it({},t.persistentJson.requestConfig,t.getStaticRequestConfig(),(function(t,e){if(Array.isArray(t)&&Array.isArray(e))return[].concat(k()(t||[]),k()(e||[]))}))),{adjustQueryBeforeRequest:t.yasgui.config.requestConfig.adjustQueryBeforeRequest});return t.yasgui.config.corsProxy&&!De.corsEnabled[t.getEndpoint()]?Object.assign(Object.assign({},e),{args:[].concat(k()(Array.isArray(e.args)?e.args:[]),[{name:"endpoint",value:t.getEndpoint()},{name:"method",value:t.persistentJson.requestConfig.method}]),method:"POST",endpoint:t.yasgui.config.corsProxy}):e}});if(e.hintConfig||(e.hintConfig={}),e.hintConfig.container||(e.hintConfig.container=this.yasgui.rootEl),!this.yasqeWrapperEl)throw new Error("Expected a wrapper element before instantiating yasqe");e.translationService=this.yasgui.config.translationService,e.notificationMessageService=this.yasgui.config.notificationMessageService,e.eventService=this.yasgui.config.eventService,e.tabId=this.getId(),this.yasqe=new N.default(this.yasqeWrapperEl,e),this.yasqe.on("blur",this.handleYasqeBlur),this.yasqe.on("query",this.handleYasqeQuery),this.yasqe.on("queryAbort",this.handleYasqeQueryAbort),this.yasqe.on("resize",this.handleYasqeResize),this.yasqe.on("autocompletionShown",this.handleAutocompletionShown),this.yasqe.on("autocompletionClose",this.handleAutocompletionClose),this.yasqe.on("queryResponse",this.handleQueryResponse),this.yasqe.on("totalElementsChanged",this.handleTotalElementsChanged),this.yasqe.on("countAffectedRepositoryStatementsChanged",this.handleCountAffectedRepositoryStatementsChanged),this.yasqe.on("openNewTab",this.handleOpenNewTab),this.yasqe.on("openNextTab",this.handleOpenNextTab),this.yasqe.on("openPreviousTab",this.handleOpenPreviousTab),this.yasqe.on("closeOtherTabs",this.handlerCloseOtherTabs),this.yasqe.on("queryStatus",this.handleQueryStatusChange)}},{key:"destroyYasqe",value:function(){var t,e,n,r,i,o,a,s,u,l,c,f,d,h,p;null===(t=this.yasqe)||void 0===t||t.off("blur",this.handleYasqeBlur),null===(e=this.yasqe)||void 0===e||e.off("query",this.handleYasqeQuery),null===(n=this.yasqe)||void 0===n||n.off("queryAbort",this.handleYasqeQueryAbort),null===(r=this.yasqe)||void 0===r||r.off("resize",this.handleYasqeResize),null===(i=this.yasqe)||void 0===i||i.off("autocompletionShown",this.handleAutocompletionShown),null===(o=this.yasqe)||void 0===o||o.off("autocompletionClose",this.handleAutocompletionClose),null===(a=this.yasqe)||void 0===a||a.off("queryResponse",this.handleQueryResponse),null===(s=this.yasqe)||void 0===s||s.off("totalElementsChanged",this.handleTotalElementsChanged),null===(u=this.yasqe)||void 0===u||u.off("countAffectedRepositoryStatementsChanged",this.handleCountAffectedRepositoryStatementsChanged),null===(l=this.yasqe)||void 0===l||l.off("openNewTab",this.handleOpenNewTab),null===(c=this.yasqe)||void 0===c||c.off("openNextTab",this.handleOpenNextTab),null===(f=this.yasqe)||void 0===f||f.off("queryStatus",this.handleQueryStatusChange),null===(d=this.yasqe)||void 0===d||d.off("openPreviousTab",this.handleOpenPreviousTab),null===(h=this.yasqe)||void 0===h||h.off("closeOtherTabs",this.handlerCloseOtherTabs),null===(p=this.yasqe)||void 0===p||p.destroy(),this.yasqe=void 0}},{key:"reInitYasr",value:function(){var t;this.yasr&&(null===(t=this.yasqe)||void 0===t||t.abortQuery(),this.yasr.destroy(),this.yasr=void 0,this.initYasr())}},{key:"initYasr",value:function(){var t=this;if(!this.yasrWrapperEl)throw new Error("Wrapper for yasr does not exist");var e={persistenceId:null,prefixes:function(e){var n,r="function"==typeof t.yasgui.config.yasr.prefixes?t.yasgui.config.yasr.prefixes(e):t.yasgui.config.yasr.prefixes,i=null===(n=t.yasqe)||void 0===n?void 0:n.getPrefixesFromQuery();return lt(lt(Object.assign(Object.assign({},r),i)))},defaultPlugin:this.persistentJson.yasr.settings.selectedPlugin,pluginOrder:this.yasgui.config.yasr.pluginOrder,getPlainQueryLinkToEndpoint:function(){if(t.yasqe)return qt(t.getEndpoint(),N.default.Sparql.getUrlArguments(t.yasqe,t.persistentJson.requestConfig))},plugins:Object(ct.a)(this.persistentJson.yasr.settings.pluginsConfig,(function(t){return{dynamicConfig:t}})),errorRenderers:[Te(this)].concat(k()(A.default.defaults.errorRenderers||[]))};void 0===e.getDownloadFileName&&(e.getDownloadFileName=function(){return function(t,e,n){return t=Object(ht.a)(t),void 0===(e=n?void 0:e)?function(t){return dt.test(t)}(t)?function(t){return t.match(Nt)||[]}(t):function(t){return t.match(ft)||[]}(t):t.match(e)||[]}(function(t){return(t=Object(ht.a)(t))&&t.replace(Lt,Ct).replace(Rt,"")}(t.getName())).join("-")}),e.translationService=this.yasgui.config.translationService,e.timeFormattingService=this.yasgui.config.timeFormattingService,e.externalPluginsConfigurations=this.yasgui.config.yasr.externalPluginsConfigurations,e.yasrToolbarPlugins=this.yasgui.config.yasr.yasrToolbarPlugins,e.downloadAsOptions=this.yasgui.config.yasr.downloadAsOptions,e.showResultInfo=this.yasgui.config.yasr.showResultInfo,e.showQueryLoader=this.yasgui.config.yasr.showQueryLoader,e.clearState=this.yasgui.config.clearState,e.tabId=this.getId(),this.yasqe&&(this.yasgui.config.yasr.sparqlResponse&&(this.persistentJson.yasr.response={data:this.yasgui.config.yasr.sparqlResponse}),this.yasr=new me(this.yasqe,this.yasrWrapperEl,e,this.persistentJson),this.persistentJson.yasr.settings=this.yasr.getPersistentConfig(),this.yasr.on("change",(function(){t.yasr&&(t.persistentJson.yasr.settings=t.yasr.getPersistentConfig()),t.emit("change",t,t.persistentJson)})))}},{key:"destroy",value:function(){var t,e,n;this.removeAllListeners(),null===(t=this.tabPanel)||void 0===t||t.destroy(),null===(e=this.endpointSelect)||void 0===e||e.destroy(),this.endpointSelect=void 0,null===(n=this.yasr)||void 0===n||n.destroy(),this.yasr=void 0,this.destroyYasqe()}}],[{key:"getDefaults",value:function(t){return{yasqe:{value:t?t.config.yasqe.value:De.defaults.yasqe.value},yasr:{response:void 0,settings:{selectedPlugin:t?t.config.yasr.defaultPlugin:"table",pluginsConfig:{}}},requestConfig:t?t.config.requestConfig:Object.assign({},De.defaults.requestConfig),id:Pe(),name:t?t.createTabName():""}}}]),n}(b.EventEmitter);function Te(t){var e=this;return function(n){return function(t,e,n,r){return new(n||(n=Promise))((function(e,i){function o(t){try{s(r.next(t))}catch(t){i(t)}}function a(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(t){t(r)}))).then(o,a)}s((r=r.apply(t,[])).next())}))}(e,0,void 0,R.a.mark((function e(){var r,i,o;return R.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.status){e.next=9;break}if("http:"!==new URL(t.getEndpoint()).protocol||"https:"!==window.location.protocol){e.next=9;break}return r=document.createElement("div"),(i=document.createElement("p")).innerHTML='You are trying to query an HTTP endpoint (<a href="'.concat(t.getEndpoint(),'" target="_blank" rel="noopener noreferrer">').concat(t.getEndpoint(),'</a>) from an HTTP<strong>S</strong> website (<a href="').concat(window.location.href,'">').concat(window.location.href,'</a>).<br>This is not allowed in modern browsers, see <a target="_blank" rel="noopener noreferrer" href="https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy">https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy</a>.'),t.yasgui.config.nonSslDomain&&((o=document.createElement("p")).innerHTML='As a workaround, you can use the HTTP version of Yasgui instead: <a href="'.concat(t.getShareableLink(t.yasgui.config.nonSslDomain),'" target="_blank">').concat(t.yasgui.config.nonSslDomain,"</a>"),i.appendChild(o)),r.appendChild(i),e.abrupt("return",r);case 9:case"end":return e.stop()}}),e)})))}}var _e=n(81);n.n(_e);var Se=n(190);n(184);var we=function(){function t(e,n){var r=this;o()(this,t),this.handleContextClick=function(t){2!==t.button||t.target!==r.contextEl?r.closeConfigMenu():t.stopImmediatePropagation()},this.closeConfigMenu=function(){r.tabRef=void 0,r.contextEl&&r.contextEl.remove()},this.yasgui=e,this.rootEl=n,document.addEventListener("click",this.handleContextClick),document.addEventListener("keyup",this.closeConfigMenu)}return s()(t,[{key:"getMenuItemEl",value:function(t){var e=document.createElement("li");return Object(I.g)(e,"context-menu-item"),e.addEventListener("contextmenu",(function(t){t.stopPropagation()})),void 0!==t&&(e.innerText=t),e}},{key:"draw",value:function(t){var e=this;this.contextEl=document.createElement("div");var n=document.createElement("ul");Object(I.g)(n,"context-menu-list"),this.newTabEl=this.getMenuItemEl(this.yasgui.translationService.translate("yasgui.tab_list.menu.new_tab.btn.label")),this.newTabEl.onclick=function(){return e.yasgui.addTab(!0)},this.renameTabEl=this.getMenuItemEl(this.yasgui.translationService.translate("yasgui.tab_list.menu.rename_tab.btn.label")),this.copyTabEl=this.getMenuItemEl(this.yasgui.translationService.translate("yasgui.tab_list.menu.copy_tab.btn.label")),this.closeTabEl=this.getMenuItemEl(this.yasgui.translationService.translate("yasgui.tab_list.menu.close_tab.btn.label")),this.closeOtherTabsEl=this.getMenuItemEl(this.yasgui.translationService.translate("yasgui.tab_list.menu.close_other_tabs.btn.label")),this.reOpenOldTab=this.getMenuItemEl(this.yasgui.translationService.translate("yasgui.tab_list.menu.undo_close_tab.btn.label")),n.appendChild(this.newTabEl),n.appendChild(this.renameTabEl),n.appendChild(this.copyTabEl),n.appendChild(document.createElement("hr")),n.appendChild(this.closeTabEl),n.appendChild(this.closeOtherTabsEl),n.appendChild(this.reOpenOldTab),this.contextEl.appendChild(n),Object(I.g)(this.contextEl,"yasgui","context-menu"),t.appendChild(this.contextEl)}},{key:"redraw",value:function(){var t;if(this.contextEl&&(null===(t=this.tabRef)||void 0===t?void 0:t.tabEl)){var e=this.tabRef.tabEl.getBoundingClientRect();this.contextEl.style.top="".concat(window.pageYOffset+e.bottom,"px")}}},{key:"openConfigMenu",value:function(t,e,n){var r=this;if(e.tabEl){this.draw(this.rootEl),this.tabRef=e;var i=this.yasgui.getTab(t),o=e.tabEl.getBoundingClientRect();this.contextEl.style.left="".concat(window.pageXOffset+o.left,"px"),this.contextEl.style.top="".concat(window.pageYOffset+o.bottom,"px"),n.stopPropagation(),this.renameTabEl.onclick=function(){return e.startRename()},this.copyTabEl.onclick=function(){if(i){var t=Object(Se.a)(i.getPersistedJson());t.id=Pe(),r.yasgui.addTab(!0,t)}},this.closeTabEl.onclick=function(){return null==i?void 0:i.close()},1===Object.keys(this.yasgui._tabs).length?Object(I.g)(this.closeOtherTabsEl,"disabled"):this.closeOtherTabsEl.onclick=function(){r.yasgui.closeOtherTabs(t)},this.yasgui.persistentConfig&&this.yasgui.persistentConfig.hasLastClosedTab()?this.reOpenOldTab.onclick=function(){return r.yasgui.restoreLastTab()}:Object(I.g)(this.reOpenOldTab,"disabled")}}},{key:"unregisterEventListeners",value:function(){document.removeEventListener("click",this.handleContextClick),document.removeEventListener("keyup",this.closeConfigMenu)}},{key:"destroy",value:function(){this.unregisterEventListeners()}}],[{key:"get",value:function(e,n){return new t(e,n)}}]),t}(),Ae=n(185);n(186);var Ne=function(){function t(e,n,r){o()(this,t),this.tabList=n,this.yasgui=e,this.translationService=this.yasgui.translationService,this.tabId=r}return s()(t,[{key:"delete",value:function(){var t;this.tabEl&&(null===(t=this.tabList._tabsListEl)||void 0===t||t.removeChild(this.tabEl),delete this.tabList._tabs[this.tabId])}},{key:"startRename",value:function(){if(this.renameEl){var t=this.yasgui.getTab(this.tabId);t&&(this.renameEl.value=t.name(),Object(I.g)(this.tabEl,"renaming"),this.renameEl.focus())}}},{key:"active",value:function(t){this.tabEl&&(t?(Object(I.g)(this.tabEl,"active"),this.tabEl.children[0].setAttribute("aria-selected","true"),this.tabEl.children[0].setAttribute("tabindex","0")):(Object(I.l)(this.tabEl,"active"),this.tabEl.children[0].setAttribute("aria-selected","false"),this.tabEl.children[0].setAttribute("tabindex","-1")))}},{key:"rename",value:function(t){this.nameEl&&(this.nameEl.textContent=t)}},{key:"setAsValid",value:function(t){t?(Object(I.l)(this.tabEl,"query-invalid"),this.tabEl&&this.tabEl.removeAttribute("title")):(Object(I.g)(this.tabEl,"query-invalid"),this.tabEl&&this.tabEl.setAttribute("title",this.translationService.translate("yasqe.tab_list.new_tab.query_invalid.warning.message")))}},{key:"setAsQuerying",value:function(t){t?Object(I.g)(this.tabEl,"querying"):Object(I.l)(this.tabEl,"querying")}},{key:"draw",value:function(t){var e=this;this.tabEl=document.createElement("div"),this.tabEl.setAttribute("role","presentation"),this.tabEl.ondblclick=function(){e.startRename()},Object(I.g)(this.tabEl,"tab"),this.tabEl.addEventListener("keydown",(function(t){"Delete"===t.code&&n()}));var n=function(t){var n;null==t||t.preventDefault(),null===(n=e.yasgui.getTab(e.tabId))||void 0===n||n.close()},r=document.createElement("a");r.setAttribute("role","tab"),r.href="#"+this.tabId,r.id="tab-"+this.tabId,r.setAttribute("aria-controls",this.tabId),r.addEventListener("blur",(function(){e.tabEl&&(e.tabEl.classList.contains("active")?r.setAttribute("tabindex","0"):r.setAttribute("tabindex","-1"))})),r.addEventListener("focus",(function(){if(e.tabEl&&e.tabEl.classList.contains("active")){var t=Object.keys(e.tabList._tabs).indexOf(e.tabId);e.tabList.tabEntryIndex=t}})),r.addEventListener("click",(function(t){t.preventDefault(),e.yasgui.selectTabId(e.tabId)})),this.nameEl=document.createElement("span"),this.nameEl.textContent=t,r.appendChild(this.nameEl);var i=document.createElement("div");i.innerHTML="&#x2716;",i.title=this.translationService.translate("yasgui.tab_list.close_tab.btn.label"),i.setAttribute("tabindex","-1"),i.setAttribute("aria-hidden","true"),Object(I.g)(i,"closeTab"),i.addEventListener("click",(function(t){var r,i;t.shiftKey?null===(i=null===(r=e.yasgui.getTab(e.tabId))||void 0===r?void 0:r.getYasqe())||void 0===i||i.emit("closeOtherTabs"):n(t)})),r.appendChild(i);var o=this.renameEl=document.createElement("input");o.type="text",o.value=t,o.onkeyup=function(t){var n;"Enter"===t.key&&(null===(n=e.yasgui.getTab(e.tabId))||void 0===n||n.setName(o.value),Object(I.l)(e.tabEl,"renaming"))},o.onblur=function(){var t;null===(t=e.yasgui.getTab(e.tabId))||void 0===t||t.setName(o.value),Object(I.l)(e.tabEl,"renaming")},r.appendChild(this.renameEl),r.oncontextmenu=function(t){var n;null===(n=e.tabList.tabContextMenu)||void 0===n||n.closeConfigMenu(),e.openTabConfigMenu(t),t.preventDefault(),t.stopPropagation()},this.tabEl.appendChild(r);var a=document.createElement("div");return Object(I.g)(a,"loader"),this.tabEl.appendChild(a),this.tabEl}},{key:"openTabConfigMenu",value:function(t){var e;null===(e=this.tabList.tabContextMenu)||void 0===e||e.openConfigMenu(this.tabId,this,t)}},{key:"redrawContextMenu",value:function(){var t;null===(t=this.tabList.tabContextMenu)||void 0===t||t.redraw()}}]),t}(),Ie=function(){function t(e){var n=this;o()(this,t),this._tabs={},this.handleKeydownArrowKeys=function(t){if("ArrowLeft"===t.code||"ArrowRight"===t.code){if(!n._tabsListEl)return;var e=n._tabsListEl.childElementCount;if("number"!=typeof n.tabEntryIndex)return;var r=n._tabsListEl.children[n.tabEntryIndex];r.classList.contains("active")||r.children[0].setAttribute("tabindex","-1"),"ArrowLeft"===t.code&&(n.tabEntryIndex--,n.tabEntryIndex<0&&(n.tabEntryIndex=e-1)),"ArrowRight"===t.code&&(n.tabEntryIndex++,n.tabEntryIndex>=e&&(n.tabEntryIndex=0));var i=n._tabsListEl.children[n.tabEntryIndex];i.children[0].setAttribute("tabindex","0"),i.children[0].focus()}},this.handleAddNewTab=function(t){t.preventDefault(),n.yasgui.addTab(!0)},this.yasgui=e,this.registerListeners(),this.tabEntryIndex=this.getActiveIndex()}return s()(t,[{key:"get",value:function(t){return this._tabs[t]}},{key:"registerListeners",value:function(){var t=this;this.yasgui.on("query",(function(e,n){var r=n.getId();t._tabs[r]&&t._tabs[r].setAsQuerying(!0)})),this.yasgui.on("queryResponse",(function(e,n){var r=n.getId();t._tabs[r]&&t._tabs[r].setAsQuerying(!1)})),this.yasgui.on("queryAbort",(function(e,n){var r=n.getId();t._tabs[r]&&t._tabs[r].setAsQuerying(!1)})),this.yasgui.on("queryStatus",(function(e,n){return t.queryStatusChangeHandler(e,n)})),this.yasgui.on("yasqeReady",(function(e,n){return t.yasqeReadyHandler(e,n)}))}},{key:"yasqeReadyHandler",value:function(t,e){this._tabs[t.getId()].setAsValid(e.queryValid)}},{key:"queryStatusChangeHandler",value:function(t,e){this._tabs[t.getId()].setAsValid(e.valid)}},{key:"getActiveIndex",value:function(){if(this._selectedTab)return Object.keys(this._tabs).indexOf(this._selectedTab)}},{key:"drawTabsList",value:function(){var t=this;this._tabsListEl=document.createElement("div"),Object(I.g)(this._tabsListEl,"tabsList"),this._tabsListEl.setAttribute("role","tablist"),this._tabsListEl.addEventListener("keydown",this.handleKeydownArrowKeys),Ae.default.create(this._tabsListEl,{group:"tabList",animation:100,onUpdate:function(){var e=t.deriveTabOrderFromEls();t.yasgui.emit("tabOrderChanged",t.yasgui,e),t.yasgui.persistentConfig.setTabOrder(e)},filter:".addTab",onMove:function(t){return Object(I.k)(t.related,"tab")}}),this.addTabEl=document.createElement("div"),this.addTabEl.setAttribute("role","presentation"),this.addTabEl.className="create-tab-tab";var e=document.createElement("button");e.className="addTab";var n=this.yasgui.translationService.translate("yasgui.tab_list.add_tab.btn.label");e.title=n,e.setAttribute("aria-label",n),e.addEventListener("click",this.handleAddNewTab),e.addEventListener("focus",(function(){t._tabsListEl&&(t.tabEntryIndex=t._tabsListEl.childElementCount-1)})),e.addEventListener("blur",(function(){e.setAttribute("tabindex","0")}));var r=document.createElement("i");return r.className="icon-plus",e.prepend(r),this.addTabEl.appendChild(e),this._tabsListEl.appendChild(this.addTabEl),this.tabContextMenu=we.get(this.yasgui,this.yasgui.config.contextMenuContainer?this.yasgui.config.contextMenuContainer:this._tabsListEl),this._tabsListEl}},{key:"addTab",value:function(t,e){return this.drawTab(t,e)}},{key:"deriveTabOrderFromEls",value:function(){var t=[];if(this._tabsListEl)for(var e=0;e<this._tabsListEl.children.length;e++){var n=this._tabsListEl.children[e].children[0];if(n){var r=n.href;r&&r.indexOf("#")>=0&&t.push(r.substr(r.indexOf("#")+1))}}return t}},{key:"selectTab",value:function(t){for(var e in this._selectedTab=t,this._tabs)this._tabs[e].active(this._selectedTab===e)}},{key:"drawTab",value:function(t,e){var n,r;this._tabs[t]=new Ne(this.yasgui,this,t);var i=this.yasgui.persistentConfig.getTab(t);void 0!==e&&e<this.yasgui.persistentConfig.getTabs().length-1?null===(n=this._tabsListEl)||void 0===n||n.insertBefore(this._tabs[t].draw(i.name),this._tabs[this.yasgui.persistentConfig.getTabs()[e+1]].tabEl||null):null===(r=this._tabsListEl)||void 0===r||r.insertBefore(this._tabs[t].draw(i.name),this.addTabEl||null)}},{key:"destroy",value:function(){var t,e;for(var n in this._tabs)this._tabs[n].delete();this._tabs={},null===(t=this.tabContextMenu)||void 0===t||t.destroy(),null===(e=this._tabsListEl)||void 0===e||e.remove(),this._tabsListEl=void 0}}]),t}();function Ce(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v()(t);if(e){var i=v()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}var Le=function(t){f()(n,t);var e=Ce(n);function n(){return o()(this,n),e.apply(this,arguments)}return s()(n,[{key:"draw",value:function(t){return this.tabEl=this.createTabRootElement(),this.renameTabElement=this.createRenameElement(t),this.tabEl.prepend(this.renameTabElement),this.closeButton=this.createCloseButton(),this.tabEl.appendChild(this.closeButton),this.tabEl.appendChild(this.createLoaderElement()),this.tabEl}},{key:"createTabRootElement",value:function(){var t=document.createElement("div");return t.setAttribute("role","presentation"),t.addEventListener("keydown",this.tabElKeydownHandler.bind(this)),t.addEventListener("click",this.tabElOnClickHandler.bind(this)),Object(I.g)(t,"tab"),t}},{key:"createRenameElement",value:function(t){var e=document.createElement("ontotext-editable-text-field");return e.value=t,e.setAttribute("role","tab"),e.id="tab-"+this.tabId,e.translationService=this.translationService,e.setAttribute("aria-controls",this.tabId),e.addEventListener("valueChanged",this.renameElementValueChangedHandler.bind(this)),e.addEventListener("componentModeChanged",this.renameElementComponentModeChangedHandler.bind(this)),e.addEventListener("blur",this.renameElementOnBlurHandler.bind(this)),e.addEventListener("focus",this.renameElementOnFocusHandler.bind(this)),e.addEventListener("contextmenu",this.renameElementOpenContextMenuHandler.bind(this)),e}},{key:"createCloseButton",value:function(){var t=document.createElement("span");return t.innerHTML='<i class="icon-close"></i>',t.title=this.translationService.translate("yasgui.tab_list.close_tab.btn.label"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"),t.addEventListener("click",this.closeButtonOnClickHandler.bind(this)),Object(I.g)(t,"closeTab"),t}},{key:"createLoaderElement",value:function(){var t=document.createElement("div");return Object(I.g)(t,"loader"),t}},{key:"tabElKeydownHandler",value:function(t){var e;"Delete"===t.code&&((null===(e=this.renameTabElement)||void 0===e?void 0:e.edit)||this.handleDeleteTab()),"Enter"===t.code&&(t.preventDefault(),this.yasgui.selectTabId(this.tabId))}},{key:"tabElOnClickHandler",value:function(t){t.preventDefault(),this.yasgui.selectTabId(this.tabId)}},{key:"renameElementValueChangedHandler",value:function(t){var e,n,r=t.detail;r?null===(e=this.yasgui.getTab(this.tabId))||void 0===e||e.setName(r):this.renameTabElement&&(this.renameTabElement.value=null===(n=this.yasgui.getTab(this.tabId))||void 0===n?void 0:n.getName())}},{key:"renameElementComponentModeChangedHandler",value:function(t){t.detail?Object(I.g)(this.closeButton,"hidden"):Object(I.l)(this.closeButton,"hidden")}},{key:"renameElementOnBlurHandler",value:function(){var t,e;this.tabEl&&(this.tabEl.classList.contains("active")?null===(t=this.renameTabElement)||void 0===t||t.setAttribute("tabindex","0"):null===(e=this.renameTabElement)||void 0===e||e.setAttribute("tabindex","-1"))}},{key:"renameElementOnFocusHandler",value:function(){this.tabEl&&this.tabEl.classList.contains("active")&&(this.tabList.tabEntryIndex=Object.keys(this.tabList._tabs).indexOf(this.tabId))}},{key:"renameElementOpenContextMenuHandler",value:function(t){var e;null===(e=this.tabList.tabContextMenu)||void 0===e||e.closeConfigMenu(),this.openTabConfigMenu(t),t.preventDefault(),t.stopPropagation()}},{key:"closeButtonOnClickHandler",value:function(t){var e,n;t.shiftKey?null===(n=null===(e=this.yasgui.getTab(this.tabId))||void 0===e?void 0:e.getYasqe())||void 0===n||n.emit("closeOtherTabs"):this.handleDeleteTab(t)}},{key:"handleDeleteTab",value:function(t){var e;null==t||t.preventDefault(),null===(e=this.yasgui.getTab(this.tabId))||void 0===e||e.close()}},{key:"startRename",value:function(){this.renameTabElement&&this.yasgui.getTab(this.tabId)&&(this.renameTabElement.edit=!0,this.renameTabElement.focus())}},{key:"delete",value:function(){var t,e,r,i,o,a,s,u;null===(t=this.tabEl)||void 0===t||t.removeEventListener("click",this.tabElOnClickHandler.bind(this)),null===(e=this.tabEl)||void 0===e||e.removeEventListener("keydown",this.tabElKeydownHandler.bind(this)),null===(r=this.renameTabElement)||void 0===r||r.removeEventListener("valueChanged",this.renameElementValueChangedHandler.bind(this)),null===(i=this.renameTabElement)||void 0===i||i.removeEventListener("componentModeChanged",this.renameElementComponentModeChangedHandler.bind(this)),null===(o=this.renameTabElement)||void 0===o||o.removeEventListener("blur",this.renameElementOnBlurHandler.bind(this)),null===(a=this.renameTabElement)||void 0===a||a.removeEventListener("focus",this.renameElementOnFocusHandler.bind(this)),null===(s=this.renameTabElement)||void 0===s||s.removeEventListener("contextmenu",this.renameElementOpenContextMenuHandler.bind(this)),null===(u=this.closeButton)||void 0===u||u.removeEventListener("click",this.closeButtonOnClickHandler.bind(this)),ge()(v()(n.prototype),"delete",this).call(this)}}]),n}(Ne),Re=function(t){f()(n,t);var e=Ce(n);function n(){var t;return o()(this,n),(t=e.apply(this,arguments)).handleKeydownArrowKeys=function(e){if(!Object.values(t._tabs).some((function(t){var e;return null===(e=t.renameTabElement)||void 0===e?void 0:e.edit}))&&("ArrowLeft"===e.code||"ArrowRight"===e.code)){if(!t._tabsListEl)return;var n=t._tabsListEl.childElementCount;if("number"!=typeof t.tabEntryIndex)return;var r=t._tabsListEl.children[t.tabEntryIndex];r.classList.contains("active")||r.setAttribute("tabindex","-1"),"ArrowLeft"===e.code&&(t.tabEntryIndex--,t.tabEntryIndex<0&&(t.tabEntryIndex=n-1)),"ArrowRight"===e.code&&(t.tabEntryIndex++,t.tabEntryIndex>=n&&(t.tabEntryIndex=0));var i=t._tabsListEl.children[t.tabEntryIndex];i.setAttribute("tabindex","0"),i.focus()}},t}return s()(n,[{key:"drawTab",value:function(t,e){var n,r;this._tabs[t]=new Le(this.yasgui,this,t);var i=this.yasgui.persistentConfig.getTab(t);void 0!==e&&e<this.yasgui.persistentConfig.getTabs().length-1?null===(n=this._tabsListEl)||void 0===n||n.insertBefore(this._tabs[t].draw(i.name),this._tabs[this.yasgui.persistentConfig.getTabs()[e+1]].tabEl||null):null===(r=this._tabsListEl)||void 0===r||r.insertBefore(this._tabs[t].draw(i.name),this.addTabEl||null)}},{key:"deriveTabOrderFromEls",value:function(){var t=[];if(this._tabsListEl)for(var e=0;e<this._tabsListEl.children.length;e++){var n=this._tabsListEl.children[e].children[0];if(n){var r=n.id;r&&r.indexOf("tab-")>=0&&t.push(r.substring(r.indexOf("tab-")+"tab-".length))}}return t}}]),n}(Ie);function Oe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n(187),n(188),window&&(N.default&&(window.Yasqe=N.default),A.default&&(window.Yasr=A.default));var ke=function(t){f()(n,t);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v()(t);if(e){var i=v()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}(n);function n(t,r){var i,a,s,u;if(o()(this,n),(i=e.call(this))._tabs={},i.rootEl=document.createElement("div"),Object(I.g)(i.rootEl,"yasgui"),t.appendChild(i.rootEl),i.config=Object(g.a)({},n.defaults,r),(null===(a=r.yasqe)||void 0===a?void 0:a.extraKeys)&&(i.config.yasqe.extraKeys=r.yasqe.extraKeys),i.translationService=i.config.translationService,i.notificationMessageService=i.config.notificationMessageService,i.eventService=i.config.eventService,i.persistentConfig=new C(l()(i)),i.tabElements=new Re(l()(i)),i.tabPanelsEl=document.createElement("div"),i.rootEl.appendChild(i.tabElements.drawTabsList()),i.rootEl.appendChild(i.tabPanelsEl),i.config.populateFromUrl&&(u=Gt(xe.getDefaults(l()(i))))){var c=i.findTabIdForConfig(u);if(c){var f=i.persistentConfig.getTab(c).yasr;i.persistentConfig.getTab(c).yasr={settings:u.yasr.settings,response:f.response},i.persistentConfig.setActive(c),f.response||(s=c)}else i.persistentConfig.setTab(u.id,"function"==typeof i.config.populateFromUrl?i.config.populateFromUrl(u):u),s=u.id}var d=i.persistentConfig.getTabs();if(!d.length&&i.config.autoAddOnInit){var h=i.addTab(!0);h&&(i.persistentConfig.setActive(h.getId()),i.emit("tabChange",l()(i),h),i.emit("yasqeReady",h,h.getYasqe()))}else{var p,v=function(t){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function(t,e){if(t){if("string"==typeof t)return Oe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oe(t,e):void 0}}(t))){e&&(t=e);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==e.return||e.return()}finally{if(a)throw i}}}}(d);try{for(v.s();!(p=v.n()).done;){var b=p.value;i._tabs[b]=new xe(l()(i),i.persistentConfig.getTab(b)),i._registerTabListeners(i._tabs[b]),i.tabElements.drawTab(b)}}catch(t){v.e(t)}finally{v.f()}var m=i.persistentConfig.getActiveId();m&&(i.markTabSelected(m),s&&s===m&&i.getTab(m).query().catch((function(){})))}return i}return s()(n,[{key:"getHandleLocalStorageQuotaFull",value:function(){var t=this;return function(){t.reInitYasgui({resetCurrentTab:!1,resetInferResults:!1,resetSameAs:!1,resetYasr:!0})}}},{key:"reInitYasgui",value:function(t){var e,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.persistentConfig.currentId(),o=this.hasFlagsForRefreshYasqe(t.resetInferResults,null===(e=null==r?void 0:r.yasguiConfig)||void 0===e?void 0:e.infer);Object.values(this.persistentConfig.getTabConfig()).forEach((function(e){var n,a,s;(t.resetCurrentTab||i!==e.id)&&t.resetYasr&&(e.yasr.response=null),o&&(e.yasqe.infer=null===(n=r.yasguiConfig)||void 0===n?void 0:n.infer,e.yasqe.sameAs=(null===(a=r.yasguiConfig)||void 0===a?void 0:a.sameAs)||(null===(s=r.yasguiConfig)||void 0===s?void 0:s.infer))})),Object.values(this._tabs).forEach((function(e){var r;(t.resetCurrentTab||i!==e.getId())&&(n.emitTabChange(e),e.reInitYasr()),o&&(null===(r=e.getYasqe())||void 0===r||r.refresh())}))}},{key:"hasFlagsForRefreshYasqe",value:function(t,e){return t&&void 0!==e}},{key:"hasFullscreen",value:function(t){t?(this.emit("fullscreen-enter",this),Object(I.g)(this.rootEl,"hasFullscreen")):(this.emit("fullscreen-leave",this),Object(I.l)(this.rootEl,"hasFullscreen"))}},{key:"getStorageId",value:function(t,e){var n=e||this.config.persistenceId;if(n)return"string"==typeof n?n+"_"+t:n(this)+"_"+t}},{key:"createTabName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t||(t=this.translationService.translate(this.config.defaultTabNameLabelKey));var n=t+(e>0?" "+e:"");return this.tabNameTaken(n)&&(n=this.createTabName(t,e+1)),n}},{key:"tabNameTaken",value:function(t){return _(this._tabs,(function(e){return e.getName()===t}))}},{key:"getTabByNameAndQuery",value:function(t,e){var n=Object.values(this._tabs).filter((function(e){return e.getName()===t})).find((function(t){var n,r;return(null===(r=null===(n=t.getPersistedJson())||void 0===n?void 0:n.yasqe)||void 0===r?void 0:r.value)===e}));return t||n||(n=Object.values(this._tabs).find((function(t){var n,r;return(null===(r=null===(n=t.getPersistedJson())||void 0===n?void 0:n.yasqe)||void 0===r?void 0:r.value)===e}))),n}},{key:"getTab",value:function(t){if(t)return this._tabs[t];var e=this.persistentConfig.currentId();return e?this._tabs[e]:void 0}},{key:"markTabSelected",value:function(t){if(!this.persistentConfig.getTab(t))return!1;for(var e in this.tabElements.selectTab(t),this._tabs[t]||(this._tabs[t]=new xe(this,xe.getDefaults(this))),this._tabs[t].show(),this.emit("yasqeReady",this._tabs[t],this._tabs[t].getYasqe()),this._tabs)e!==t&&this._tabs[e].hide();return!0}},{key:"selectTabId",value:function(t){var e=this.getTab();return e&&e.getId()!==t&&this.markTabSelected(t)&&(this.emit("tabSelect",this,t),this.persistentConfig.setActive(t)),e}},{key:"closeOtherTabs",value:function(t){var e=this;new Ee(this.translationService,this.translationService.translate("yasgui.tab_list.close_tab.confirmation.title"),this.getCloseTabsWarningMessage(this.getOngoingRequestsInfo(t)),(function(){for(var n,r=0,i=Object.keys(e._tabs);r<i.length;r++){var o=i[r];o!==t&&(null===(n=e.getTab(o))||void 0===n||n.close(!1))}})).open()}},{key:"getCloseTabsWarningMessage",value:function(t){var e="yasgui.tab_list.close_other_tabs.confirmation.";e+=!t||t.queriesCount<1?"none_queries_":1===t.queriesCount?"one_query_":"queries_",e+=t.updatesCount&&0!==t.updatesCount?1===t.updatesCount?"one_update":"updates":"non_updates",e+=".message";var n=[{key:"queriesCount",value:"".concat(t.queriesCount)},{key:"updatesCount",value:"".concat(t.updatesCount)}];return this.translationService.translate(e,n)}},{key:"getOngoingRequestsInfo",value:function(t){return Object.values(this._tabs).reduce((function(e,n){if(t&&t===n.getId())return e;var r=n.getYasqe();return r&&r.hasOngoingRequest()&&(e["query"===r.getQueryMode()?"queriesCount":"updatesCount"]+=1),e}),{queriesCount:0,updatesCount:0})}},{key:"tabConfigEquals",value:function(t,e){var n,r,i,o,a,s=!0;for(a in t.requestConfig)t.requestConfig[a]&&(w(e.requestConfig[a],t.requestConfig[a])||(s=!1));return s&&(s=["endpoint","value"].every((function(n){return t.yasqe[n]===e.yasqe[n]}))),s&&(s=t.yasr.settings.selectedPlugin===e.yasr.settings.selectedPlugin&&w(null===(n=t.yasr.settings.pluginsConfig)||void 0===n?void 0:n[(null===(r=t.yasr.settings)||void 0===r?void 0:r.selectedPlugin)||""],null===(i=e.yasr.settings.pluginsConfig)||void 0===i?void 0:i[(null===(o=e.yasr.settings)||void 0===o?void 0:o.selectedPlugin)||""])),s&&t.name===e.name}},{key:"findTabIdForConfig",value:function(t){var e=this;return this.persistentConfig.getTabs().find((function(n){var r=e.persistentConfig.getTab(n);return e.tabConfigEquals(r,t)}))}},{key:"_registerTabListeners",value:function(t){var e=this;t.on("change",(function(t){e.emit("tabChange",e,t),e.emit("yasqeReady",t,t.getYasqe())})),t.on("yasqeReady",(function(t,n){return e.emit("yasqeReady",t,n)})),t.on("openNewTab",(function(){return e.addTab(!0)})),t.on("openNextTab",(function(t){return e.openNextTab(t)})),t.on("openPreviousTab",(function(t){return e.openPreviousTab(t)})),t.on("closeOtherTabs",(function(t){return e.closeOtherTabs(t.getId())})),t.on("query",(function(t){return e.emit("query",e,t)})),t.on("queryAbort",(function(t){return e.emit("queryAbort",e,t)})),t.on("queryResponse",(function(t){return e.emit("queryResponse",e,t)})),t.on("autocompletionShown",(function(t,n){return e.emit("autocompletionShown",e,t,n)})),t.on("autocompletionClose",(function(t){return e.emit("autocompletionClose",e,t)})),t.on("queryStatus",(function(t,n){return e.emit("queryStatus",t,n)}))}},{key:"openNextTab",value:function(t){var e=this.getNextTabId(t);e&&this.selectTabId(e)}},{key:"openPreviousTab",value:function(t){var e=this.getPreviousTabId(t);e&&this.selectTabId(e)}},{key:"getNextTabId",value:function(t){var e=Object.keys(this._tabs),n=e.indexOf(t.getId())+1;return e[n]}},{key:"getPreviousTabId",value:function(t){var e=Object.keys(this._tabs),n=e.indexOf(t.getId())-1;return e[n]}},{key:"_setPanel",value:function(t,e){for(var n in this._tabs)n!==t&&this._tabs[n].hide();this.tabPanelsEl.appendChild(e)}},{key:"_removePanel",value:function(t){t&&this.tabPanelsEl.removeChild(t)}},{key:"emitInternalEvent",value:function(t,e){return this.eventService.emitEvent(this.rootEl,t,e)}},{key:"isQueryRunning",value:function(){var t=!1;return this._tabs&&Object.values(this._tabs).forEach((function(e){var n;(null===(n=e.getYasqe())||void 0===n?void 0:n.isQueryRunning())&&(t=!0)})),t}},{key:"addTab",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object(g.a)({},xe.getDefaults(this),e);if(i.id&&this.getTab(i.id))throw new Error("Duplicate tab ID");if(this.config.copyEndpointOnNewTab&&!(null===(n=null==e?void 0:e.requestConfig)||void 0===n?void 0:n.endpoint)){var o=this.getTab();o&&(i.requestConfig.endpoint=o.getEndpoint())}if(r.avoidDuplicateTabs){var a=this.findTabIdForConfig(i);if(a)return this.selectTabId(a)}var s=i.id,u=r.atIndex;return this.persistentConfig.addToTabList(s,u),this.emit("tabAdd",this,s),this._tabs[s]=new xe(this,i),this.emit("tabChange",this,this._tabs[s]),this.tabElements.addTab(s,u),this._registerTabListeners(this._tabs[s]),t&&(this.persistentConfig.setActive(s),this._tabs[s].show(),this.emit("yasqeReady",this._tabs[s],this._tabs[s].getYasqe())),this._tabs[s]}},{key:"emitTabChange",value:function(t){this.emit("tabChange",this,t)}},{key:"restoreLastTab",value:function(){var t=this.persistentConfig.retrieveLastClosedTab();t&&this.addTab(!0,t.tab,{atIndex:t.index})}},{key:"destroy",value:function(){for(var t in this.removeAllListeners(),this.tabElements.destroy(),this._tabs)this._tabs[t].destroy();for(this._tabs={};this.rootEl.firstChild;)this.rootEl.firstChild.remove()}}]),n}(b.EventEmitter);function Pe(){return Math.random().toString(36).substring(7)}ke.Tab=xe,ke.linkUtils=r,ke.Yasr=A.default,ke.Yasqe=N.default,ke.defaults={translationService:I.f.INSTANCE,notificationMessageService:I.b.INSTANCE,timeFormattingService:I.e.INSTANCE,eventService:I.a.INSTANCE,pageNumber:1,autofocus:!0,endpointInfo:void 0,persistenceId:function(t){var e="",n=t.rootEl;for(n.id&&(e=n.id);n&&n!==document;n=n.parentNode)if(n){n.id&&(e=n.id);break}return"yagui_"+e},defaultTabNameLabelKey:"yasgui.tab_list.tab.default.name",corsProxy:void 0,persistencyExpire:2592e3,persistenceLabelResponse:"response",persistenceLabelConfig:"config",yasqe:N.default.defaults,yasr:A.default.defaults,endpointCatalogueOptions:{getData:function(){return[{endpoint:"https://dbpedia.org/sparql"},{endpoint:"https://query.wikidata.org/bigdata/namespace/wdq/sparql"}]},keys:[],renderItem:function(t,e){var n,r=document.createElement("div");r.style.display="flex",r.style.flexDirection="column";var i=document.createElement("span");i.innerHTML=(null===(n=t.matches.endpoint)||void 0===n?void 0:n.reduce((function(t,e){return e.highlight?t+e.text.bold():t+e.text}),""))||"",r.appendChild(i),e.appendChild(r)}},copyEndpointOnNewTab:!0,populateFromUrl:!0,autoAddOnInit:!0,requestConfig:N.default.defaults.requestConfig,contextMenuContainer:void 0,clearState:!1},ke.corsEnabled={};var De=e.default=ke},function(t,e,n){var r=n(31),i=n(58),o=n(29),a=n(26),s=function(t,e){return t&&Object(o.a)(e,Object(a.a)(e),t)},u=n(35),l=function(t,e){return t&&Object(o.a)(e,Object(u.a)(e),t)},c=n(67),f=n(66),d=n(60),h=function(t,e){return Object(o.a)(t,Object(d.a)(t),e)},p=n(76),v=n(49),b=n(91),g=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Object(p.a)(e,Object(d.a)(t)),t=Object(v.a)(t);return e}:b.a,m=function(t,e){return Object(o.a)(t,g(t),e)},y=n(79),E=n(90),x=function(t){return Object(E.a)(t,u.a,g)},T=n(27),_=Object.prototype.hasOwnProperty,S=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&_.call(t,"index")&&(n.index=t.index,n.input=t.input),n},w=n(54),A=/\w*$/,N=n(13),I=N.a?N.a.prototype:void 0,C=I?I.valueOf:void 0,L=n(68),R=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Object(w.a)(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return function(t,e){var n=e?Object(w.a)(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Object(L.a)(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,A.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Symbol]":return function(t){return C?Object(C.call(t)):{}}(t)}},O=n(71),k=n(6),P=n(22),D=n(9),M=n(53),j=n(32),q=j.a&&j.a.isMap,F=q?Object(M.a)(q):function(t){return Object(D.a)(t)&&"[object Map]"==Object(T.a)(t)},U=n(5),G=j.a&&j.a.isSet,B=G?Object(M.a)(G):function(t){return Object(D.a)(t)&&"[object Set]"==Object(T.a)(t)},V={};V["[object Arguments]"]=V["[object Array]"]=V["[object ArrayBuffer]"]=V["[object DataView]"]=V["[object Boolean]"]=V["[object Date]"]=V["[object Float32Array]"]=V["[object Float64Array]"]=V["[object Int8Array]"]=V["[object Int16Array]"]=V["[object Int32Array]"]=V["[object Map]"]=V["[object Number]"]=V["[object Object]"]=V["[object RegExp]"]=V["[object Set]"]=V["[object String]"]=V["[object Symbol]"]=V["[object Uint8Array]"]=V["[object Uint8ClampedArray]"]=V["[object Uint16Array]"]=V["[object Uint32Array]"]=!0,V["[object Error]"]=V["[object Function]"]=V["[object WeakMap]"]=!1;var H=function t(e,n,o,u,d,p){var v,b=1&n,g=2&n,E=4&n;if(o&&(v=d?o(e,u,d,p):o(e)),void 0!==v)return v;if(!Object(U.a)(e))return e;var _=Object(k.a)(e);if(_){if(v=S(e),!b)return Object(f.a)(e,v)}else{var w=Object(T.a)(e),A="[object Function]"==w||"[object GeneratorFunction]"==w;if(Object(P.a)(e))return Object(c.a)(e,b);if("[object Object]"==w||"[object Arguments]"==w||A&&!d){if(v=g||A?{}:Object(O.a)(e),!b)return g?m(e,l(v,e)):h(e,s(v,e))}else{if(!V[w])return d?e:{};v=R(e,w,b)}}p||(p=new r.a);var N=p.get(e);if(N)return N;p.set(e,v),B(e)?e.forEach((function(r){v.add(t(r,n,o,r,e,p))})):F(e)&&e.forEach((function(r,i){v.set(i,t(r,n,o,i,e,p))}));var I=E?g?x:y.a:g?keysIn:a.a,C=_?void 0:I(e);return function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n););}(C||e,(function(r,a){C&&(r=e[a=r]),Object(i.a)(v,a,t(r,n,o,a,e,p))})),v};e.a=function(t){return H(t,5)}}]).default},"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Yasgui",[],t):"object"==typeof exports?exports.Yasgui=t():e.Yasgui=t();const YASGUI_MIN_SCRIPT=()=>{console.info("YASGUI was imported")};class OntotextYasgui{constructor(t,e){this.yasgui=t,this.config=e,this.init()}refresh(){this.yasgui.getTab().show()}init(){this.config.yasqeConfig.initialQuery&&this.setQuery(this.config.yasqeConfig.initialQuery)}registerYasqeEventListener(t,e){this.yasgui.getTab().yasqe.on(t,((...t)=>{e(t)}))}getYasqe(){var t;return null===(t=this.yasgui)||void 0===t?void 0:t.getTab().getYasqe()}leaveFullScreen(){var t;null===(t=this.getYasqe())||void 0===t||t.leaveFullScreen()}setQuery(t){const e=this.yasgui.getTab().getYasqe(),n=e.getDoc().getCursor(),r=e.getDoc().lastLine(),i=e.getDoc().getLine(r).length;e.getDoc().replaceRange(t,{line:0,ch:0},{line:r,ch:i}),e.getDoc().setCursor(n)}query(){return this.yasgui.getTab().getYasqe().query()}getOngoingRequestsInfo(){return this.getInstance().getOngoingRequestsInfo()}abortQuery(){this.yasgui.getTab().getYasqe().abortQuery()}abortAllRequests(){Object.values(this.yasgui._tabs).forEach((t=>{const e=t.getYasqe();e&&e.abortQuery()}))}reInitYasgui(t){this.yasgui.reInitYasgui(t,this.config)}getQuery(){return this.yasgui.getTab().getYasqe().getValue()}saveQuery(){this.getInstance().getTab().getYasqe().emit("blur")}isQueryDirty(){return!this.getYasqe().getDoc().isClean()}isQueryValid(){return this.yasgui.getTab().getYasqe().queryValid}getQueryMode(){return this.yasgui.getTab().getYasqe().getQueryMode()}getQueryType(){return this.yasgui.getTab().getYasqe().getQueryType()}getEmbeddedResultAsJson(){return this.yasgui.getTab().getYasr().results.getAsJson()}getEmbeddedResultAsCSV(){return this.yasgui.getTab().getYasr().results.asCsv()}getConfig(){return this.config}setConfig(t){this.config=t}getInstance(){return this.yasgui}setInstance(t){this.yasgui=t}getTab(t){return this.getInstance().getTab(t)}getTabId(){return this.getInstance().getTab().getId()}getTabName(){return this.getInstance().getTab().getName()}getTabQuery(){return this.getInstance().getTab().getQuery()}openTab(t){const e=this.getInstance().getTabByNameAndQuery(null==t?void 0:t.queryName,null==t?void 0:t.query);return e?(this.getInstance().selectTabId(e.getId()),e):this.createNewTab(null==t?void 0:t.queryName,null==t?void 0:t.query)}createNewTab(t,e){const n=this.getInstance().addTab(!0,{name:t});return e&&n.setQuery(e),n}getEditorHeight(t){const e=this.getInstance().getTab(t).persistentJson.yasqe.editorHeight;return e?parseInt(e.replace("px",""),10):300}destroy(){this.yasgui&&(this.yasgui.destroy(),this.yasgui=null,localStorage.removeItem("yasqe__query"))}}class HtmlElementsUtil{static getOntotextYasgui(t){return t.querySelector(".ontotext-yasgui")}static getRenderModeButton(t,e){return t.querySelector(`.btn-${e}`)}static getOrientationButton(t){return t.querySelector(".btn-orientation")}static getToolbar(t){return t.querySelector(".yasgui-toolbar")}static getControlBar(t){return t.querySelector(".yasgui .controlbar")}static toggleHiddenByCondition(t,e,n){HtmlElementsUtil.toggleClassByCondition(t,e,"hidden",n)}static toggleClassByCondition(t,e,n,r){e.forEach((e=>{const i=t.querySelector(e);i&&i.classList.toggle(n,r())}))}static createAutocompleteHintElement(t){const e=document.createElement("span");return e.innerHTML=t,e.style.fontSize="12px",e.style.color="gray",e.style.backgroundColor="white",e.style.position="absolute",e.style.zIndex="3",e.style.paddingLeft="6px",e}}class YasguiBuilder{build(t,e){const n=this.createYasguiInstance(t,e);return this.instance=new OntotextYasgui(n,e),this.instance}getInstance(){return this.instance}createYasguiInstance(t,e){return new Yasgui(HtmlElementsUtil.getOntotextYasgui(t),e.yasguiConfig)}}class VisualisationUtils{static setYasqeFullHeight(t,e,n){const r=()=>document.querySelector(".yasgui .tabPanel.active .CodeMirror");t===RenderingMode.YASQE||e===Orientation.HORIZONTAL?setTimeout((()=>{const t=r();if(t){let e=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0)-r().getBoundingClientRect().top;e-=40,t.style.setProperty("height",e+"px")}})):setTimeout((()=>{const t=r();t&&t.style.setProperty("height",n+"px")}))}static changeRenderMode(t,e,n,r){VisualisationUtils.unselectAllToolbarButtons(t);const i=HtmlElementsUtil.getRenderModeButton(t,e);i&&i.classList.add("btn-selected");const o=Object.values(RenderingMode);t.classList.remove(...o),t.classList.add(e),this.setYasqeFullHeight(e,this.resolveOrientation(n),r)}static toggleLayoutOrientationButton(t,e){const n=HtmlElementsUtil.getOrientationButton(t);Orientation.HORIZONTAL===e?n.classList.add("icon-rotate-quarter"):n.classList.remove("icon-rotate-quarter")}static toggleLayoutOrientation(t,e,n,r){const i=this.resolveOrientation(e),o=Object.values(Orientation);t.classList.remove(...o),t.classList.add(i),this.setYasqeFullHeight(n,i,r),VisualisationUtils.toggleLayoutOrientationButton(t,i)}static resolveOrientation(t){return t?Orientation.VERTICAL:Orientation.HORIZONTAL}static unselectAllToolbarButtons(t){t.querySelectorAll(".yasgui-btn").forEach((t=>{t.classList.remove("btn-selected")}))}}class OntotextYasguiService{constructor(t){this.translationService=t.get(TranslationService)}postConstruct(t,e){OntotextYasguiService.initEditorTabs(t,e),OntotextYasguiService.initControlBar(t,e),OntotextYasguiService.initResultTabs(t,e),OntotextYasguiService.initResultInfo(t,e),OntotextYasguiService.initButtonsStyling(t,e),this.updateTranslation(e)}updateTranslation(t){t.i18n&&this.translationService.addTranslations(t.i18n)}static initEditorTabs(t,e){e.showEditorTabs?t.classList.remove("hidden-editor-tabs"):t.classList.add("hidden-editor-tabs")}static initControlBar(t,e){const n=HtmlElementsUtil.getOntotextYasgui(t);e.showControlBar?n.classList.remove("hidden-control-bar"):n.classList.add("hidden-control-bar")}static initResultTabs(t,e){HtmlElementsUtil.toggleHiddenByCondition(t,[".select_extended_table",".select_extended_response",".select_charts",".select_pivot-table-plugin"],(()=>!e.showResultTabs))}static initResultInfo(t,e){HtmlElementsUtil.toggleHiddenByCondition(t,[".yasr_response_chip","#yasr_plugin_control"],(()=>!e.yasguiConfig.yasr.showResultInfo))}static initButtonsStyling(t,e){VisualisationUtils.changeRenderMode(t,e.render,e.orientation===Orientation.VERTICAL),VisualisationUtils.toggleLayoutOrientationButton(t,e.orientation),e.showToolbar?HtmlElementsUtil.getToolbar(t).classList.remove("hidden"):HtmlElementsUtil.getToolbar(t).classList.add("hidden")}}class ServiceFactory{constructor(t){this.instances=new Map,this.hostElement=t}get(t){return this.instances.has(t.name)||this.instances.set(t.name,new t(this)),this.instances.get(t.name)}getEventService(){if(!this.instances.has(EventService.name)){const t=new EventService;t.hostElement=this.hostElement,this.instances.set(EventService.name,t)}return this.instances.get(EventService.name)}}class TooltipService{static addTooltip(t,e,n,r=!0){const i=document.createElement("yasgui-tooltip"),o=t.parentElement;return o&&o.replaceChild(i,t),i.appendChild(t),TooltipService.updateTooltipData(i,e),TooltipService.updatePlacement(i,n),i.setAttribute("show-on-click",`${r}`),i}static updateTooltip(t,e,n){const r=null==t?void 0:t.parentElement;r&&"yasgui-tooltip"===r.tagName.toLowerCase()&&(TooltipService.updateTooltipData(r,e),TooltipService.updatePlacement(r,n))}static updateTooltipData(t,e){e&&(t.setAttribute("data-tooltip",e),t.setAttribute("aria-label",e))}static updatePlacement(t,e){e&&t.setAttribute("placement",e)}}class InternalShareQueryEvent{constructor(){this.TYPE=InternalEventType.INTERNAL_SHARE_QUERY_EVENT}}class InternalShowSavedQueriesEvent{constructor(t){this.buttonInstance=t,this.TYPE=InternalEventType.INTERNAL_SHOW_SAVED_QUERIES_EVENT,this.payload={buttonInstance:t}}}const YasqeButtonName={CREATE_SAVED_QUERY:"createSavedQuery",SHOW_SAVED_QUERIES:"showSavedQueries",SHARE_QUERY:"shareQuery",EXPANDS_RESULTS:"expandResults",INFER_STATEMENTS:"inferStatements"};class InternalCreateSavedQueryEvent{constructor(){this.TYPE=InternalEventType.INTERNAL_CREATE_SAVED_QUERY_EVENT}}class YasqeService{constructor(t){this.buttonBuilders=new Map,this.yasguiBuilder=t.get(YasguiBuilder),this.eventService=t.getEventService(),YasqeService.initPluginButtonNameToClassNameMapping(),this.translationService=t.get(TranslationService),this.translationService.subscribeForLanguageChange({name:"YasqeServiceLanguageChangeObserver",notify:t=>this.onLanguageChange(t)}),this.buttonBuilders.set(YasqeButtonName.CREATE_SAVED_QUERY,(()=>this.buildCreateSaveQueryButton())),this.buttonBuilders.set(YasqeButtonName.SHOW_SAVED_QUERIES,(()=>this.buildShowSavedQueriesButton())),this.buttonBuilders.set(YasqeButtonName.SHARE_QUERY,(()=>this.buildShareQueryButton())),this.buttonBuilders.set("includeInferredStatements",((t,e)=>this.buildInferAndSameAsButtons(t,e)))}onLanguageChange(t){let e=document.querySelector(`.${YasqeService.getActionButtonClassName(YasqeButtonName.CREATE_SAVED_QUERY)}`),n=this.translationService.translate("yasqe.actions.save_query.button.tooltip");TooltipService.updateTooltip(e,n),e=document.querySelector(`.${YasqeService.getActionButtonClassName(YasqeButtonName.SHOW_SAVED_QUERIES)}`),n=this.translationService.translate("yasqe.actions.show_saved_queries.button.tooltip"),TooltipService.updateTooltip(e,n),e=document.querySelector(`.${YasqeService.getActionButtonClassName(YasqeButtonName.SHARE_QUERY)}`),n=this.translationService.translate("yasqe.actions.share_query.button.tooltip"),TooltipService.updateTooltip(e,n);const r=this.yasguiBuilder.getInstance(),i=null==r?void 0:r.getYasqe();if(r&&i){const t=i.getInfer(),e=i.getSameAs(),n=document.querySelector(`.${YasqeService.getActionButtonClassName(YasqeButtonName.EXPANDS_RESULTS)}`),r=null==n?void 0:n.parentElement,o=document.querySelector(`.${YasqeService.getActionButtonClassName(YasqeButtonName.INFER_STATEMENTS)}`),a=null==o?void 0:o.parentElement;r&&a&&(this.updateInferredElement(a,r,t,e),this.updateSameAsElement(r,e,t))}}static initPluginButtonNameToClassNameMapping(){YasqeService.pluginButtonNameToClassNameMapping=new Map,YasqeService.pluginButtonNameToClassNameMapping.set(YasqeButtonName.CREATE_SAVED_QUERY,`yasqe_${YasqeButtonName.CREATE_SAVED_QUERY}Button`),YasqeService.pluginButtonNameToClassNameMapping.set(YasqeButtonName.SHOW_SAVED_QUERIES,`yasqe_${YasqeButtonName.SHOW_SAVED_QUERIES}Button`),YasqeService.pluginButtonNameToClassNameMapping.set(YasqeButtonName.SHARE_QUERY,`yasqe_${YasqeButtonName.SHARE_QUERY}Button`),YasqeService.pluginButtonNameToClassNameMapping.set(YasqeButtonName.EXPANDS_RESULTS,`yasqe_${YasqeButtonName.EXPANDS_RESULTS}Button`),YasqeService.pluginButtonNameToClassNameMapping.set(YasqeButtonName.INFER_STATEMENTS,`yasqe_${YasqeButtonName.INFER_STATEMENTS}Button`)}static getActionButtonClassName(t){if(this.pluginButtonNameToClassNameMapping.has(t))return this.pluginButtonNameToClassNameMapping.get(t);console.log(`The YASQE action with name: ${t} doesn't exist!`)}static hideActionButton(t){const e=document.querySelector(`.${YasqeService.getActionButtonClassName(t)}`);e&&e.classList.add("hidden")}static hideYasqeActionButtons(t){(Array.isArray(t)?t:[t]).forEach((t=>YasqeService.hideActionButton(t)))}static showActionButton(t){const e=document.querySelector(`.${YasqeService.getActionButtonClassName(t)}`);e&&e.classList.remove("hidden")}static showYasqeActionButtons(t){(Array.isArray(t)?t:[t]).forEach((t=>YasqeService.showActionButton(t)))}getButtonInstance(t,e,n){if(!this.buttonBuilders.has(t.name))throw Error(`No yasqe button builder was found for ${t.name}`);return this.buttonBuilders.get(t.name)(e,n)}buildShowSavedQueriesButton(){const t=document.createElement("button");t.className=`${YasqeService.getActionButtonClassName(YasqeButtonName.SHOW_SAVED_QUERIES)} custom-button icon-folder`,t.addEventListener("click",(()=>{this.eventService.emit(new InternalShowSavedQueriesEvent(t))}));const e=this.translationService.translate("yasqe.actions.show_saved_queries.button.tooltip");return TooltipService.addTooltip(t,e)}buildCreateSaveQueryButton(){const t=document.createElement("button");t.className=`${YasqeService.getActionButtonClassName(YasqeButtonName.CREATE_SAVED_QUERY)} custom-button icon-save`,t.addEventListener("click",(()=>this.eventService.emit(new InternalCreateSavedQueryEvent)));const e=this.translationService.translate("yasqe.actions.save_query.button.tooltip");return TooltipService.addTooltip(t,e)}buildShareQueryButton(){const t=document.createElement("button");t.className=`${YasqeService.getActionButtonClassName(YasqeButtonName.SHARE_QUERY)} custom-button icon-link`,t.addEventListener("click",(()=>this.eventService.emit(new InternalShareQueryEvent)));const e=this.translationService.translate("yasqe.actions.share_query.button.tooltip");return TooltipService.addTooltip(t,e)}buildInferAndSameAsButtons(t,e){this.initInferAndSameAsState(e,t.yasguiConfig);const n=e.getInfer(),r=e.getSameAs(),i=this.createSameAsElement(e,t.yasguiConfig.immutableSameAs),o=this.createInferredElement(e,i,t.yasguiConfig.immutableInfer);return this.updateInferredElement(o,i,n,r),this.updateSameAsElement(i,r,n),[o,i]}createInferredElement(t,e,n){const r=document.createElement("button"),i=TooltipService.addTooltip(r,void 0,"top");return r.className=`${YasqeService.getActionButtonClassName(YasqeButtonName.INFER_STATEMENTS)} custom-button`,n?r.setAttribute("disabled",""):r.addEventListener("click",(()=>{const n=!t.getInfer();t.setInfer(n);const r=n;t.setSameAs(r),this.updateInferredElement(i,e,n,r)})),i}createSameAsElement(t,e){const n=document.createElement("button"),r=TooltipService.addTooltip(n,void 0,"top");return n.className=`${YasqeService.getActionButtonClassName(YasqeButtonName.EXPANDS_RESULTS)} custom-button`,e?n.setAttribute("disabled",""):n.addEventListener("click",(e=>{if(n.classList.contains("disabled"))return void e.preventDefault();const i=!t.getSameAs(),o=t.getInfer();t.setSameAs(i),this.updateSameAsElement(r,i,o)})),r}updateSameAsElement(t,e,n){const r=t.querySelector("button");TooltipService.updateTooltip(r,this.translationService.translate(n?`yasqe.actions.expand_results_same_as.${e}.button.tooltip`:"yasqe.actions.expand_results_same_as.disable.button.tooltip")),r.classList.remove("icon-same-as-on","icon-same-as-off","disabled"),r.classList.add(e?"icon-same-as-on":"icon-same-as-off"),n||r.classList.add("disabled")}updateInferredElement(t,e,n,r){const i=t.querySelector("button"),o=this.translationService.translate(`yasqe.actions.include_inferred.${n}.button.tooltip`);TooltipService.updateTooltip(i,o),i.classList.remove("icon-inferred-on","icon-inferred-off"),i.classList.add(n?"icon-inferred-on":"icon-inferred-off"),this.updateSameAsElement(e,r,n)}initInferAndSameAsState(t,e){let n,r;e.clearState?(n=e.infer,r=e.sameAs):(n=void 0!==t.getInfer()?t.getInfer():e.infer,r=void 0!==t.getSameAs()?t.getSameAs():e.sameAs),t.setInfer(n),t.setSameAs(n&&r)}}class SparqlUtils{static uriToPrefixWithLocalName(t,e){for(const n in e){const r=e[n];if(0==t.indexOf(r))return n+":"+t.substring(r.length)}return t}static mapPrefixesToNamespaces(t){return Object.keys(t).reduce(((e,n)=>(e[t[n]]=n,e)),{})}}class YasrService{static registerPlugin(t,e,n=!0){Yasr.registerPlugin(t,e,n)}static getPluginsConfigurations(t){const e=new Map;return this.addExtendedTableConfiguration(t,e),this.addTableConfiguration(t,e),e}static addTableConfiguration(t,e){e.set("table",{maxResizableResultsColumns:t.maxResizableResultsColumns?t.maxResizableResultsColumns:19})}static addExtendedTableConfiguration(t,e){const n={getCellContent:t.getCellContent?t.getCellContent:YasrService.getCellContent().bind(this)};e.set("extended_table",n)}static getCellContent(){const t=window.location.href.includes(YasrService.SHACL_GRAPH_URL),e=window.location.origin+"/resource/",n=new CellContentContext(t,e);return(t,e)=>(n.setPrefixes(e),this.toCellContent(t,n))}static toCellContent(t,e){return"uri"===t.type?YasrService.getUriCellContent(t,e):"triple"===t.type?YasrService.getTripleCellContent(t,e):YasrService.getLiteralCellContent(t)}static getUriCellContent(t,e){const n=t.value;if(!e.hasElement(n)){const r=`<div class="uri-cell" lang="${this.getLang(t,"xx")}"><a title="${n}" class="uri-link" href="${this.getHref(n,e)}">${YasrService.addWordBreakToIRIs(e.getShortUri(n))}</a><copy-resource-link-button title="${n}" class="resource-copy-link" uri="${n}"></copy-resource-link-button><span class="spacer"></span></div>`;e.setElement(n,r)}return e.getElement(n)}static getHref(t,e){let n;return n=e.isOntotextResource(t)?t:"resource?uri="+encodeURIComponent(t),e.isShacl()&&(n+=YasrService.SHACL_GRAPH_URL_CONTEXT_PARAMETER),this.replaceSingleQuote(n)}static getTripleCellContent(t,e){const n=this.getValueAsString(t,!1),r=`resource?triple=${this.replaceSingleQuote(encodeURIComponent(n))}`,i=HtmlUtil.escapeHTMLEntities(n);return`<div class="triple-cell"><div class="triple-open-link"><a title="${i}" class="triple-link" href="${r}">${YasrService.ESCAPED_HTML_DOUBLE_LOWER}</a><copy-resource-link-button title="${i}" class="resource-copy-link" uri="${i}"></copy-resource-link-button><span class="spacer"></span></div><div class="triple-list"><div>${this.toCellContent(t.value.s,e)}</div><div>${this.toCellContent(t.value.p,e)}</div><div>${this.toCellContent(t.value.o,e)}</div></div><div class="triple-close-link"><a title="${i}" class="triple-link triple-link-end" href="${r}">${YasrService.ESCAPED_HTML_DOUBLE_GREATER}</a><copy-resource-link-button title="${i}" class="resource-copy-link" uri="${i}"></copy-resource-link-button><span class="spacer"></span></div></div>`}static replaceSingleQuote(t){return t.replace(/'/g,"&#39;")}static getValueAsString(t,e){return"uri"===t.type?`<${t.value}>`:"triple"===t.type?`<<${this.getValueAsString(t.value.s,e)} ${this.getValueAsString(t.value.p,e)} ${this.getValueAsString(t.value.o,e)}>>`:this.getLiteralAsString(t,e)}static getLiteralCellContent(t){return`<div lang="${YasrService.getLang(t,"xx")}" class="literal-cell"><p class="nonUri">${this.getLiteralAsString(t,!0)}</p></div>`}static getLiteralAsString(t,e){if(this.isExplainResponse(t))return this.getExplainPlanQueryResponse(t,e);if("bnode"==t.type)return YasrService.addWordBreakToLiterals(`_:${HtmlUtil.escapeHTMLEntities(t.value)}`);const n=HtmlUtil.escapeHTMLEntities(t.value);if(t["xml:lang"])return YasrService.addWordBreakToLiterals(`"${n}"${e?"<sup>":""}@${t["xml:lang"]}${e?"</sup>":""}`);if(t.lang)return YasrService.addWordBreakToLiterals(`"${n}"${e?"<sup>":""}@${t.lang}${e?"</sup>":""}`);if(t.datatype&&YasrService.XML_SCHEMA_NS_STRING!==t.datatype){let r=t.datatype;return r=e&&0===r.indexOf(YasrService.XML_SCHEMA_NS)?`xsd:${r.substring(YasrService.XML_SCHEMA_NS.length)}`:e?`&lt;${r}&gt;`:`<${r}>`,YasrService.addWordBreakToLiterals(`"${n}"${e?"<sup>":""}^^${r}${e?"</sup>":""}`)}return YasrService.addWordBreakToLiterals(n.startsWith('"')?n:`"${n}"`)}static isExplainResponse(t){return"literal"===t.type&&t.value.includes("# NOTE: Optimization groups")}static getExplainPlanQueryResponse(t,e){const n=HtmlUtil.escapeHTMLEntities(t.value);return e?`<div id="explainPlanQuery" class="cm-s-default">${n}</div>`:n.startsWith('"')?n:`"${n}"`}static addWorldBreakTagAfterSpecialCharacters(t){return t.replace(/([_:/-](?![_:/-]|sup>))/g,"$1<wbr>")}static addWorldBreakTagBeforeSpecialCharacters(t){return t.replace(/(\^\^)/g,"<wbr>$1")}static addWordBreakToIRIs(t){return YasrService.addWorldBreakTagAfterSpecialCharacters(t)}static addWordBreakToLiterals(t){const e=this.addWorldBreakTagBeforeSpecialCharacters(t);return YasrService.addWorldBreakTagAfterSpecialCharacters(e)}static getLang(t,e){return t["xml:lang"]?t["xml:lang"]:t.lang?t.lang:e}}YasrService.SHACL_GRAPH_URL="http:%2F%2Frdf4j.org%2Fschema%2Frdf4j%23SHACLShapeGraph",YasrService.XML_SCHEMA_NS="http://www.w3.org/2001/XMLSchema#",YasrService.XML_SCHEMA_NS_STRING=YasrService.XML_SCHEMA_NS+"string",YasrService.ESCAPED_HTML_DOUBLE_LOWER="&lt;&lt;",YasrService.ESCAPED_HTML_DOUBLE_GREATER="&gt;&gt";class CellContentContext{constructor(t,e){this.uriToCellElementMapping=new Map,this.fullUriToShortUri=new Map,this.prefixes={},this.shacl=t,this.ontotextResourceLocation=e}setPrefixes(t={}){this.prefixes=t}getShortUri(t){return this.fullUriToShortUri.has(t)||this.fullUriToShortUri.set(t,SparqlUtils.uriToPrefixWithLocalName(t,this.prefixes)),this.fullUriToShortUri.get(t)}hasElement(t){return this.uriToCellElementMapping.has(t)}getElement(t){return this.uriToCellElementMapping.get(t)}setElement(t,e){this.uriToCellElementMapping.set(t,e)}isOntotextResource(t){return 0===t.indexOf(this.ontotextResourceLocation)&&t.length>this.ontotextResourceLocation.length}isShacl(){return this.shacl}}class NamespaceService{static namespacesMapToArray(t){if(!t)return[];let e=!1;const n=Object.keys(t).map((n=>("onto"===n&&(e=!0),`${n}: <${t[n]}>`)));return e||n.push("onto: <http://www.ontotext.com/>"),n.sort(),n}}class KeyboardShortcutDescription{constructor(){this.keyboardShortcuts=[]}}var KeyboardShortcutName,EXPLAIN_PLAN_TYPE,IndentSelection;!function(t){t.TRIGGER_AUTOCOMPLETION="trigger_autocompletion",t.DELETE_CURRENT_LINE="delete_current_line",t.COMMENT_SELECTED_LINE="comment_selected_line",t.COPY_LINE_DOWN="copy_line_down",t.COPY_LINE_UP="copy_line_up",t.AUTO_FORMAT_SELECTED_LINE="auto_format_selected_line",t.INDENT_CURRENT_LINE_MORE="indent_current_line_more",t.INDENT_CURRENT_LINE_LESS="indent_current_line_less",t.EXECUTE_QUERY_OR_UPDATE="execute_query_or_update",t.EXECUTE_EXPLAIN_PLAN_FOR_QUERY="execute_explain_plan_for_query",t.EXECUTE_CHAT_GPT_EXPLAIN_PLAN_FOR_QUERY="execute_chat_gpt_explain_plan_for_query",t.CREATE_TAB="create_tab",t.CREATE_SAVE_QUERY="create_save_query",t.SWITCH_NEXT_TAB="switch_next_tab",t.SWITCH_PREVIOUS_TAB="switch_previous_tab",t.CLOSES_OTHER_TABS="closes_other_tabs",t.CLOSES_OTHER_TABS_BY_MOUSE_CLICK="closes_other_tabs_by_left_mouse_click",t.FULL_SCREEN="full_screen",t.ESC="esc"}(KeyboardShortcutName||(KeyboardShortcutName={})),function(t){t.EXPLAIN="explain",t.CHAT_GPT_EXPLAIN="gpt"}(EXPLAIN_PLAN_TYPE||(EXPLAIN_PLAN_TYPE={})),function(t){t.ADD="add",t.SUBTRACT="subtract"}(IndentSelection||(IndentSelection={}));class KeyboardShortcutService{static createTriggerAutocomplete(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.TRIGGER_AUTOCOMPLETION,t.keyboardShortcuts.push("Ctrl-Space"),t.keyboardShortcuts.push("Alt-Enter"),t.keyboardShortcuts.push("Cmd-Space"),t.executeFunction=t=>{t.autocomplete()},t}static createDeleteCurrentLine(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.DELETE_CURRENT_LINE,t.keyboardShortcuts.push("Ctrl-D"),t.keyboardShortcuts.push("Ctrl-K"),t.keyboardShortcuts.push("Cmd-D"),t.keyboardShortcuts.push("Cmd-K"),t.executeFunction=t=>{const e=t.getDoc().getCursor().line;return t.getDoc().replaceRange("",{ch:0,line:e},{ch:0,line:e+1})},t}static createCommentCurrentLine(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.COMMENT_SELECTED_LINE,t.keyboardShortcuts.push("Ctrl-/"),t.keyboardShortcuts.push("Cmd-/"),t.executeFunction=t=>{t.commentLines()},t}static createCopyLineDown(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.COPY_LINE_DOWN,t.keyboardShortcuts.push("Ctrl-Alt-Down"),t.keyboardShortcuts.push("Cmd-Alt-Down"),t.executeFunction=t=>{let e=t.getCursor();const n=e.ch;t.duplicateLine(),e=t.getCursor(),e.ch=n,t.setCursor(e)},t}static createCopyLineUp(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.COPY_LINE_UP,t.keyboardShortcuts.push("Ctrl-Alt-Up"),t.keyboardShortcuts.push("Cmd-Alt-Up"),t.executeFunction=t=>{let e=t.getCursor();if(!e)return;const n=t.getDoc().getLine(e.line);if(!n)return;const r=e.ch;e.line--,t.setCursor(e);const i=t.getDoc().getLine(e.line);i&&(t.getDoc().replaceRange(i+"\n"+n,{ch:0,line:e.line},{ch:i.length,line:e.line}),e=t.getCursor(),e.ch=r,t.setCursor(e))},t}static createAutoFormat(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.AUTO_FORMAT_SELECTED_LINE,t.keyboardShortcuts.push("Shift-Ctrl-F"),t.keyboardShortcuts.push("Shift-Cmd-F"),t.executeFunction=t=>{t.autoformat()},t}static createIndentMore(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.INDENT_CURRENT_LINE_MORE,t.keyboardShortcuts.push("Ctrl-]"),t.keyboardShortcuts.push("Cmd-]"),t.executeFunction=t=>{t.indentSelection(IndentSelection.ADD)},t}static createIndentLess(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.INDENT_CURRENT_LINE_LESS,t.keyboardShortcuts.push("Ctrl-["),t.keyboardShortcuts.push("Cmd-["),t.executeFunction=t=>{t.indentSelection(IndentSelection.SUBTRACT)},t}static createExecuteQuery(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.EXECUTE_QUERY_OR_UPDATE,t.keyboardShortcuts.push("Ctrl-Enter"),t.keyboardShortcuts.push("Cmd-Enter"),t.executeFunction=t=>{t.query().then().catch((()=>{}))},t}static createExecuteExplainPlanForQuery(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.EXECUTE_EXPLAIN_PLAN_FOR_QUERY,t.keyboardShortcuts.push("Shift-Ctrl-Enter"),t.keyboardShortcuts.push("Shift-Cmd-Enter"),t.executeFunction=t=>{t.query(void 0,EXPLAIN_PLAN_TYPE.EXPLAIN).catch((()=>{}))},t}static createExecuteChatGPTExplainPlanForQuery(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.EXECUTE_CHAT_GPT_EXPLAIN_PLAN_FOR_QUERY,t.keyboardShortcuts.push("Ctrl-Alt-Enter"),t.keyboardShortcuts.push("Cmd-Alt-Enter"),t.executeFunction=t=>{t.query(void 0,EXPLAIN_PLAN_TYPE.CHAT_GPT_EXPLAIN).catch((()=>{}))},t}static createCreateTab(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.CREATE_TAB,t.keyboardShortcuts.push("Ctrl-Alt-T"),t.keyboardShortcuts.push("Cmd-Alt-T"),t.executeFunction=t=>{t.emit("openNewTab")},t}static createSavedQuery(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.CREATE_SAVE_QUERY,t.keyboardShortcuts.push("Ctrl-S"),t.keyboardShortcuts.push("Cmd-S"),t.executeFunction=t=>{const e=t.getWrapperElement().querySelector(`.${YasqeService.getActionButtonClassName(YasqeButtonName.CREATE_SAVED_QUERY)}`);e&&e.click()},t}static createSwitchToNextTab(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.SWITCH_NEXT_TAB,t.keyboardShortcuts.push("Ctrl-Alt-Right"),t.keyboardShortcuts.push("Cmd-Alt-Right"),t.executeFunction=t=>{t.emit("openNextTab")},t}static createSwitchToPreviousTab(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.SWITCH_PREVIOUS_TAB,t.keyboardShortcuts.push("Ctrl-Alt-Left"),t.keyboardShortcuts.push("Cmd-Alt-Left"),t.executeFunction=t=>{t.emit("openPreviousTab")},t}static createCloseOtherTabs(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.CLOSES_OTHER_TABS,t.keyboardShortcuts.push("Shift-Ctrl-F4"),t.keyboardShortcuts.push("Cmd-Ctrl-F4"),t.executeFunction=t=>{t.emit("closeOtherTabs")},t}static createCloseOtherTabsByMouseClick(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.CLOSES_OTHER_TABS_BY_MOUSE_CLICK,t.executeFunction=()=>{},t}static createFullScreen(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.FULL_SCREEN,t.keyboardShortcuts.push("Ctrl-Alt-F"),t.keyboardShortcuts.push("Cmd-Alt-F"),t.executeFunction=t=>{t.toggleFullScreen()},t}static createEscape(){const t=new KeyboardShortcutDescription;return t.NAME=KeyboardShortcutName.ESC,t.keyboardShortcuts.push("Esc"),t.executeFunction=t=>{t.leaveFullScreen()},t}static initAllKeyboardShortcuts(){const t=new Map;return t.set(KeyboardShortcutName.TRIGGER_AUTOCOMPLETION,KeyboardShortcutService.createTriggerAutocomplete),t.set(KeyboardShortcutName.DELETE_CURRENT_LINE,KeyboardShortcutService.createDeleteCurrentLine),t.set(KeyboardShortcutName.COMMENT_SELECTED_LINE,KeyboardShortcutService.createCommentCurrentLine),t.set(KeyboardShortcutName.COPY_LINE_DOWN,KeyboardShortcutService.createCopyLineDown),t.set(KeyboardShortcutName.COPY_LINE_UP,KeyboardShortcutService.createCopyLineUp),t.set(KeyboardShortcutName.AUTO_FORMAT_SELECTED_LINE,KeyboardShortcutService.createAutoFormat),t.set(KeyboardShortcutName.INDENT_CURRENT_LINE_MORE,KeyboardShortcutService.createIndentMore),t.set(KeyboardShortcutName.INDENT_CURRENT_LINE_LESS,KeyboardShortcutService.createIndentLess),t.set(KeyboardShortcutName.EXECUTE_QUERY_OR_UPDATE,KeyboardShortcutService.createExecuteQuery),t.set(KeyboardShortcutName.EXECUTE_EXPLAIN_PLAN_FOR_QUERY,KeyboardShortcutService.createExecuteExplainPlanForQuery),t.set(KeyboardShortcutName.EXECUTE_CHAT_GPT_EXPLAIN_PLAN_FOR_QUERY,KeyboardShortcutService.createExecuteChatGPTExplainPlanForQuery),t.set(KeyboardShortcutName.CREATE_TAB,KeyboardShortcutService.createCreateTab),t.set(KeyboardShortcutName.CREATE_SAVE_QUERY,KeyboardShortcutService.createSavedQuery),t.set(KeyboardShortcutName.SWITCH_NEXT_TAB,KeyboardShortcutService.createSwitchToNextTab),t.set(KeyboardShortcutName.SWITCH_PREVIOUS_TAB,KeyboardShortcutService.createSwitchToPreviousTab),t.set(KeyboardShortcutName.CLOSES_OTHER_TABS,KeyboardShortcutService.createCloseOtherTabs),t.set(KeyboardShortcutName.CLOSES_OTHER_TABS_BY_MOUSE_CLICK,KeyboardShortcutService.createCloseOtherTabsByMouseClick),t.set(KeyboardShortcutName.FULL_SCREEN,KeyboardShortcutService.createFullScreen),t.set(KeyboardShortcutName.ESC,KeyboardShortcutService.createEscape),t}}KeyboardShortcutService.keyboardShortcutNameToFactoryFunction=KeyboardShortcutService.initAllKeyboardShortcuts(),KeyboardShortcutService.initKeyboardShortcutMapping=t=>{const e=[],n=!t.keyboardShortcutConfiguration||t.keyboardShortcutConfiguration.length<1;return KeyboardShortcutService.keyboardShortcutNameToFactoryFunction.forEach(((r,i)=>{(n||void 0===t.keyboardShortcutConfiguration[i]||t.keyboardShortcutConfiguration[i])&&e.push(r())})),e};class NotificationMessageService{constructor(t){this.eventService=t.getEventService()}info(t,e){this.notify(t,MessageType.INFO,e)}success(t,e){this.notify(t,MessageType.SUCCESS,e)}warning(t,e){this.notify(t,MessageType.WARNING,e)}error(t,e){this.notify(t,MessageType.ERROR,e)}notify(t,e,n){this.eventService.emit(new InternalNotificationMessageEvent(t,e,n))}}const getLocalNamesAutocompleter=t=>({isValidCompletionPosition:function(t){const e=t.getCursor();if(0===t.getDoc().getLine(e.line).toUpperCase().trim().indexOf("PREFIX"))return!1;const n=t.getCompleteToken();return-1!==n.state.possibleCurrent.indexOf("IRI_REF")&&0!==n.string.length&&0!==n.string.indexOf("?")},get:function(e,n){if(!n||!n.string||0===n.string.trim().length)return!1;let r;return r=n.tokenPrefix?n.tokenPrefixUri+";"+n.string.substring(n.tokenPrefix.length):n.autocompletionString.startsWith("http://")?n.autocompletionString+";":n.autocompletionString,t(r).then((t=>t&&t.suggestions?t.suggestions.map((t=>t)):[]))},preProcessToken:function(t,e){const n=t.getPrefixesFromQuery(),r=e.string;if(r.indexOf("<")<0&&(e.tokenPrefix=r.substring(0,r.indexOf(":")+1),null!=n[e.tokenPrefix.slice(0,-1)]&&(e.tokenPrefixUri=n[e.tokenPrefix.slice(0,-1)])),e.autocompletionString=r.trim(),r.indexOf("<")<0&&r.indexOf(":")>-1)for(const t in n)if(e.tokenPrefix===t+":"){e.autocompletionString=n[t],e.autocompletionString+=r.substring(t.length+1);break}return 0===e.autocompletionString.indexOf("<")&&(e.autocompletionString=e.autocompletionString.substring(1)),e.autocompletionString.indexOf(">",e.autocompletionString.length-1)>0&&(e.autocompletionString=e.autocompletionString.substring(0,e.autocompletionString.length-1)),e},postProcessSuggestion:function(t,e,n){if(e.tokenPrefix&&e.autocompletionString&&e.tokenPrefixUri)n=e.tokenPrefix+n.substring(e.tokenPrefixUri.length);else{const r=t.getPrefixesFromQuery(),i=Object.values(r).filter((t=>n.startsWith(t)));if(i.length>0){const t=Object.keys(r).find((t=>t===i[0]));n=t+":"+n.substring(r[t].length)}else{if(0===n.indexOf("<b>"+e.string))return n;if(n.startsWith("<<")&&n.endsWith(">>"))return n}}return n},async:!0,bulk:!1,autoShow:!1,name:"local-names"});var QueryType,YasqeMode;!function(t){t.SELECT="SELECT",t.CONSTRUCT="CONSTRUCT",t.ASK="ASK",t.DESCRIBE="DESCRIBE",t.INSERT="INSERT",t.DELETE="DELETE",t.LOAD="LOAD",t.CLEAR="CLEAR",t.CREATE="CREATE",t.DROP="DROP",t.COPY="COPY",t.MOVE="MOVE",t.ADD="ADD"}(QueryType||(QueryType={}));class DownloadAsYasrToolbarPlugin{constructor(t,e){this.translationService=t.get(TranslationService),this.pluginNameToPluginsConfigurations=new Map,this.pluginNameToPluginsConfigurations.set("extended_table",new ExtendedTableDownloadAsConfiguration),this.pluginNameToPluginsConfigurations.set("extended_response",new DefaultDownloadAsConfiguration("extended_response")),e&&Object.keys(e).forEach((t=>{const n=this.toDownloadAsPluginConfiguration(t,e[t]);this.pluginNameToPluginsConfigurations.set(n.getPluginName(),n)}))}createElement(t){const e=document.createElement("ontotext-download-as");return e.translationService=this.translationService,this.updateDownloadAsElementVisibility(e,t),e}updateElement(t,e){var n,r,i;if(!t)return;t.query=null===(n=e.yasqe)||void 0===n?void 0:n.getValueWithoutComments(),t.pluginName=e.getSelectedPluginName();const o=null===(r=e.yasqe)||void 0===r?void 0:r.getInfer();void 0!==o&&(t.infer=o);const a=null===(i=e.yasqe)||void 0===i?void 0:i.getSameAs();void 0!==a&&(t.sameAs=a);const s=this.pluginNameToPluginsConfigurations.get(t.pluginName);s?(t.items=s.getOptions(e),t.nameLabelKey=s.getNameLabelKey(),t.tooltipLabelKey=s.getTooltipLabelKey()):t.items=[],this.updateDownloadAsElementVisibility(t,e)}getOrder(){return 0}destroy(t){}toDownloadAsPluginConfiguration(t,e){if(e&&e.downloadAsConfig&&e.downloadAsConfig.items){const n=new DownloadAsPluginConfiguration(t,e.nameLabelKey,e.tooltipLabelKey);return n.setOptions(e.downloadAsConfig.items),n}}updateDownloadAsElementVisibility(t,e){var n,r;t.classList.add("hidden"),this.pluginNameToPluginsConfigurations.get(t.pluginName)&&(e.yasqe.isExplainPlanQuery()||(null===(r=null===(n=e.results)||void 0===n?void 0:n.getBindings())||void 0===r?void 0:r.length)&&t.classList.remove("hidden"))}}class DownloadAsPluginConfiguration{constructor(t,e,n){this.pluginName=t,this.nameLabelKey=e,this.tooltipLabelKey=n||e}getPluginName(){return this.pluginName}getNameLabelKey(){return this.nameLabelKey}getTooltipLabelKey(){return this.tooltipLabelKey}getOptions(t){return this.options?this.options[t.yasqe.getQueryType()]:[]}setOptions(t){this.options=t}}class DefaultDownloadAsConfiguration extends DownloadAsPluginConfiguration{constructor(t){super(t,"yasr.plugin_control.download_as.raw_response.dropdown.label")}getOptions(t){switch(t.yasqe.getQueryType()){case QueryType.SELECT:case QueryType.CONSTRUCT:case QueryType.DESCRIBE:return[{labelKey:"yasr.plugin_control.download_as.sparql_results_json.label",value:"application/sparql-results+json"},{labelKey:"yasr.plugin_control.download_as.csv.label",value:"text/csv"}];default:return[]}}}class ExtendedTableDownloadAsConfiguration extends DownloadAsPluginConfiguration{constructor(){super("extended_table","yasr.plugin_control.download_as.extended_table.dropdown.label")}getOptions(t){switch(t.yasqe.getQueryType()){case"SELECT":return[{labelKey:"yasr.plugin_control.download_as.sparql_results_json.label",value:"application/sparql-results+json"},{labelKey:"yasr.plugin_control.download_as.x_sparqlstar_results_json.label",value:"application/x-sparqlstar-results+json"},{labelKey:"yasr.plugin_control.download_as.sparql_results_xml.label",value:"application/sparql-results+xml"},{labelKey:"yasr.plugin_control.download_as.x_sparqlstar_results_xml.label",value:"application/x-sparqlstar-results+xml"},{labelKey:"yasr.plugin_control.download_as.csv.label",value:"text/csv"},{labelKey:"yasr.plugin_control.download_as.tab_separated_values.label",value:"text/tab-separated-values"},{labelKey:"yasr.plugin_control.download_as.x_tab_separated_values_star.label",value:"text/x-tab-separated-values-star"},{labelKey:"yasr.plugin_control.download_as.x_binary_rdf_results_table.label",value:"application/x-binary-rdf-results-table"}];case"CONSTRUCT":case"DESCRIBE":return[{labelKey:"yasr.plugin_control.download_as.sparql_results_json.label",value:"application/rdf+json"},{labelKey:"yasr.plugin_control.download_as.sparql_results_json_ld.label",value:"application/ld+json"},{labelKey:"yasr.plugin_control.download_as.sparql_results_ndjson_ld.label",value:"application/x-ld+ndjson"},{labelKey:"yasr.plugin_control.download_as.x_sparqlstar_results_rdf_xml.label",value:"application/rdf+xml"},{labelKey:"yasr.plugin_control.download_as.n3.label",value:"text/rdf+n3"},{labelKey:"yasr.plugin_control.download_as.n_triples.label",value:"text/plain"},{labelKey:"yasr.plugin_control.download_as.n_quads.label",value:"text/x-nquads"},{labelKey:"yasr.plugin_control.download_as.triple.label",value:"text/turtle"},{labelKey:"yasr.plugin_control.download_as.triple_star.label",value:"application/x-turtlestar"},{labelKey:"yasr.plugin_control.download_as.tri-x.label",value:"application/trix"},{labelKey:"yasr.plugin_control.download_as.tri-g.label",value:"application/x-trig"},{labelKey:"yasr.plugin_control.download_as.tri-g_star.label",value:"application/x-trigstar"},{labelKey:"yasr.plugin_control.download_as.binary.label",value:"application/x-binary-rdf"}];default:return[]}}}class PaginationYasrToolbarPlugin{constructor(){this.yasrIdToEventListenerMapper=new Map}createElement(t){const e=document.createElement("ontotext-pagination"),n=this.pageSelectedHandler(t);return this.yasrIdToEventListenerMapper.set(t.getTabId(),n),e.addEventListener("pageSelected",n),e}updateElement(t,e){var n,r,i,o,a,s,u,l;const c=t;c.pageNumber=null===(n=e.yasqe)||void 0===n?void 0:n.getPageNumber(),c.pageSize=null===(r=e.yasqe)||void 0===r?void 0:r.getPageSize(),c.pageElements=(null===(o=null===(i=e.results)||void 0===i?void 0:i.getBindings())||void 0===o?void 0:o.length)||0;const f=(null===(s=null===(a=e.persistentJson)||void 0===a?void 0:a.yasr.response)||void 0===s?void 0:s.totalElements)||(null===(u=e.results)||void 0===u?void 0:u.totalElements);f&&(c.totalElements=f),c.hasMorePages=null===(l=e.results)||void 0===l?void 0:l.getHasMorePages(),this.updateQueryResultPaginationVisibility(c,e)}getOrder(){return 1e5}destroy(t,e){const n=this.yasrIdToEventListenerMapper.get(e.getTabId());n&&t.removeEventListener("pageSelected",n)}updateQueryResultPaginationVisibility(t,e){var n,r;t.classList.add("hidden"),e.yasqe.isExplainPlanQuery()||!(null===(r=null===(n=e.results)||void 0===n?void 0:n.getBindings())||void 0===r?void 0:r.length)&&1===t.pageNumber||this.hasMoreThanOnePageElements(t)&&t.classList.remove("hidden")}hasMoreThanOnePageElements(t){return!!(t.pageNumber&&t.pageNumber>1)||(void 0!==t.hasMorePages?t.hasMorePages:!(!t.pageSize||!t.totalElements)&&t.pageSize<t.totalElements)}pageSelectedHandler(t){return e=>{const n=e.detail,r=t.yasqe;r&&(r.setPageNumber(n.pageNumber||1),r.setPageSize(n.pageSize||10),r.query().then().catch((()=>{})))}}}!function(t){t.WRITE="WRITE",t.READ="READ",t.PROTECTED="PROTECTED"}(YasqeMode||(YasqeMode={}));class TimeFormattingService{constructor(t){this.translationService=t.get(TranslationService)}getHumanReadableSeconds(t,e=!1){const n=Math.floor(t/TimeFormattingService.ONE_DAY_IN_MILLISECONDS),r=Math.floor(t%TimeFormattingService.ONE_DAY_IN_MILLISECONDS/TimeFormattingService.ONE_HOUR_IN_MILLISECONDS),i=Math.floor(t%TimeFormattingService.ONE_DAY_IN_MILLISECONDS%TimeFormattingService.ONE_HOUR_IN_MILLISECONDS/TimeFormattingService.ONE_MINUTE_IN_MILLISECONDS);return this.toHumanReadableSeconds(n,r,i,this.normalizeSeconds(t%TimeFormattingService.ONE_DAY_IN_MILLISECONDS%TimeFormattingService.ONE_HOUR_IN_MILLISECONDS%TimeFormattingService.ONE_MINUTE_IN_MILLISECONDS/TimeFormattingService.ONE_SECOND_IN_MILLISECONDS,e))}getHumanReadableTimestamp(t){const e=Date.now(),n=(e-t)/TimeFormattingService.ONE_SECOND_IN_MILLISECONDS;if(n<TimeFormattingService.ONE_MINUTE_iN_SECONDS)return this.translationService.translate("yasr.plugin_control.response_chip.timestamp.moments_ago");if(n<TimeFormattingService.TEN_MINUTES_IN_SECONDS)return this.translationService.translate("yasr.plugin_control.response_chip.timestamp.minutes_ago");{const r=new Date(e),i=new Date(t);if(r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()&&r.getDate()===i.getDate())return this.translationService.translate("yasr.plugin_control.response_chip.timestamp.today_at",this.toTimeParameters(t));if(n<TimeFormattingService.ONE_DAY_IN_SECONDS)return this.translationService.translate("yasr.plugin_control.response_chip.timestamp.yesterday_at",this.toTimeParameters(t))}return this.translationService.translate("yasr.plugin_control.response_chip.timestamp.on_at",this.toTimeParameters(t))}toHumanReadableSeconds(t,e,n,r){let i="";return t&&(i+=`${this.translationService.translate("yasr.plugin_control.response_chip.message.day",[{key:"day",value:`${t}`}])} `),(t||e)&&(i+=`${this.translationService.translate("yasr.plugin_control.response_chip.message.hours",[{key:"hours",value:`${e}`}])} `),(t||e||n)&&(i+=`${this.translationService.translate("yasr.plugin_control.response_chip.message.minutes",[{key:"minutes",value:`${n}`}])} `),i+=`${this.translationService.translate("yasr.plugin_control.response_chip.message.seconds",[{key:"seconds",value:`${r}`}])}`,i.replace(/( 0[a-z])+$/,"")}normalizeSeconds(t,e=!1){return e&&t<10?t<.1?.1:Number((Math.round(10*t)/10).toFixed(1)):Math.round(t)}toTimeParameters(t){const e=new Date(t);return[{key:"hours",value:`${e.getHours()}`},{key:"minutes",value:`${this.normalize(e.getMinutes())}`},{key:"seconds",value:`${this.normalize(e.getSeconds())}`},{key:"date",value:`${this.normalize(e.getDate())}`},{key:"month",value:`${this.normalize(e.getMonth()+1)}`},{key:"year",value:`${e.getFullYear()}`}]}normalize(t){return`${t<10?0:""}${t}`}}TimeFormattingService.ONE_MINUTE_iN_SECONDS=60,TimeFormattingService.TEN_MINUTES_IN_SECONDS=600,TimeFormattingService.ONE_HOUR_IN_MILLISECONDS=36e5,TimeFormattingService.ONE_DAY_IN_SECONDS=86400,TimeFormattingService.ONE_SECOND_IN_MILLISECONDS=1e3,TimeFormattingService.ONE_DAY_IN_MILLISECONDS=864e5,TimeFormattingService.ONE_MINUTE_IN_MILLISECONDS=6e4;class PivotTableDownloadUtil{static getTSVDownloadInfo(t){return{contentType:"text/tsv",filename:"queryResults.tsv",getData:()=>t.rootEl.querySelector(".pvtRendererArea textarea").innerHTML}}static getCSVDownloadInfo(t){return{contentType:"text/csv",filename:"queryResults.csv",getData:()=>PivotTableDownloadUtil.tableToCsv(t.rootEl.querySelector(".pvtRendererArea table"))}}static getSvgDownloadInfo(t){return{contentType:"image/svg+xml",filename:"queryResults.svg",getData:()=>t.rootEl.querySelector(".pvtRendererArea svg").outerHTML}}static tableToCsv(t,e){let n="";const r=Object.assign(new TableToCsvConfiguration,e);return n+=PivotTableDownloadUtil.getTableHeaderAsCSV(t,r),n+=PivotTableDownloadUtil.getTableBodyAsCSV(t,r),n}static getTableHeaderAsCSV(t,e){const n=t.querySelectorAll("thead tr");return!n||n.length<1?"":this.toCSVFormat(PivotTableDownloadUtil.getThValuesMatrix(n,e),e)}static getTableBodyAsCSV(t,e){let n="";const r=t.querySelector("tbody");if(!r)return;const i=r.querySelectorAll("tr");if(!i||i.length<1)return"";const o=PivotTableDownloadUtil.getThValuesMatrix(i,e);return i.forEach(((t,r)=>{n+=o[r].join(e.delimiter);const i=[];t.querySelectorAll("td").forEach((t=>{i.push(PivotTableDownloadUtil.escapeValueIfNeeded(t.innerText,e))})),i.length>0&&(n+=e.delimiter+i.join(e.delimiter)+e.lineBreak)})),n}static getColspan(t){const e=t.getAttribute("colspan");return e?parseInt(e,10):1}static getRowspan(t){const e=t.getAttribute("rowspan");return e?parseInt(e,10):1}static findIndexOfFirstUndefinedElement(t){return t.findIndex((t=>void 0===t))}static getThValuesMatrix(t,e){const n=Array.from(Array(t.length),(()=>new Array(PivotTableDownloadUtil.getColumnsCount(t))));let r=0;return t.forEach(((t,i)=>{r=0,t.querySelectorAll("th").forEach((t=>{const o=PivotTableDownloadUtil.escapeValueIfNeeded(t.innerText||"",e),a=PivotTableDownloadUtil.getColspan(t),s=PivotTableDownloadUtil.getRowspan(t);for(let t=0;t<a;t++){void 0===n[i][r]?n[i][r]=o:(n[i][PivotTableDownloadUtil.findIndexOfFirstUndefinedElement(n[i])]=o,r++);for(let t=1;t<s;t++)n[i+t][r]=o;r++}}))})),n}static needToQuoteString(t,e){return!!t.match("[\\w|"+e.delimiter+"|"+e.quote+"]")}static escapeValueIfNeeded(t,e){return PivotTableDownloadUtil.needToQuoteString(t,e)?`"${t}"`:t}static toCSVFormat(t,e){let n="";for(let r=0;r<t.length;r++)n+=t[r].join(e.delimiter)+e.lineBreak;return n}static getColumnsCount(t){let e=0;return t[0].querySelectorAll("th").forEach((t=>{const n=t.getAttribute("colspan");n?e+=parseInt(n,10):e++})),e}}class TableToCsvConfiguration{constructor(){this.quote='"',this.delimiter=",",this.lineBreak="\n"}}const D3_7_8_5_RENDER=function(){const t={localeStrings:{},d3:{width:()=>$(window).width()/1.4,height:()=>$(window).height()/1.4}},e=(t,n,r)=>{if(0===n.length)return void(t.value=r);null==t.children&&(t.children=[]);const i=n.shift(),o=t.children.find((t=>t.name===i));if(o)e(o,n,r);else{const o={name:i};e(o,n,r),t.children.push(o)}},n=(n,r)=>{const i={name:"All",children:[]};n.getRowKeys().forEach((t=>{const r=n.getAggregator(t,[]).value();null!=r&&e(i,t,r)})),r=$.extend(!0,{},t,r);const o=d3.treemap().size([r.d3.width(),r.d3.height()]).padding([15,0,0,0]).round(!0)(d3.hierarchy(i).sum((t=>t.value))).descendants(),a=$("<div>").css({width:"100%",height:"100%"})[0],s=d3.scaleOrdinal(d3.schemeCategory10);return d3.select(a).selectAll(".node").data(o).enter().append("div").attr("class","node").style("background",(t=>t.children?"lightgrey":s(t.data.name))).text((t=>t.data.name)).call((t=>{t.style("left",(t=>`${t.x0}px`)).style("top",(t=>`${t.y0}px`)).style("width",(t=>`${Math.max(0,t.x1-t.x0-1)}px`)).style("height",(t=>`${Math.max(0,t.y1-t.y0-1)}px`))})),a};return{register:(t="Treemap")=>{const e={};return e[t]=n,$.pivotUtilities[D3_7_8_5_RENDER.RENDER_NAME]=e},RENDER_NAME:"d3_7_8_5_renderers"}}(),PivotTableRendererType={TABLE:"TABLE",TABLE_BARCHART:"TABLE_BARCHART",HEATMAP:"HEATMAP",ROW_HEATMAP:"ROW_HEATMAP",COL_HEATMAP:"COL_HEATMAP",TREEMAP:"TREEMAP",LINE_CHART:"LINE_CHART",BAR_CHART:"BAR_CHART",STACKED_BAR_CHART:"STACKED_BAR_CHART",AREA_CHART:"AREA_CHART",SCATTER_CHART:"SCATTER_CHART",TSV_EXPORT:"TSV_EXPORT"},RENDERER_ORDER_LIST=[PivotTableRendererType.TABLE,PivotTableRendererType.TABLE_BARCHART,PivotTableRendererType.HEATMAP,PivotTableRendererType.ROW_HEATMAP,PivotTableRendererType.COL_HEATMAP,PivotTableRendererType.TREEMAP,PivotTableRendererType.LINE_CHART,PivotTableRendererType.BAR_CHART,PivotTableRendererType.STACKED_BAR_CHART,PivotTableRendererType.AREA_CHART,PivotTableRendererType.SCATTER_CHART,PivotTableRendererType.TSV_EXPORT];class PivotTableRenderer{constructor(t,e){this.name=t,this.type=e,this.order=RENDERER_ORDER_LIST.indexOf(this.type)}}const PivotTableAggregatorType={COUNT:"COUNT",COUNT_UNIQUE_VALUES:"COUNT_UNIQUE_VALUES",LIST_UNIQUE_VALUES:"LIST_UNIQUE_VALUES",SUM:"SUM",INTEGER_SUM:"INTEGER_SUM",AVERAGE:"AVERAGE",MEDIAN:"MEDIAN",SAMPLE_VARIANCE:"SAMPLE_VARIANCE",SAMPLE_STANDARD_DEVIATION:"SAMPLE_STANDARD_DEVIATION",MINIMUM:"MINIMUM",MAXIMUM:"MAXIMUM",FIRST:"FIRST",LAST:"LAST",SUM_OVER_SUM:"SUM_OVER_SUM",UPPER_BOUND:"UPPER_BOUND",LOWER_BOUND:"LOWER_BOUND",SUM_AS_FRACTION_OF_TOTAL:"SUM_AS_FRACTION_OF_TOTAL",SUM_AS_FRACTION_OF_ROWS:"SUM_AS_FRACTION_OF_ROWS",SUM_AS_FRACTION_OF_COLUMNS:"SUM_AS_FRACTION_OF_COLUMNS",COUNT_AS_FRACTION_OF_TOTAL:"COUNT_AS_FRACTION_OF_TOTAL",COUNT_AS_FRACTION_OF_ROWS:"COUNT_AS_FRACTION_OF_ROWS",COUNT_AS_FRACTION_OF_COLUMNS:"COUNT_AS_FRACTION_OF_COLUMNS"},AGGREGATOR_ORDER_LIST=[PivotTableAggregatorType.COUNT,PivotTableAggregatorType.COUNT_UNIQUE_VALUES,PivotTableAggregatorType.LIST_UNIQUE_VALUES,PivotTableAggregatorType.SUM,PivotTableAggregatorType.INTEGER_SUM,PivotTableAggregatorType.AVERAGE,PivotTableAggregatorType.MEDIAN,PivotTableAggregatorType.SAMPLE_VARIANCE,PivotTableAggregatorType.SAMPLE_STANDARD_DEVIATION,PivotTableAggregatorType.MINIMUM,PivotTableAggregatorType.MAXIMUM,PivotTableAggregatorType.FIRST,PivotTableAggregatorType.LAST,PivotTableAggregatorType.SUM_OVER_SUM,PivotTableAggregatorType.UPPER_BOUND,PivotTableAggregatorType.LOWER_BOUND,PivotTableAggregatorType.SUM_AS_FRACTION_OF_TOTAL,PivotTableAggregatorType.SUM_AS_FRACTION_OF_ROWS,PivotTableAggregatorType.SUM_AS_FRACTION_OF_COLUMNS,PivotTableAggregatorType.COUNT_AS_FRACTION_OF_TOTAL,PivotTableAggregatorType.COUNT_AS_FRACTION_OF_ROWS,PivotTableAggregatorType.COUNT_AS_FRACTION_OF_COLUMNS];class PivotTableAggregator{constructor(t,e){this.name=t,this.type=e,this.order=AGGREGATOR_ORDER_LIST.indexOf(this.type)}}class PivotTableService{constructor(t){this.translationService=t,this.initRenderers(),this.initAggregators()}getPivotRendererByType(t){return this.renderers.find((e=>e.type===t))}getPivotRendererByName(t){return this.renderers.find((e=>e.name===t))}getPivotTableRenderName(t,e){return e?this.translationService.translateInLocale(PivotTableService.RENDERER_NAME_PREFIX+t,e):this.translationService.translate(PivotTableService.RENDERER_NAME_PREFIX+t)}getPivotTableRenderersCompareByNameFunction(){return(t,e)=>{const n=this.getPivotRendererByName(t),r=this.getPivotRendererByName(e);return n.order-r.order}}getPivotTableAggregatorByType(t){return this.aggregators.find((e=>e.type===t))}getPivotTableAggregatorByName(t){return this.aggregators.find((e=>e.name===t))}getPivotTableAggregatorName(t,e){return e?this.translationService.translateInLocale(PivotTableService.AGGREGATOR_NAME_PREFIX+t,e):this.translationService.translate(PivotTableService.AGGREGATOR_NAME_PREFIX+t)}getPivotTableAggregatorsCompareByNameFunction(){return(t,e)=>{const n=this.getPivotTableAggregatorByName(t),r=this.getPivotTableAggregatorByName(e);return n.order-r.order}}initRenderers(){this.renderers=[],Object.keys(PivotTableRendererType).forEach((t=>{const e=this.getPivotTableRenderName(t);this.renderers.push(new PivotTableRenderer(e,t))}))}initAggregators(){this.aggregators=[],Object.keys(PivotTableAggregatorType).forEach((t=>{const e=this.getPivotTableAggregatorName(t);this.aggregators.push(new PivotTableAggregator(e,t))}))}}PivotTableService.RENDERER_NAME_PREFIX="yasr.plugin_control.plugin.pivot-table-plugin.renderer.type_",PivotTableService.AGGREGATOR_NAME_PREFIX="yasr.plugin_control.plugin.pivot-table-plugin.aggregator.type_";class ObjectUtil{static orderObjectByKey(t,e){const n={};return Object.keys(t).sort(e).forEach((e=>{n[e]=t[e]})),n}}const NOT_TRANSLATED_RENDERERS_TYPES=[PivotTableRendererType.TREEMAP,PivotTableRendererType.LINE_CHART,PivotTableRendererType.BAR_CHART,PivotTableRendererType.STACKED_BAR_CHART,PivotTableRendererType.AREA_CHART,PivotTableRendererType.SCATTER_CHART,PivotTableRendererType.TSV_EXPORT],PIVOT_TABLE_SUPPORTED_LANGUAGES=["cs","da","de","es","fr","jp","nl","pl","pt","ru","sq","tr","zh"];class PivotTablePlugin{constructor(t){this.label=PivotTablePlugin.PLUGIN_NAME,this.priority=4,t&&(this.yasr=t,this.translationService=this.yasr.config.translationService,this.currentLanguage=this.translationService.getLanguage(),this.pivotTableService=new PivotTableService(this.translationService))}initialize(){return new Promise((t=>{HtmlUtil.loadCss("https://pivottable.js.org/dist/pivot.css"),HtmlUtil.loadJavaScript("https://cdnjs.cloudflare.com/ajax/libs/d3/7.8.5/d3.min.js"),HtmlUtil.loadJavaScript("https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.2/jquery.min.js"),HtmlUtil.loadJavaScript("https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"),HtmlUtil.loadJavaScript("https://www.gstatic.com/charts/loader.js"),HtmlUtil.loadJavaScript("https://pivottable.js.org/dist/pivot.js"),PIVOT_TABLE_SUPPORTED_LANGUAGES.includes(this.currentLanguage)&&HtmlUtil.loadJavaScript(`https://pivottable.js.org/dist/pivot.${this.currentLanguage}.js`),HtmlUtil.loadJavaScript("https://pivottable.js.org/dist/export_renderers.js"),HtmlUtil.loadJavaScript("https://pivottable.js.org/dist/gchart_renderers.js",(()=>{D3_7_8_5_RENDER.register(),this.setupRenderers(),this.setupAggregators(),t()}))}))}canHandleResults(){return this.yasr.results&&this.yasr.results.getVariables&&this.yasr.results.getVariables()&&this.yasr.results.getVariables().length>0}draw(t,e){google.visualization?this.drawPivotTable(t):(google.charts.load("current",{packages:["corechart","charteditor"],language:this.currentLanguage}),t&&t.rendererType&&this.isGoogleChartRender(this.pivotTableService.getPivotRendererByType(t.rendererType))?google.setOnLoadCallback((()=>{this.drawPivotTable(t)})):this.drawPivotTable(t))}drawPivotTable(t){const e=Object.assign({},t);e.onRefresh=this.onRefresh(),e.rendererName=e.rendererType?this.pivotTableService.getPivotRendererByType(e.rendererType).name:void 0,e.aggregatorName=e.aggregatorType?this.pivotTableService.getPivotTableAggregatorByType(e.aggregatorType).name:void 0,this.showPlugin(e),this.addUnusedVariableHeader(),this.addColumnsHeader(),this.addValuesHeader(),this.addRowsHeader(),this.updateVariablesElement()}isGoogleChartRender(t){if(!t)return!1;switch(t.type){case PivotTableRendererType.BAR_CHART:case PivotTableRendererType.LINE_CHART:case PivotTableRendererType.STACKED_BAR_CHART:case PivotTableRendererType.AREA_CHART:case PivotTableRendererType.SCATTER_CHART:return!0}return!1}getIcon(){const t=document.createElement("div");return t.innerHTML=SvgUtil.getPivotTableIconSvgTag(),t}destroy(){const t=this.yasr.rootEl.querySelector(".yasr_header .chart-config-control");null==t||t.remove()}download(t){const e=$(this.yasr.rootEl.querySelector(`.${PivotTablePlugin.PLUGIN_NAME}`)).data("pivotUIOptions");if(e)switch(this.pivotTableService.getPivotRendererByName(e.rendererName).type){case PivotTableRendererType.TSV_EXPORT:return PivotTableDownloadUtil.getTSVDownloadInfo(this.yasr);case PivotTableRendererType.TABLE:case PivotTableRendererType.TABLE_BARCHART:case PivotTableRendererType.HEATMAP:case PivotTableRendererType.ROW_HEATMAP:case PivotTableRendererType.COL_HEATMAP:return PivotTableDownloadUtil.getCSVDownloadInfo(this.yasr);case PivotTableRendererType.BAR_CHART:case PivotTableRendererType.LINE_CHART:case PivotTableRendererType.STACKED_BAR_CHART:case PivotTableRendererType.AREA_CHART:case PivotTableRendererType.SCATTER_CHART:return PivotTableDownloadUtil.getSvgDownloadInfo(this.yasr)}}setupRenderers(){this.translateRenders(),this.sortRenderers()}translateRenders(){const t=$.extend(!0,$.pivotUtilities[D3_7_8_5_RENDER.RENDER_NAME],$.pivotUtilities.gchart_renderers,$.pivotUtilities.export_renderers);NOT_TRANSLATED_RENDERERS_TYPES.forEach((e=>{const n=this.pivotTableService.getPivotRendererByType(e),r=this.pivotTableService.getPivotTableRenderName(e,"en");n?$.pivotUtilities.locales[this.currentLanguage].renderers[n.name]=t[r]:(console.log(`Missing translation for renderer: [${e}] The default will be used!`),$.pivotUtilities.locales[this.currentLanguage].renderers[n]=t[r])}))}sortRenderers(){$.pivotUtilities.locales[this.currentLanguage].renderers=ObjectUtil.orderObjectByKey($.pivotUtilities.locales[this.currentLanguage].renderers,this.pivotTableService.getPivotTableRenderersCompareByNameFunction())}setupAggregators(){"fr"===this.currentLanguage&&this.addMissedFrenchAggregators(),this.sortAggregators()}sortAggregators(){$.pivotUtilities.locales[this.currentLanguage].aggregators=ObjectUtil.orderObjectByKey($.pivotUtilities.locales[this.currentLanguage].aggregators,this.pivotTableService.getPivotTableAggregatorsCompareByNameFunction())}addMissedFrenchAggregators(){const t=$.pivotUtilities.numberFormat({thousandsSep:" ",decimalSep:","});$.pivotUtilities.locales[this.currentLanguage].aggregators[this.translationService.translate(PivotTableService.AGGREGATOR_NAME_PREFIX+"MEDIAN")]=$.pivotUtilities.aggregatorTemplates.median(t),$.pivotUtilities.locales[this.currentLanguage].aggregators[this.translationService.translate(PivotTableService.AGGREGATOR_NAME_PREFIX+"SAMPLE_VARIANCE")]=$.pivotUtilities.aggregatorTemplates.var(1,t),$.pivotUtilities.locales[this.currentLanguage].aggregators[this.translationService.translate(PivotTableService.AGGREGATOR_NAME_PREFIX+"SAMPLE_STANDARD_DEVIATION")]=$.pivotUtilities.aggregatorTemplates.stdev(1,t)}showPlugin(t){this.pluginElement=document.createElement("div"),this.pluginElement.className=PivotTablePlugin.PLUGIN_NAME,this.yasr.resultsEl.appendChild(this.pluginElement),$(this.yasr.rootEl.querySelector(`.${PivotTablePlugin.PLUGIN_NAME}`)).pivotUI((t=>this.getResults(t)),t,!1,this.currentLanguage)}getResults(t){const e=this.yasr.results.getVariables(),n=this.yasr.getPrefixes();this.yasr.results.getBindings().forEach((r=>{t(this.getResult(e,r,n))}))}getResult(t,e,n){const r={};return t.forEach((t=>{r[t]=this.getResultValue(t,e,n)})),r}getResultValue(t,e,n){if(t in e){const r=e[t],i=r.value;return"uri"===r.type?SparqlUtils.uriToPrefixWithLocalName(i,n):i}return null}addUnusedVariableHeader(){const t=this.pluginElement.querySelector(".pvtUnused");t.classList.add("pivottable-plugin-unused-variables");const e=document.createElement("div");e.classList.add("pivottable-plugin-unused-variables-header"),e.innerText=this.yasr.translationService.translate("yasr.plugin_control.plugin.name.pivot-table-plugin.available_variables"),t.prepend(e)}addColumnsHeader(){const t=this.pluginElement.querySelector(".pvtCols");t.classList.add("pivottable-plugin-columns");const e=document.createElement("div");e.classList.add("pivottable-plugin-columns-header"),e.innerText=this.yasr.translationService.translate("yasr.plugin_control.plugin.name.pivot-table-plugin.columns"),t.prepend(e)}addValuesHeader(){const t=this.pluginElement.querySelector(".pvtVals");t.classList.add("pivottable-plugin-values");const e=document.createElement("div");e.classList.add("pivottable-plugin-values-header"),e.innerText=this.yasr.translationService.translate("yasr.plugin_control.plugin.name.pivot-table-plugin.cells"),t.prepend(e)}addRowsHeader(){const t=this.pluginElement.querySelector(".pvtRows");t.classList.add("pivottable-plugin-rows");const e=document.createElement("div");e.classList.add("pivottable-plugin-rows-header"),e.innerText=this.yasr.translationService.translate("yasr.plugin_control.plugin.name.pivot-table-plugin.rows"),t.prepend(e)}updateVariablesElement(){this.pluginElement.querySelectorAll(".pvtAttr").forEach((t=>this.updateVariableElement(t)))}updateVariableElement(t){t.classList.add("povottable-plugin-variable");const e=t.querySelector(".pvtTriangle"),n=document.createElement("div");n.classList.add("pivottable-plugin-variable-icon"),n.innerHTML=SvgUtil.getPivotTableValueIcon(),t.insertBefore(n,e)}onRefresh(){return t=>{if(t)switch(this.pivotTableService.getPivotRendererByName(t.rendererName).type){case PivotTableRendererType.BAR_CHART:case PivotTableRendererType.LINE_CHART:case PivotTableRendererType.STACKED_BAR_CHART:case PivotTableRendererType.AREA_CHART:case PivotTableRendererType.SCATTER_CHART:this.addChartConfigButton();break;default:this.removeChartConfigButton()}this.yasr.storePluginConfig(PivotTablePlugin.PLUGIN_NAME,this.toPivotTablePersistentConfig(t))}}removeChartConfigButton(){const t=this.yasr.resultsEl.parentElement.querySelector("#openPivotTableChartConfigBtn");t&&t.remove()}addChartConfigButton(){if(this.yasr.resultsEl.parentElement.querySelector("#openPivotTableChartConfigBtn"))return;const t=document.createElement("button");t.id="openPivotTableChartConfigBtn",t.innerHTML=this.translationService.translate("yasr.plugin_control.plugin.charts.config.button"),t.addEventListener("click",(()=>{$(this.yasr.rootEl.querySelector(`.${PivotTablePlugin.PLUGIN_NAME}`)).find('div[dir="ltr"]').dblclick()}));const e=document.createElement("div");e.classList.add("chart-config-control"),e.prepend(t),this.yasr.resultsEl.parentElement.querySelector(".yasr_header .space_element").insertAdjacentElement("beforebegin",e)}toPivotTablePersistentConfig(t){return{cols:t.cols,rows:t.rows,colOrder:t.colOrder,rowOrder:t.rowOrder,vals:t.vals,exclusions:t.exclusions,inclusions:t.inclusions,inclusionsInfo:t.inclusionsInfo,aggregatorType:this.pivotTableService.getPivotTableAggregatorByName(t.aggregatorName).type,rendererType:this.pivotTableService.getPivotRendererByName(t.rendererName).type}}}PivotTablePlugin.PERSISTENCE_ID="pivot",PivotTablePlugin.PLUGIN_NAME="pivot-table-plugin";class PivotTableDownloadPlugin{createElement(t){const e=document.createElement("button");return e.className="pivot-table-download-as-button icon-download",e.onclick=this.onClick(t),this.updateElement(e,t),e}updateElement(t,e){t.classList.toggle("hidden",!e.results||PivotTablePlugin.PLUGIN_NAME!==e.getSelectedPluginName()),t.innerHTML=`<span class="pivot-table-download-as-button-label">${e.translationService.translate("yasr.plugin_control.download_as.pivot_table.dropdown.label")}</span>`}getOrder(){return 0}destroy(t,e){}onClick(t){return()=>{if(!t.results)return;const e=t.getSelectedPlugin();if(PivotTablePlugin.PLUGIN_NAME===e.label){const t=e.download();t&&HtmlUtil.downloadStringAsFile(t.getData(),t.filename,t.contentType)}}}}class ChartsPlugin{constructor(t){this.chartEditor=null,this.wrapper=null,this.chartEditorOkHandler=void 0,this.persistentConfig={},this.label="charts",this.priority=3,t&&(this.yasr=t,this.translationService=this.yasr.config.translationService,this.currentLanguage=this.translationService.getLanguage()),this.config=ChartsPlugin.defaults}canHandleResults(){return!!this.yasr.results&&this.yasr.results.getVariables()&&this.yasr.results.getVariables().length>0}initialize(){return new Promise((t=>{HtmlUtil.loadJavaScript("https://www.gstatic.com/charts/loader.js",(()=>{google.charts.load("current",{packages:["charteditor"],language:this.currentLanguage}).then(t)}))}))}draw(t,e){t&&(t.chartOptions.width="100%"),this.persistentConfig=Object.assign(Object.assign({},this.persistentConfig),t),this.initEditor(),this.drawChart()}download(t){if(!this.yasr.results)return null;const e=this.yasr.resultsEl.getElementsByTagName("svg");return e.length>0?this.exportSvg(e[0]):this.yasr.resultsEl.querySelectorAll(".google-visualization-table-table").length>0?this.exportCsv():void 0}exportSvg(t){let e=t.cloneNode(!0).outerHTML;return e='<div style="width: 800px; height: 600px;">\n'+e+"\n</div>",{contentType:"image/svg+xml",filename:"queryResults.svg",getData:()=>e}}exportCsv(){const t=this.wrapper.getDataTable();let e="";for(let n=0;n<t.getNumberOfColumns();n++)e+=t.getColumnLabel(n),n<t.getNumberOfColumns()-1&&(e+=",");e+="\n";let n=google.visualization.dataTableToCsv(t);return n=e+n,{getData:()=>n,filename:"queryResults.csv",contentType:"text/csv"}}getIcon(){const t=document.createElement("div");return t.innerHTML=SvgUtil.getYasrChartPluginIcon(),t}destroy(){google.visualization.events.removeListener(this.chartEditorOkHandler);const t=this.yasr.rootEl.querySelector(".yasr_header .chart-config-control");null==t||t.remove()}drawChart(){this.yasr.resultsEl.innerHTML="",this.addChartConfigButton();const t=this.persistentConfig.chartState&&JSON.parse(this.persistentConfig.chartState),e=this.buildModel();let n;n=t&&t.dataTable.rows.length===e.getNumberOfRows()&&t.dataTable.cols.length===e.getNumberOfColumns()?t.dataTable:e,this.createChartContainer(),this.wrapper=new google.visualization.ChartWrapper({chartType:t?t.chartType:"Table",dataTable:n,containerId:this.getContainerId()}),google.visualization.events.addListener(this.wrapper,"error",(()=>{const t=document.getElementById(this.wrapper.getContainerId());google.visualization.errors.removeAll(t)})),t?this.wrapper.setOptions(t.options):(this.wrapper.setOption("width",this.config.width),this.wrapper.setOption("height",this.config.height)),this.wrapper.draw()}buildModel(){const t=new google.visualization.DataTable,e=this.yasr.results.getAsJson();e.head.vars.forEach((n=>{let r="string";try{r=this.getGoogleTypeForBindings(e.results.bindings,n)}catch(t){if(!(t instanceof TypesMappingError))throw t;this.yasr.showWarning(t.msg)}t.addColumn(r,n)}));const n=SparqlUtils.mapPrefixesToNamespaces(this.yasr.getPrefixes());return e.results.bindings.forEach((r=>{const i=e.head.vars.map(((e,i)=>ChartsPlugin.castGoogleType(r[e],n,t.getColumnType(i))));t.addRow(i)})),t}getContainerId(){return`${this.yasr.yasqe.tabId}_visualization`}createChartContainer(){const t=document.createElement("div");t.id=this.getContainerId(),this.yasr.resultsEl.appendChild(t)}redrawChart(){const t=this.chartEditor.getChartWrapper();t.getOptions().width="100%",t.draw(document.getElementById(this.getContainerId())),this.persistentConfig.chartOptions=t.getOptions(),this.persistentConfig.chartState=t.toJSON(),this.yasr.storePluginConfig(ChartsPlugin.PLUGIN_NAME,this.persistentConfig)}initEditor(){this.chartEditor=new google.visualization.ChartEditor,this.chartEditorOkHandler=google.visualization.events.addListener(this.chartEditor,"ok",this.redrawChart.bind(this))}addChartConfigButton(){if(this.yasr.resultsEl.parentElement.querySelector("#openChartConfigBtn"))return;const t=document.createElement("button");t.id="openChartConfigBtn",t.innerHTML=this.translationService.translate("yasr.plugin_control.plugin.charts.config.button"),t.addEventListener("click",(()=>{this.chartEditor.openDialog(this.wrapper,{})}));const e=document.createElement("div");e.classList.add("chart-config-control"),e.prepend(t),this.yasr.resultsEl.parentElement.querySelector(".yasr_header .space_element").insertAdjacentElement("beforebegin",e)}static getGoogleTypeForBinding(t){if(!t)return null;if(null==t.type||"typed-literal"!==t.type&&"literal"!==t.type)return"string";switch(t.datatype){case"http://www.w3.org/2001/XMLSchema#float":case"http://www.w3.org/2001/XMLSchema#decimal":case"http://www.w3.org/2001/XMLSchema#int":case"http://www.w3.org/2001/XMLSchema#integer":case"http://www.w3.org/2001/XMLSchema#long":case"http://www.w3.org/2001/XMLSchema#gYearMonth":case"http://www.w3.org/2001/XMLSchema#gYear":case"http://www.w3.org/2001/XMLSchema#gMonthDay":case"http://www.w3.org/2001/XMLSchema#gDay":case"http://www.w3.org/2001/XMLSchema#gMonth":return"number";case"http://www.w3.org/2001/XMLSchema#date":return"date";case"http://www.w3.org/2001/XMLSchema#dateTime":return"datetime";case"http://www.w3.org/2001/XMLSchema#time":return"timeofday";default:return"string"}}getGoogleTypeForBindings(t,e){const n={};let r=0;if(t.forEach((t=>{const i=ChartsPlugin.getGoogleTypeForBinding(t[e]);null!=i&&(i in n||(n[i]=0,r++),n[i]++)})),0==r)return"string";if(1!=r)throw console.log("Mapping bindings to types failed",n,e),new TypesMappingError(this.translationService.translate("yasr.exceptions.conflict_render",[{key:"varName",value:e}]));for(const t in n)return t}static castGoogleType(t,e,n){if(null==t)return null;if("string"==n||null==t.type||"typed-literal"!==t.type&&"literal"!==t.type)return"uri"==t.type?ChartsPlugin.uriToPrefixed(e,t.value):t.value;switch(t.datatype){case"http://www.w3.org/2001/XMLSchema#float":case"http://www.w3.org/2001/XMLSchema#decimal":case"http://www.w3.org/2001/XMLSchema#int":case"http://www.w3.org/2001/XMLSchema#integer":case"http://www.w3.org/2001/XMLSchema#long":case"http://www.w3.org/2001/XMLSchema#gYearMonth":case"http://www.w3.org/2001/XMLSchema#gYear":case"http://www.w3.org/2001/XMLSchema#gMonthDay":case"http://www.w3.org/2001/XMLSchema#gDay":case"http://www.w3.org/2001/XMLSchema#gMonth":return Number(t.value);case"http://www.w3.org/2001/XMLSchema#date":{const e=ChartsPlugin.parseXmlSchemaDate(t.value);if(e)return e;break}case"http://www.w3.org/2001/XMLSchema#dateTime":case"http://www.w3.org/2001/XMLSchema#time":return new Date(t.value);default:return t.value}}static uriToPrefixed(t,e){let n=e;if(t){const r=t[e];r&&0===e.indexOf(r)&&(n=r+":"+n.substring(r.length))}return n}static parseXmlSchemaDate(t){const e=new Date(t.replace(/(\d)([+-]\d{2}:\d{2})/,"$1Z$2"));return isNaN(e)?null:e}}ChartsPlugin.PLUGIN_NAME="charts",ChartsPlugin.defaults={width:"100%",height:"600px"};class TypesMappingError{constructor(t){this.msg=t,this.msg=t}}class ChartDownloadPlugin{createElement(t){const e=document.createElement("button");return e.className="chart-download-as-button icon-download",e.onclick=this.onClick(t),this.updateElement(e,t),e}updateElement(t,e){t.classList.toggle("hidden",!e.results||ChartsPlugin.PLUGIN_NAME!==e.getSelectedPluginName()),t.innerHTML=`<span class="chart-download-as-button-label">${e.translationService.translate("yasr.plugin_control.download_as.charts.dropdown.label")}</span>`}getOrder(){return 0}destroy(t,e){}onClick(t){return()=>{if(!t.results)return;const e=t.getSelectedPlugin();if(ChartsPlugin.PLUGIN_NAME===e.label){const t=e.download();t&&HtmlUtil.downloadStringAsFile(t.getData(),t.filename,t.contentType)}}}}class YasguiConfigurationBuilder{constructor(t){this.serviceFactory=t,this.yasqeService=t.get(YasqeService)}build(t){const e={};e.keyboardShortcutConfiguration=Object.assign({},defaultYasguiConfig.keyboardShortcutConfiguration,t.keyboardShortcutConfiguration),e.render=t.render||defaultOntotextYasguiConfig.render,e.orientation=t.orientation||defaultOntotextYasguiConfig.orientation,e.showEditorTabs=void 0!==t.showEditorTabs?t.showEditorTabs:defaultOntotextYasguiConfig.showEditorTabs,e.showControlBar=void 0!==t.showControlBar?t.showControlBar:defaultOntotextYasguiConfig.showControlBar,e.showResultTabs=void 0!==t.showResultTabs?t.showResultTabs:defaultOntotextYasguiConfig.showResultTabs,e.showToolbar=void 0!==t.showToolbar?t.showToolbar:defaultOntotextYasguiConfig.showToolbar,e.i18n=t.i18n,e.yasqeAutocomplete={},t.yasqeAutocomplete&&Object.keys(t.yasqeAutocomplete).map((n=>{e.yasqeAutocomplete[n]=t.yasqeAutocomplete[n]})),e.yasguiConfig={translationService:this.serviceFactory.get(TranslationService),notificationMessageService:this.serviceFactory.get(NotificationMessageService),eventService:this.serviceFactory.getEventService(),timeFormattingService:this.serviceFactory.get(TimeFormattingService),infer:void 0!==t.infer?t.infer:defaultYasguiConfig.infer,immutableInfer:void 0!==t.immutableInfer?t.immutableInfer:defaultYasqeConfig.immutableInfer,sameAs:void 0!==t.sameAs?t.sameAs:defaultYasguiConfig.sameAs,immutableSameAs:void 0!==t.immutableSameAs?t.immutableSameAs:defaultYasqeConfig.immutableSameAs,clearState:void 0!==t.clearState&&t.clearState,requestConfig:{},paginationOn:void 0!==t.paginationOn?t.paginationOn:defaultYasguiConfig.paginationOn,pageSize:void 0!==t.pageSize?t.pageSize:defaultYasguiConfig.pageSize,yasqe:{prefixes:[],extraKeys:{},keyboardShortcutDescriptions:[],isVirtualRepository:void 0!==t.isVirtualRepository?t.isVirtualRepository:defaultYasqeConfig.isVirtualRepository,beforeUpdateQuery:void 0!==t.beforeUpdateQuery?t.beforeUpdateQuery:defaultYasqeConfig.beforeUpdateQuery,getRepositoryStatementsCount:void 0!==t.getRepositoryStatementsCount?t.getRepositoryStatementsCount:defaultYasqeConfig.getRepositoryStatementsCount},yasr:{showQueryLoader:void 0!==t.showQueryLoader?t.showQueryLoader:defaultYasrConfig.showQueryLoader,sparqlResponse:t.sparqlResponse,prefixes:{},defaultPlugin:"",pluginOrder:[],externalPluginsConfigurations:YasrService.getPluginsConfigurations(t)}},e.yasguiConfig.requestConfig.endpoint=t.endpoint||defaultYasguiConfig.endpoint,e.yasguiConfig.requestConfig.method=t.method||defaultYasguiConfig.method,e.yasguiConfig.defaultTabNameLabelKey=t.defaultTabNameLabelKey,e.yasguiConfig.requestConfig.headers=t.headers||defaultYasguiConfig.headers,e.yasguiConfig.copyEndpointOnNewTab=void 0!==t.copyEndpointOnNewTab?t.copyEndpointOnNewTab:defaultYasguiConfig.copyEndpointOnNewTab,e.yasguiConfig.persistenceLabelConfig=t.componentId||defaultYasguiConfig.persistenceLabelConfig,e.yasguiConfig.populateFromUrl=t.populateFromUrl||defaultYasguiConfig.populateFromUrl,e.yasguiConfig.yasr.prefixes=t.prefixes||defaultYasrConfig.prefixes,e.yasguiConfig.yasr.defaultPlugin=t.defaultPlugin||defaultYasrConfig.defaultPlugin,e.yasguiConfig.yasr.pluginOrder=t.pluginOrder||defaultYasrConfig.pluginOrder,void 0!==t.maxPersistentResponseSize&&(e.yasguiConfig.yasr.maxPersistentResponseSize=t.maxPersistentResponseSize),e.yasguiConfig.yasr.showResultInfo=void 0!==t.showResultInfo?t.showResultInfo:defaultOntotextYasguiConfig.showResultInfo;const n=t.yasrToolbarPlugins||[];if(void 0===t.downloadAsOn||t.downloadAsOn){const e=new DownloadAsYasrToolbarPlugin(this.serviceFactory,t.pluginsConfigurations);n.push(e),n.push(new PivotTableDownloadPlugin),n.push(new ChartDownloadPlugin)}return e.yasguiConfig.paginationOn&&n.push(new PaginationYasrToolbarPlugin),e.yasguiConfig.yasr.yasrToolbarPlugins=n,e.yasguiConfig.yasqe.value=t.query||defaultYasqeConfig.query,e.yasguiConfig.yasqe.prefixes=NamespaceService.namespacesMapToArray(e.yasguiConfig.yasr.prefixes),e.yasqeConfig={},e.yasqeConfig.initialQuery=t.initialQuery||defaultYasqeConfig.initialQuery,e.yasguiConfig.yasqe.createShareableLink=t.createShareableLink||defaultYasqeConfig.createShareableLink,void 0!==t.yasqeMode&&(e.yasguiConfig.yasqe.readOnly=t.yasqeMode!==YasqeMode.WRITE&&(t.yasqeMode===YasqeMode.READ||(t.yasqeMode===YasqeMode.PROTECTED?"nocursor":defaultYasqeConfig.readOnly))),e.yasguiConfig.yasqe.showQueryButton=void 0!==t.showQueryButton?t.showQueryButton:defaultYasqeConfig.showQueryButton,e.yasguiConfig.yasqe.resizeable=void 0!==t.showYasqeResizer?t.showYasqeResizer:defaultYasqeConfig.resizeable,e.yasguiConfig.yasqe.yasqeActionButtons=void 0!==t.yasqeActionButtons&&t.yasqeActionButtons.length?t.yasqeActionButtons:defaultYasqeConfig.yasqeActionButtons,e.yasguiConfig.yasqe.pluginButtons=t=>this.getYasqeActionButtons(e,defaultYasqeConfig,t),t.onQueryAborted instanceof Function&&(e.yasguiConfig.yasqe.onQueryAborted=t.onQueryAborted),this.initShortcuts(e),this.registerCustomAutocompleters(e),e}registerCustomAutocompleters(t){const e=t.yasqeAutocomplete.LocalNamesAutocompleter;"function"==typeof e&&Yasqe.registerAutocompleter(getLocalNamesAutocompleter(e),!0)}initShortcuts(t){const e=KeyboardShortcutService.initKeyboardShortcutMapping(t);t.yasguiConfig.yasqe.extraKeys=e.flatMap((t=>t.keyboardShortcuts.map((e=>({keyboardShortcut:e,executeFunction:t.executeFunction}))))).reduce(((t,e)=>(t[e.keyboardShortcut]=e.executeFunction,t)),{}),t.yasguiConfig.yasqe.keyboardShortcutDescriptions=e.map((t=>t.NAME.toString()))}getYasqeActionButtons(t,e,n){const r=e.yasqeActionButtons.filter((t=>t.visible));t.yasguiConfig.yasqe.yasqeActionButtons&&t.yasguiConfig.yasqe.yasqeActionButtons.length&&t.yasguiConfig.yasqe.yasqeActionButtons.forEach((t=>{const e=r.findIndex((e=>e.name===t.name));t.visible?-1==e?r.push(t):r.splice(e,1,t):r.splice(e,1)}));const i=[];return r.forEach((e=>{const r=this.yasqeService.getButtonInstance(e,t,n);Array.isArray(r)?i.push(...r):i.push(r)})),i}}class OutputEvent{constructor(t,e){this.TYPE=t,this.payload=e}}const toOutputEvent=t=>{if(!t.detail.OUTPUT_TYPE)throw Error(`Can't convert ${t.detail.TYPE} to OutputEvent. Missing property "OUTPUT_TYPE"`);return new OutputEvent(t.detail.OUTPUT_TYPE,removeUndefinedProperties(t.detail.payload))},removeUndefinedProperties=t=>t?Object.keys(t).reduce(((e,n)=>{const r=e;return void 0!==t[n]&&(r[n]=t[n]),r}),{}):{};class SavedQueryOpened extends OutputEvent{constructor(t){super(OutputEventType.OUTPUT_SAVED_QUERY_OPENED,{tab:t})}}class Debounce{static createDebouncedFunction(t,e=300){let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>t.apply(this,r)),e)}}}const ontotextYasguiWebComponentCss='@charset "UTF-8";.yasr .yasr_btn{border:none;background:inherit}.yasr .svgImg{display:flex;flex-direction:row}.yasr .svgImg svg{max-width:100%;max-height:100%;width:15px;height:15px;align-self:center}.yasr .yasr_btn.yasr_external_ref_btn{font-weight:600;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.yasr .yasr_btn.yasr_external_ref_btn:active,.yasr .yasr_btn.yasr_external_ref_btn:focus{color:inherit;-webkit-text-decoration-color:inherit;text-decoration-color:inherit}.yasr .yasr_btn.yasr_external_ref_btn .svgImg svg{width:18px;height:18px}.yasr a{color:#428bca;text-decoration:none}.yasr a:active,.yasr a:hover{outline:0;color:#2a6496;text-decoration:underline}.yasr .yasr_btnGroup{margin:0;padding:0;list-style:none;display:flex;overflow-x:auto;overflow-y:hidden}.yasr .yasr_btnGroup .plugin_icon{height:15px;width:15px;margin-right:5px;text-align:center}.yasr .yasr_btnGroup .yasr_btn{border-bottom:2px solid transparent;padding-left:6px;padding-right:6px;margin-left:6px;margin-right:6px}.yasr .yasr_btnGroup .yasr_btn.selected{border-bottom:2px solid #337ab7}@media (max-width: 768px){.yasr .yasr_btn span{display:none}.yasr .yasr_btn .plugin_icon{margin-right:0}}.yasr .yasr_header{display:flex;flex-wrap:wrap}.yasr .yasr_fallback_info:not(:empty){margin-top:5px;border:1px solid #d1d1d1;padding:0.5rem;background:#f7f7f7}.yasr .yasr_fallback_info:not(:empty) p{margin:0}.yasr .yasr_help_variable{background:#dff0ff;color:#428bca}.yasr .yasr_response_chip{color:#505050;background:#f5f5f5;border-radius:6px;display:flex;font-size:11pt;max-height:16pt;align-self:center;align-items:center;justify-content:center;white-space:nowrap;padding:6px;margin-left:5px;overflow:visible;box-sizing:border-box}.yasr .yasr_response_chip.empty{display:none}.yasr .yasr_plugin_control{min-height:50px;display:flex;margin-left:auto;align-items:center}.yasr .yasr_plugin_control:empty{display:none}.yasr .yasr_btn{color:#505050;fill:#505050;display:flex;align-items:center;justify-content:center;cursor:pointer;white-space:nowrap;padding:6px 12px;overflow:visible;box-sizing:border-box}.yasr .yasr_btn.btn_icon{padding:4px 8px}.yasr .yasr_btn.disabled,.yasr .yasr_btn[disabled]{cursor:default;opacity:0.5;box-shadow:none}.yasr .yasr_btn:not(.disabled):hover{fill:#000;color:#000}.yasr .yasr_btn.selected,.yasr .yasr_btn:focus{color:#337ab7;fill:#337ab7}.yasr .space_element{flex-grow:1;min-width:10px}.yasr .yasr-toolbar{display:flex}.yasr .yasr-toolbar .yasr-toolbar-element{margin-left:6px;margin-right:6px}.yasr .errorResult{padding:10px}.yasr .errorResult .errorHeader{overflow:hidden}.yasr .errorResult .errorHeader .yasr_tryQuery{float:right;text-decoration:none;padding-top:3px;padding-bottom:3px}.yasr .errorResult .errorHeader span.status{display:inline-block;padding:0.35em 0.5rem;font-size:75%;font-weight:600;line-height:1.35;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:0.25em;color:#fff;background-color:#dc3545}.yasr .errorResult .errorMessageContainer{display:flex}.yasr .errorResult .errorMessageContainer .errorMessage{flex-grow:1;width:0;min-width:100px;overflow:auto;display:block;padding:10px;margin:10px 0;font-size:13px;line-height:1.42857;word-break:break-all;word-wrap:break-word;color:#333;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}.yasr .errorResult .redOutline{color:#a94442;background-color:#f2dede;margin-top:10px;padding:5px 1em;border:1px solid #ebccd1;border-radius:4px}.yasr .tableControls{display:flex;align-items:center;padding:0 5px 0 0;flex-wrap:wrap}.yasr .tableControls .tableFilter{margin-right:10px;height:100%}.yasr .tableControls .tableSizer{height:100%}.yasr .tableControls .switch{display:flex;align-items:center;margin-right:10px}.yasr .dataTable.ellipseTable{white-space:nowrap}.yasr .dataTable.ellipseTable div:not(.expanded){overflow:hidden;text-overflow:ellipsis}.yasr .dataTable:not(.ellipseTable) div:not(.expanded),.yasr .expanded{word-break:break-all}.yasr .expanded{white-space:normal}.yasr .expandable:not(.expanded){cursor:pointer}.yasr .expandable:not(.expanded) a{pointer-events:none}.yasr .dataTables_wrapper{font-size:0.9em;min-width:100%}.yasr .dataTables_wrapper .grip-container{max-width:100%}.yasr .dataTables_wrapper .grip-padding>tbody>tr>td,.yasr .dataTables_wrapper .grip-padding>tbody>tr>th{padding-left:7px !important;padding-right:5px !important}.yasr .dataTables_wrapper .dataTable{min-width:100%;box-sizing:border-box}.yasr .dataTables_wrapper .dataTable:not(.withRowNumber) tr td:first-child:not(.dataTables_empty),.yasr .dataTables_wrapper .dataTable:not(.withRowNumber) tr th:first-child{display:none}.yasr .dataTables_wrapper .dataTable.no-footer{border-bottom:none}.yasr .dataTables_wrapper .dataTable thead .sorting{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7XQMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC")}.yasr .dataTables_wrapper .dataTable thead .sorting_asc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==")}.yasr .dataTables_wrapper .dataTable thead .sorting_desc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII=")}.yasr .dataTables_wrapper .dataTable thead .sorting_asc_disabled{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAW0lEQVQoz2NgoCm4w3Vnwh02wspK7/y6k01Ikdadx3f+37l9RxmfIsY7c4GKQHDiHUbcyhzvvIMq+3THBpci3jv7oIpAcMcdduzKEu/8vPMdDn/eiWQYBYMKAAC3ykIEuYQJUgAAAABJRU5ErkJggg==")}.yasr .dataTables_wrapper .dataTable thead .sorting_desc_disabled{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAWUlEQVQoz2NgGAWDCtyJvPPzznc4/HknEbsy9js77vyHw313eHGZZ3PnE1TRuzuOuK1lvDMRqmzuHUZ87lO+cxuo6PEdLUIeyb7z604pYf+y3Zlwh4u2YQoAc7ZCBHH4jigAAAAASUVORK5CYII=")}.yasr .dataTables_wrapper .dataTable tbody tr:hover{background-color:#f9f9f9}.yasr .dataTables_wrapper .dataTable thead tr th{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:700;text-align:start;overflow:hidden;text-overflow:ellipsis;border:none;padding:5px 5px 5px 7px;min-width:28px}.yasr .dataTables_wrapper .dataTable thead tr th.sorting{min-width:10px;padding-right:18px}.yasr .dataTables_wrapper .dataTable thead tr th:hover{background-color:#f9f9f9}.yasr .dataTables_wrapper .dataTable td{padding:5px}.yasr .dataTables_wrapper .dataTable td>div{-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.yasr .dataTables_wrapper .dataTable td>div.rowNumber{word-break:keep-all;overflow:visible}.yasr .dataTables_wrapper .dataTable td .tableEllipse{cursor:pointer;font-weight:700;padding:0 2px;background-color:rgba(66, 139, 202, 0.2);border-radius:2px;margin:0 3px}.yasr .dataTables_wrapper div.dataTables_paginate.paging_simple_numbers a.paginate_button{border:none;background:transparent}.yasr .dataTables_wrapper div.dataTables_paginate.paging_simple_numbers a.paginate_button .disabled{color:#505050}.yasr .dataTables_wrapper div.dataTables_paginate.paging_simple_numbers a.paginate_button.current{border:none;background:transparent;text-decoration:underline !important}.yasr .dataTables_wrapper div.dataTables_paginate.paging_simple_numbers a.paginate_button:hover{border:none;background:transparent}.yasr .dataTables_wrapper div.dataTables_paginate.paging_simple_numbers a.paginate_button:hover:not(.disabled){color:#000 !important}.yasr .dataTables_wrapper div.dataTables_paginate.paging_simple_numbers a.paginate_button:active{box-shadow:none}table.dataTable{width:100%;margin:0 auto;clear:both;border-collapse:separate;border-spacing:0}table.dataTable tfoot th,table.dataTable thead th{font-weight:700}table.dataTable thead td,table.dataTable thead th{padding:10px 18px;border-bottom:1px solid #111}table.dataTable thead td:active,table.dataTable thead th:active{outline:none}table.dataTable tfoot td,table.dataTable tfoot th{padding:10px 18px 6px;border-top:1px solid #111}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_desc_disabled{cursor:pointer;*cursor:hand;background-repeat:no-repeat;background-position:100%}table.dataTable tbody tr{background-color:#fff}table.dataTable tbody tr.selected{background-color:#b0bed9}table.dataTable tbody td,table.dataTable tbody th{padding:8px 10px}table.dataTable.display tbody td,table.dataTable.display tbody th,table.dataTable.row-border tbody td,table.dataTable.row-border tbody th{border-top:1px solid #ddd}table.dataTable.display tbody tr:first-child td,table.dataTable.display tbody tr:first-child th,table.dataTable.row-border tbody tr:first-child td,table.dataTable.row-border tbody tr:first-child th{border-top:none}table.dataTable.cell-border tbody td,table.dataTable.cell-border tbody th{border-top:1px solid #ddd;border-right:1px solid #ddd}table.dataTable.cell-border tbody tr td:first-child,table.dataTable.cell-border tbody tr th:first-child{border-left:1px solid #ddd}table.dataTable.cell-border tbody tr:first-child td,table.dataTable.cell-border tbody tr:first-child th{border-top:none}table.dataTable.display tbody tr.odd,table.dataTable.stripe tbody tr.odd{background-color:#f9f9f9}table.dataTable.display tbody tr.odd.selected,table.dataTable.stripe tbody tr.odd.selected{background-color:#acbad4}table.dataTable.display tbody tr:hover,table.dataTable.hover tbody tr:hover{background-color:#f6f6f6}table.dataTable.display tbody tr:hover.selected,table.dataTable.hover tbody tr:hover.selected{background-color:#aab7d1}table.dataTable.display tbody tr>.sorting_1,table.dataTable.display tbody tr>.sorting_2,table.dataTable.display tbody tr>.sorting_3,table.dataTable.order-column tbody tr>.sorting_1,table.dataTable.order-column tbody tr>.sorting_2,table.dataTable.order-column tbody tr>.sorting_3{background-color:#fafafa}table.dataTable.display tbody tr.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_2,table.dataTable.display tbody tr.selected>.sorting_3,table.dataTable.order-column tbody tr.selected>.sorting_1,table.dataTable.order-column tbody tr.selected>.sorting_2,table.dataTable.order-column tbody tr.selected>.sorting_3{background-color:#acbad5}table.dataTable.display tbody tr.odd>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd>.sorting_1{background-color:#f1f1f1}table.dataTable.display tbody tr.odd>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd>.sorting_2{background-color:#f3f3f3}table.dataTable.display tbody tr.odd>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd>.sorting_3{background-color:#f5f5f5}table.dataTable.display tbody tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1{background-color:#a6b4cd}table.dataTable.display tbody tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2{background-color:#a8b5cf}table.dataTable.display tbody tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3{background-color:#a9b7d1}table.dataTable.display tbody tr.even>.sorting_1,table.dataTable.order-column.stripe tbody tr.even>.sorting_1{background-color:#fafafa}table.dataTable.display tbody tr.even>.sorting_2,table.dataTable.order-column.stripe tbody tr.even>.sorting_2{background-color:#fcfcfc}table.dataTable.display tbody tr.even>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_3{background-color:#fefefe}table.dataTable.display tbody tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1{background-color:#acbad5}table.dataTable.display tbody tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2{background-color:#aebcd6}table.dataTable.display tbody tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_3{background-color:#afbdd8}table.dataTable.display tbody tr:hover>.sorting_1,table.dataTable.order-column.hover tbody tr:hover>.sorting_1{background-color:#eaeaea}table.dataTable.display tbody tr:hover>.sorting_2,table.dataTable.order-column.hover tbody tr:hover>.sorting_2{background-color:#ececec}table.dataTable.display tbody tr:hover>.sorting_3,table.dataTable.order-column.hover tbody tr:hover>.sorting_3{background-color:#efefef}table.dataTable.display tbody tr:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_1{background-color:#a2aec7}table.dataTable.display tbody tr:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_2{background-color:#a3b0c9}table.dataTable.display tbody tr:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_3{background-color:#a5b2cb}table.dataTable.no-footer{border-bottom:1px solid #111}table.dataTable.nowrap td,table.dataTable.nowrap th{white-space:nowrap}table.dataTable.compact thead td,table.dataTable.compact thead th{padding:4px 17px}table.dataTable.compact tbody td,table.dataTable.compact tbody th,table.dataTable.compact tfoot td,table.dataTable.compact tfoot th{padding:4px}table.dataTable td.dt-left,table.dataTable th.dt-left{text-align:left}table.dataTable td.dataTables_empty,table.dataTable td.dt-center,table.dataTable th.dt-center{text-align:center}table.dataTable td.dt-right,table.dataTable th.dt-right{text-align:right}table.dataTable td.dt-justify,table.dataTable th.dt-justify{text-align:justify}table.dataTable td.dt-nowrap,table.dataTable th.dt-nowrap{white-space:nowrap}table.dataTable tfoot td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable thead th.dt-head-left{text-align:left}table.dataTable tfoot td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable thead th.dt-head-center{text-align:center}table.dataTable tfoot td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable thead th.dt-head-right{text-align:right}table.dataTable tfoot td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable thead th.dt-head-justify{text-align:justify}table.dataTable tfoot td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable thead th.dt-head-nowrap{white-space:nowrap}table.dataTable tbody td.dt-body-left,table.dataTable tbody th.dt-body-left{text-align:left}table.dataTable tbody td.dt-body-center,table.dataTable tbody th.dt-body-center{text-align:center}table.dataTable tbody td.dt-body-right,table.dataTable tbody th.dt-body-right{text-align:right}table.dataTable tbody td.dt-body-justify,table.dataTable tbody th.dt-body-justify{text-align:justify}table.dataTable tbody td.dt-body-nowrap,table.dataTable tbody th.dt-body-nowrap{white-space:nowrap}table.dataTable,table.dataTable td,table.dataTable th{box-sizing:content-box}.dataTables_wrapper{position:relative;clear:both;*zoom:1;zoom:1}.dataTables_wrapper .dataTables_length{float:left}.dataTables_wrapper .dataTables_length select{border:1px solid #aaa;border-radius:3px;background-color:transparent;padding:4px}.dataTables_wrapper .dataTables_filter{float:right;text-align:right}.dataTables_wrapper .dataTables_filter input{border:1px solid #aaa;border-radius:3px;padding:5px;background-color:transparent;margin-left:3px}.dataTables_wrapper .dataTables_info{clear:both;float:left;padding-top:0.755em}.dataTables_wrapper .dataTables_paginate{float:right;text-align:right;padding-top:0.25em}.dataTables_wrapper .dataTables_paginate .paginate_button{box-sizing:border-box;display:inline-block;min-width:1.5em;padding:0.5em 1em;margin-left:2px;text-align:center;text-decoration:none !important;cursor:pointer;*cursor:hand;color:#333 !important;border:1px solid transparent;border-radius:2px}.dataTables_wrapper .dataTables_paginate .paginate_button.current,.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{color:#333 !important;border:1px solid #979797;background-color:#fff;background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(100%, #dcdcdc));background:-webkit-linear-gradient(top, #fff, #dcdcdc);background:-moz-linear-gradient(top, #fff 0, #dcdcdc 100%);background:-ms-linear-gradient(top, #fff 0, #dcdcdc 100%);background:-o-linear-gradient(top, #fff 0, #dcdcdc 100%);background:linear-gradient(180deg, #fff 0, #dcdcdc)}.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover{cursor:default;color:#666 !important;border:1px solid transparent;background:transparent;box-shadow:none}.dataTables_wrapper .dataTables_paginate .paginate_button:hover{color:#fff !important;border:1px solid #111;background-color:#585858;background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #585858), color-stop(100%, #111));background:-webkit-linear-gradient(top, #585858, #111);background:-moz-linear-gradient(top, #585858 0, #111 100%);background:-ms-linear-gradient(top, #585858 0, #111 100%);background:-o-linear-gradient(top, #585858 0, #111 100%);background:linear-gradient(180deg, #585858 0, #111)}.dataTables_wrapper .dataTables_paginate .paginate_button:active{outline:none;background-color:#2b2b2b;background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #2b2b2b), color-stop(100%, #0c0c0c));background:-webkit-linear-gradient(top, #2b2b2b, #0c0c0c);background:-moz-linear-gradient(top, #2b2b2b 0, #0c0c0c 100%);background:-ms-linear-gradient(top, #2b2b2b 0, #0c0c0c 100%);background:-o-linear-gradient(top, #2b2b2b 0, #0c0c0c 100%);background:linear-gradient(180deg, #2b2b2b 0, #0c0c0c);box-shadow:inset 0 0 3px #111}.dataTables_wrapper .dataTables_paginate .ellipsis{padding:0 1em}.dataTables_wrapper .dataTables_processing{position:absolute;top:50%;left:50%;width:100%;height:40px;margin-left:-50%;margin-top:-25px;padding-top:20px;text-align:center;font-size:1.2em;background-color:#fff;background:-webkit-gradient(linear, left top, right top, color-stop(0, rgba(255, 255, 255, 0)), color-stop(25%, rgba(255, 255, 255, 0.9)), color-stop(75%, rgba(255, 255, 255, 0.9)), color-stop(100%, rgba(255, 255, 255, 0)));background:-webkit-linear-gradient(left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0));background:-moz-linear-gradient(left, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);background:-ms-linear-gradient(left, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);background:-o-linear-gradient(left, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);background:linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0))}.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_paginate,.dataTables_wrapper .dataTables_processing{color:#333}.dataTables_wrapper .dataTables_scroll{clear:both}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody{*margin-top:-1px;-webkit-overflow-scrolling:touch}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th{vertical-align:middle}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th>div.dataTables_sizing{height:0;overflow:hidden;margin:0 !important;padding:0 !important}.dataTables_wrapper.no-footer .dataTables_scrollBody{border-bottom:1px solid #111}.dataTables_wrapper.no-footer div.dataTables_scrollBody>table,.dataTables_wrapper.no-footer div.dataTables_scrollHead table.dataTable{border-bottom:none}.dataTables_wrapper:after{visibility:hidden;display:block;content:"";clear:both;height:0}@media screen and (max-width: 767px){.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{float:none;text-align:center}.dataTables_wrapper .dataTables_paginate{margin-top:0.5em}}@media screen and (max-width: 640px){.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_length{float:none;text-align:center}.dataTables_wrapper .dataTables_filter{margin-top:0.5em}}.yasqe .CodeMirror{min-height:60px}.yasqe .svgImg{display:inline-block}.yasqe span.shortlinkErr{font-size:small;color:red;font-weight:700;float:left}.yasqe .CodeMirror-hint{max-width:30em}.yasqe .notificationContainer{width:100%;display:flex;justify-content:center;position:absolute;bottom:0}.yasqe .notification{z-index:4;padding:0 5px;max-height:0;color:#999;background-color:#eee;font-size:90%;text-align:center;transition:max-height 0.2s ease-in;border-top-right-radius:2px;border-top-left-radius:2px}.yasqe .notification.active{max-height:3rem}.yasqe .parseErrorIcon{width:13px;height:13px;margin-top:2px;margin-left:2px}.yasqe .parseErrorIcon svg g{fill:red}.yasqe .yasqe_tooltip{background:#333;background:rgba(0, 0, 0, 0.8);border-radius:5px;color:#fff;padding:5px 15px;width:220px;white-space:pre-wrap;white-space:normal;margin-top:5px}.yasqe .notificationLoader{width:18px;height:18px;vertical-align:middle}.yasqe .resizeWrapper{width:100%;height:10px;display:flex;align-items:center;justify-content:center;cursor:row-resize}.yasqe .resizeChip{width:20%;height:4px;background-color:#d1d1d1;visibility:hidden;border-radius:2px}.yasqe:hover .resizeChip{visibility:visible}.yasqe .yasqe_btn{color:#333;background-color:#fff;border:1px solid #ccc;display:inline-block;text-align:center;vertical-align:middle;cursor:pointer;white-space:nowrap;padding:6px 12px;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:visible;box-sizing:border-box}.yasqe .yasqe_btn.btn_icon{padding:4px 8px}.yasqe .yasqe_btn.disabled,.yasqe .yasqe_btn[disabled]{cursor:default;opacity:0.5;filter:alpha(opacity=50);box-shadow:none}.yasqe .yasqe_btn:hover{outline:0;background-color:#ebebeb;border-color:#adadad}.yasqe .yasqe_btn.selected,.yasqe .yasqe_btn:focus{color:#fff;outline:0;background-color:#337ab7;border-color:#337ab7}.yasqe .yasqe_btn.btn_icon:focus{color:#333;background-color:#fff;border:1px solid #ccc}.yasqe .yasqe_btn.yasqe_btn-sm{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.yasqe .yasqe_buttons{position:absolute;top:10px;right:20px;z-index:5}.yasqe .yasqe_buttons svg{fill:#505050}.yasqe .yasqe_buttons .yasqe_share{cursor:pointer;margin-top:3px;display:inline-block;border:none;background:none}.yasqe .yasqe_buttons .yasqe_share svg{height:25px;width:25px}.yasqe .yasqe_buttons button{vertical-align:top;margin-left:5px}.yasqe .yasqe_buttons .yasqe_sharePopup{position:absolute;padding:4px;margin-left:0;background-color:#fff;border:1px solid #e3e3e3;border-radius:2px;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);width:600px;height:auto;display:flex}.yasqe .yasqe_buttons .yasqe_sharePopup .inputWrapper{flex-grow:100}.yasqe .yasqe_buttons .yasqe_sharePopup input{float:left;width:100%;border:0;-ms-box-sizing:border-box;-khtml-box-sizing:border-box;box-sizing:border-box}.yasqe .yasqe_buttons .yasqe_sharePopup button{float:right;margin-left:5px}.yasqe .yasqe_buttons .yasqe_sharePopup textarea{width:100%}.yasqe .yasqe_buttons .yasqe_queryButton{display:inline-block;position:relative;border:none;background:none;padding:0;cursor:pointer;width:40px;height:40px}.yasqe .yasqe_buttons .yasqe_queryButton .queryIcon{display:block}.yasqe .yasqe_buttons .yasqe_queryButton .queryIcon svg{width:40px;height:40px}.yasqe .yasqe_buttons .yasqe_queryButton .svgImg{position:absolute;height:inherit;top:0}.yasqe .yasqe_buttons .yasqe_queryButton.busy svg #loadingIcon{stroke-dasharray:100;-webkit-animation:dash 1.5s linear infinite;animation:dash 1.5s linear infinite;stroke-width:8px;stroke:#fff}@-webkit-keyframes dash{to{stroke-dashoffset:200}}@keyframes dash{to{stroke-dashoffset:200}}@-webkit-keyframes rotate{to{transform:rotate(1turn)}}@keyframes rotate{to{transform:rotate(1turn)}}.yasqe .yasqe_buttons .yasqe_queryButton .warningIcon{display:none}.yasqe .yasqe_buttons .yasqe_queryButton.query_error .warningIcon{display:block;top:5px;right:0}.yasqe .yasqe_buttons .yasqe_queryButton.query_error .warningIcon svg{width:15px;height:15px}.yasqe .yasqe_buttons .yasqe_queryButton.query_error .warningIcon svg g{fill:red}.yasqe .yasqe_buttons .yasqe_queryButton.query_disabled{cursor:not-allowed}.yasqe .yasqe_buttons .yasqe_queryButton.query_disabled .queryIcon{opacity:0.5;filter:alpha(opacity=50)}@-webkit-keyframes spin{to{transform:rotate(1turn)}}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;box-shadow:2px 3px 5px rgba(0, 0, 0, 0.2);border-radius:3px;border:1px solid silver;background:#fff;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0 !important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20, 255, 20, 0.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255, 150, 0, 0.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:0.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255, 255, 0, 0.4)}.cm-force-border{padding-right:0.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-foldmarker{color:#00f;text-shadow:#b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;font-family:arial;line-height:0.3;cursor:pointer}.CodeMirror-foldgutter{width:0.7em}.CodeMirror-foldgutter-folded,.CodeMirror-foldgutter-open{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"▾"}.CodeMirror-foldgutter-folded:after{content:"▸"}.yasqe .CodeMirror{line-height:1.5em;font-size:14px;border:1px solid #d1d1d1}.yasqe span.cm-error{border-bottom:2px dotted red}.yasqe .gutterErrorBar{width:4px}.yasqe .CodeMirror-foldmarker{color:#6e2500;text-shadow:#ff935e 1px 1px 2px, #ff935e -1px -1px 2px, #ff935e 1px -1px 2px, #ff935e -1px 1px 2px;font-size:19px}.yasqe .cm-matchhighlight{background-color:#dbdeed}.CodeMirror-hints.default{max-width:1000px}.CodeMirror-hints.default li{text-overflow:ellipsis;overflow:hidden}@media only screen and (max-width: 1000px){.CodeMirror-hints.default{max-width:800px}}.yasr .booleanResult{display:flex;align-items:center;justify-content:center}.yasr .booleanResult svg{margin-bottom:-10px;margin-right:7px}.yasr .yasr_results{position:relative}.yasr .yasr_results .CodeMirror{border:1px solid #d1d1d1;margin-top:5px;height:100%}.yasr .yasr_results .CodeMirror.overflow:before{background:linear-gradient(transparent, rgba(255, 255, 255, 0.666667) 75%, #fff);content:"";width:100%;height:100%;z-index:1200;position:absolute;pointer-events:none}.yasr .yasr_results .overlay{width:100%;position:absolute;bottom:0;z-index:1201;display:flex;pointer-events:none}.yasr .yasr_results .overlay:after,.yasr .yasr_results .overlay:before{content:"";flex-grow:1}.yasr .yasr_results .overlay_content{display:flex;align-content:center;justify-content:center;align-items:center;background:#fff;pointer-events:all;background:linear-gradient(90deg, transparent, #fff 5%, #fff 95%, transparent)}.yasr .yasr_results .yasr_btn.overlay_btn{border:1px solid #337ab7;background:#fff;color:#337ab7;padding:10px;margin:10px}.yasr .yasr_results .yasr_btn.overlay_btn svg{margin-left:0.5rem;fill:#337ab7;color:#337ab7}.yasr .yasr_results .yasr_btn.overlay_btn:hover{color:#255681;border-color:#337ab7;fill:#255681}.yasr .yasr_results .yasr_btn.overlay_btn:hover svg{color:#255681;fill:#255681}.yasgui .tabMenu{background:#f5f5f5;z-index:7;transition:all 0.5s;transform:translate3d(-100%, 0, 0) rotateY(90deg);transform-origin:100% 50%;visibility:hidden;width:600px;border:1px solid #ccc;position:absolute;top:35px;left:0;perspective:1500px;perspective-origin:0 50%;transform-style:preserve-3d}.yasgui .tabMenu.open{visibility:visible;transform:translate3d(-100%, 0, 0) rotateY(0deg);transition:all 0.5s;left:600px}@media (-ms-high-contrast: active), (-ms-high-contrast: none){.yasgui .tabMenu.open{min-width:600px}}@media (-ms-high-contrast: active), (-ms-high-contrast: none){.yasgui .tabMenu{height:0}}.yasgui .tabMenu .requestConfigWrapper{padding:10px;overflow:hidden;display:flex;flex-wrap:nowrap;background:#f5f5f5}.yasgui .tabMenu .requestConfigWrapper .selectorButton{background-color:transparent;border:none;border-bottom:1px solid #d1d1d1;height:30px;color:#505050;cursor:pointer}.yasgui .tabMenu .requestConfigWrapper .selectorButton:hover{color:#000;border-color:#000}.yasgui .tabMenu .requestConfigWrapper .selectorButton.selected{color:#337ab7;border-bottom:2px solid #337ab7}.yasgui .tabMenu .requestConfigWrapper .selectorButton:focus{outline:none}.yasgui .tabMenu .requestConfigWrapper .selectorButton:focus-visible{color:#000;border-color:#000}.yasgui .tabMenu .acceptWrapper{flex-direction:row}.yasgui .tabMenu .acceptWrapper .acceptLabel{justify-self:center}.yasgui .tabMenu .acceptWrapper .selector{flex-direction:column;display:flex;padding:2.5px 5px;flex-grow:1;width:100%}.yasgui .tabMenu .acceptWrapper .selector .selectorLabel{align-self:center;font-weight:700;font-size:small}.yasgui .tabMenu .textSetting{display:flex;flex-direction:column}.yasgui .tabMenu .textSetting .label{align-self:flex-start}.yasgui .tabMenu .textSetting .graphInput{white-space:nowrap}.yasgui .tabMenu .textSetting .textRow{flex-direction:row;flex-wrap:nowrap;white-space:nowrap}.yasgui .tabMenu .textSetting .removeButton{border:none;background:transparent;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.yasgui .tabMenu .textSetting .removeButton:hover{background:transparent;border-color:#000;color:#000;cursor:pointer}.yasgui .tabMenu .label{-webkit-text-decoration:#000;text-decoration:#000;font-weight:700;white-space:nowrap;padding-right:5px;align-self:center}.yasgui .autocomplete{padding:3px 6px;margin:4px 0;border:2px solid #ccc;width:100%;box-sizing:border-box;transition:border-color 0.2s ease-in}.yasgui .autocomplete:hover{border-color:#bbb}.yasgui .autocomplete:focus{border-color:#337ab7;background:none;outline:none}.yasgui .autocompleteWrapper{width:100%;max-width:700px;margin-left:10px;position:relative}.yasgui .autocompleteList{position:absolute;max-height:300px;overflow-y:auto;z-index:6;margin:-4px 0 0;padding:0;list-style:none;background:#fff;border:1px solid #aaa;box-sizing:border-box;left:0;right:0}.yasgui .autocompleteList:hover .autoComplete_result.autoComplete_selected:not(:hover){background:unset}.yasgui .autocompleteList:hover .autoComplete_result.autoComplete_selected:not(:hover) .removeItem{visibility:hidden}.yasgui .autocompleteList .autoComplete_result{cursor:pointer;padding:5px 10px;margin:0;overflow:hidden;display:flex;transition:background visibility 0.2s ease-in}.yasgui .autocompleteList .autoComplete_result b{color:#1f49a3}.yasgui .autocompleteList .autoComplete_result .autoComplete_highlighted{font-weight:700}.yasgui .autocompleteList .autoComplete_result.autoComplete_selected{background:#ccc}.yasgui .autocompleteList .autoComplete_result.autoComplete_selected .removeItem{visibility:visible}.yasgui .autocompleteList .autoComplete_result:hover{background:#ccc}.yasgui .autocompleteList .autoComplete_result:hover .removeItem{visibility:visible}.yasgui .autocompleteList .noResults{padding:5px 10px;margin:0}.yasgui .autocompleteList .removeItem{color:#000;font-size:15px;text-shadow:0 1px 0 #fff;opacity:0.5;font-weight:700;text-align:end;margin-left:auto;visibility:hidden;background:none;border:none;cursor:pointer;margin-right:-10px;padding-right:20px}.yasgui .autocompleteList .removeItem:hover{opacity:0.8;color:#1f49a3}.yasgui .autocompleteList:empty{display:none}.yasgui .tabPanel{display:none;position:relative}.yasgui .tabPanel.active{display:block}.yasgui .yasr{margin-top:5px}.yasgui .tabContextButton{border:none;background:none;align-self:center;padding-left:10px;cursor:pointer;color:#505050;fill:#505050}.yasgui .tabContextButton .svgImg{width:15px;height:15px;font-family:initial}.yasgui .tabContextButton svg{max-width:15px;max-height:15px}.yasgui .tabContextButton:hover{color:#000;fill:#000}.yasgui .controlbar{display:flex;align-content:center;max-height:35px}.yasgui.context-menu{position:absolute;z-index:10;background:#fff;min-width:160px;font-size:14px;border:1px solid rgba(0, 0, 0, 0.15);border-bottom-right-radius:4px;border-bottom-left-radius:4px;box-shadow:0 6px 12px rgba(0, 0, 0, 0.175);background-clip:padding-box}.yasgui.context-menu hr{margin:8px auto;border:none;border-top:1px solid #aaa;border-bottom:1px solid #fff}.yasgui.context-menu .context-menu-list{padding:0}.yasgui.context-menu .context-menu-item{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857;color:#333;white-space:nowrap;cursor:pointer}.yasgui.context-menu .context-menu-item:hover{text-decoration:none;color:#000;background-color:#f5f5f5}.yasgui.context-menu .context-menu-item.disabled{text-decoration:none;color:grey;background-color:#e5e5e5;cursor:not-allowed}.yasgui .tabsList{display:flex;flex-wrap:wrap}.yasgui .tabsList .sortable-placeholder{min-width:100px;min-height:35px;border:2px dotted #888}.yasgui .tabsList a{cursor:pointer;display:flex;align-items:center;justify-content:center;min-height:35px;border-bottom:2px solid transparent;box-sizing:border-box}.yasgui .tabsList .addTab{cursor:pointer;height:100%;font-size:120%;font-weight:800;margin-left:15px;padding:0 5px 2px;background:inherit;border:none;color:#337ab7}.yasgui .tabsList .addTab:focus-visible,.yasgui .tabsList .addTab:hover{transform:scale(1.1)}.yasgui .tabsList .addTab:focus{color:#faa857}.yasgui .tabsList .tab{position:relative}.yasgui .tabsList .tab.query-invalid a{-webkit-text-decoration:underline dotted red;text-decoration:underline dotted red}.yasgui .tabsList .tab .loader{display:none;background-color:#d5d5d5;height:2px;position:absolute;bottom:0;left:0;right:100%;-webkit-animation-name:slide;animation-name:slide;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:ease;animation-timing-function:ease;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}@-webkit-keyframes slide{0%{left:0;right:100%}70%{left:0;right:0}to{left:100%;right:0}}@keyframes slide{0%{left:0;right:100%}70%{left:0;right:0}to{left:100%;right:0}}.yasgui .tabsList .tab.active .loader{background-color:#9fc4e4}.yasgui .tabsList .tab:hover .loader{background-color:#337ab7}.yasgui .tabsList .tab.querying .loader{display:block}.yasgui .tabsList .tab.active a{border-bottom-color:#337ab7;color:#555}.yasgui .tabsList .tab input{display:none;outline:none;border:none}.yasgui .tabsList .tab.renaming .closeTab,.yasgui .tabsList .tab.renaming span{display:none}.yasgui .tabsList .tab.renaming input{display:block}.yasgui .tabsList .tab a{font-weight:600;color:#888;font-size:15px;line-height:1.5rem;font-weight:500;min-width:120px;padding:0 24px 0 30px;white-space:nowrap;overflow:hidden}.yasgui .tabsList .tab a:hover{border-bottom-color:#9fc4e4;color:#555}.yasgui .tabsList .tab a:focus{border-bottom-color:#faa857;color:#555}.yasgui .tabsList .tab a .closeTab{color:#000;margin-left:7px;font-size:15px;text-shadow:0 1px 0 #fff;opacity:0.2;font-weight:700;padding:2px}.yasgui .tabsList .tab a .closeTab:hover{opacity:0.5}.yasgui a{color:#337ab7;text-decoration:none}.yasgui .yasgui_textfield{display:block;padding-top:18.75px;position:relative}.yasgui .yasgui_textfield>label{position:absolute;top:0;display:block;width:100%;color:rgba(0, 0, 0, 0.54);font-size:12px;font-weight:400;line-height:15px;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.yasgui .yasgui_textfield>input,.yasgui .yasgui_textfield>textarea{box-sizing:border-box;display:block;color:rgba(0, 0, 0, 0.87);border:none;border-bottom:1px solid rgba(0, 0, 0, 0.26);outline:none;width:100%;padding:0;box-shadow:none;border-radius:0;font-size:15px;font-family:inherit;line-height:inherit;background-image:none}.yasgui .yasgui_textfield>input:focus,.yasgui .yasgui_textfield>textarea:focus{border-color:#337ab7;border-width:2px}.yasgui .yasgui_textfield>input:focus~label,.yasgui .yasgui_textfield>textarea:focus~label{color:#337ab7}.modal-dialog.google-visualization-charteditor-dialog{z-index:11;width:auto;margin:inherit}.modal-dialog.google-visualization-charteditor-dialog .charts-flat-menu-button{box-sizing:content-box}@font-face{font-family:"icomoon";src:url("../css/fonts/icons.eot?z4jeba");src:url("../css/fonts/icons.eot?z4jeba#iefix") format("embedded-opentype"), url("../css/fonts/icons.ttf?z4jeba") format("truetype"), url("../css/fonts/icons.woff?z4jeba") format("woff"), url("../css/fonts/icons.svg?z4jeba#icons") format("svg");font-weight:normal;font-style:normal}.red{color:#e84e0f}.hidden{display:none !important}.scroll-hidden{overflow:hidden}.yasgui-toolbar{display:flex;flex-direction:row;justify-content:flex-end;gap:3px;font-size:14px;font-weight:400}.yasgui-toolbar button{cursor:pointer;color:#003663;transition:all 0.15s ease-out}.yasgui-toolbar .yasgui-btn{height:27px;margin-right:3px;border:none;outline:none;background-color:#ebebeb}.yasgui-toolbar .yasgui-btn:hover{background-color:#d4d4d4;border-color:#d4d4d4}.yasgui-toolbar .btn-selected{background-color:#e84e0f;color:#fff}.yasgui-toolbar .btn-selected:hover{background-color:#e84e0f;border-color:#e84e0f}.yasgui-toolbar .btn-orientation{border:none;outline:none;color:#e84e0f;background-color:#fff;font-size:2em}.yasgui-toolbar .btn-orientation:hover{transform:scale(1.2)}[class^=icon-],[class*=" icon-"],.icon-any{font-family:"icomoon", sans-serif !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;vertical-align:middle;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-lg{font-size:1.2em}.icon-arrow-up-off:before{content:"\\e948"}.icon-collapse:before{content:"\\e949"}.icon-eye-off:before{content:"\\e94a"}.icon-expand:before{content:"\\e94c"}.icon-focus:before{content:"\\e94d"}.icon-rotate-left:before{content:"\\e94e"}.icon-rotate-right:before{content:"\\e94f"}.icon-info-alt:before{content:"\\e950"}.icon-facebook:before{content:"\\e942"}.icon-google-plus:before{content:"\\e943"}.icon-google:before{content:"\\e944"}.icon-linkedin:before{content:"\\e945"}.icon-twitter:before{content:"\\e946"}.icon-youtube:before{content:"\\e947"}.icon-play:before{content:"\\e941"}.icon-email:before{content:"\\e93e"}.icon-same-as-on:before{content:"\\e93f"}.icon-same-as-off:before{content:"\\e940"}.icon-repo-contour1:before{content:"\\e906"}.icon-repo-contour2:before{content:"\\e90b"}.icon-repo-contour3:before{content:"\\e910"}.icon-repo-master-ro-mute:before{content:"\\e913"}.icon-repo-free:before{content:"\\e936"}.icon-repo-master-mute:before{content:"\\e937"}.icon-repo-master-ro:before{content:"\\e938"}.icon-repo-master:before{content:"\\e939"}.icon-repo-se:before{content:"\\e93a"}.icon-repo-system:before{content:"\\e93b"}.icon-repo-worker:before{content:"\\e93c"}.icon-repo:before{content:"\\e93d"}.icon-copy:before{content:"\\e934"}.icon-eye:before{content:"\\e935"}.icon-connection-off:before{content:"\\e931"}.icon-connection-on:before{content:"\\e932"}.icon-key:before{content:"\\e933"}.icon-comment:before{content:"\\e930"}.icon-arrow-down:before{content:"\\e900"}.icon-arrow-left:before{content:"\\e901"}.icon-arrow-right:before{content:"\\e902"}.icon-arrow-up:before{content:"\\e903"}.icon-exchange:before{content:"\\e904"}.icon-columns:before{content:"\\e905"}.icon-inferred-off:before{content:"\\e907"}.icon-inferred-on:before{content:"\\e908"}.icon-save:before{content:"\\e909"}.icon-tag:before{content:"\\e90a"}.icon-file:before{content:"\\e90c"}.icon-folder:before{content:"\\e90d"}.icon-heartbeat:before{content:"\\e90e"}.icon-pin:before{content:"\\e90f"}.icon-zoom-in:before{content:"\\e911"}.icon-zoom-out:before{content:"\\e912"}.icon-check:before{content:"\\e914"}.icon-download:before{content:"\\e915"}.icon-external:before{content:"\\e916"}.icon-lock:before{content:"\\e917"}.icon-search:before{content:"\\e918"}.icon-upload:before{content:"\\e919"}.icon-caret-left:before{content:"\\e91a"}.icon-caret-right:before{content:"\\e91b"}.icon-caret-up:before{content:"\\e91c"}.icon-caret-up-after:after{content:"\\e91c"}.icon-minus:before{content:"\\e91d"}.icon-reload:before{content:"\\e91e"}.icon-trash:before{content:"\\e91f"}.icon-warning:before{content:"\\e920"}.icon-caret-down:before{content:"\\e921"}.icon-caret-down-after:after{content:"\\e921"}.icon-close:before{content:"\\e922"}.icon-edit:before{content:"\\e923"}.icon-info:before{content:"\\e924"}.icon-link:before{content:"\\e925"}.icon-more:before{content:"\\e926"}.icon-plus:before{content:"\\e927"}.icon-data:before{content:"\\e928"}.icon-help:before{content:"\\e929"}.icon-monitoring:before{content:"\\e92a"}.icon-settings:before{content:"\\e92b"}.icon-sparql:before{content:"\\e92c"}.icon-user-alt:before{content:"\\e92d"}.icon-export-alt:before{content:"\\e92e"}.icon-import:before{content:"\\e92f"}.icon-tick:before{content:"\\e956"}.icon-repo-ontop-alt:before{content:"\\e958"}.icon-repo-fedx-alt:before{content:"\\e959"}.icon-repo-graphdb-alt:before{content:"\\e95a"}.icon-export:before{content:"\\e95b"}.icon-readonly:before{content:"\\e95c"}.icon-repo-fedx:before{content:"\\e95d"}.icon-repo-graphdb:before{content:"\\e95e"}.icon-repo-ontop:before{content:"\\e95f"}.icon-repo-unknown:before{content:"\\e960"}.icon-translation:before{content:"\\e961"}.icon-user:before{content:"\\e962"}.icon-follower:before{content:"\\e962"}.alert{border-radius:0;border:1px solid transparent;position:relative;padding:1em}.alert-warning,.alert-info,.alert-help,.alert-danger,.alert-success{color:#000000A8}.alert-warning{background-color:#f9e6c0}.alert-info{background-color:#cfefec}.alert-help{background-color:#e7f7f5}.alert-success{background-color:#dff0d8}.alert-danger{background-color:#fbdbd5}.alert-info,.alert-warning,.alert-help,.alert-danger,.alert-success{padding-left:3em}.alert-info:before,.alert-warning:before,.alert-help:before,.alert-danger:before,.alert-success:before{font-family:"icomoon", sans-serif !important;font-size:1.6em;vertical-align:middle;line-height:1;position:absolute;left:0.6em;top:0.6em;color:#00000080}.alert-info:before{content:"\\e924"}.alert-warning:before{content:"\\e930"}.alert-help:before{content:"\\e929"}.alert-danger:before{content:"\\e920"}.alert-success:before{content:"\\e914"}.no-icon{padding-left:1em}.no-icon:before{display:none}.alert .alert{background-color:transparent}.icon-rotate-quarter:before{display:inline-block;-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform, visibility, opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.pivot-table-plugin{overflow:auto}.pivot-table-plugin .pvtUi{border-collapse:collapse}.pivot-table-plugin .pvtUi .pvtUnused.pivottable-plugin-unused-variables,.pivot-table-plugin .pvtUi .pvtCols.pivottable-plugin-columns,.pivot-table-plugin .pvtUi .pvtVals.pivottable-plugin-values,.pivot-table-plugin .pvtUi .pvtRows.pivottable-plugin-rows{background:transparent}.pivot-table-plugin .pvtUi .pivottable-plugin-unused-variables-header,.pivot-table-plugin .pvtUi .pivottable-plugin-columns-header,.pivot-table-plugin .pvtUi .pivottable-plugin-values-header,.pivot-table-plugin .pvtUi .pivottable-plugin-rows-header{color:#999;text-align:left;margin-left:8px !important;margin-bottom:8px !important;font-style:italic}.pivot-table-plugin .pvtUi td.pvtUnused.pivottable-plugin-unused-variables,.pivot-table-plugin .pvtUi td.pvtCols.pivottable-plugin-columns,.pivot-table-plugin .pvtUi td.pvtVals.pivottable-plugin-values,.pivot-table-plugin .pvtUi td.pvtRows.pivottable-plugin-rows{border:1px solid #ddd}.pivot-table-plugin .pvtUi .pvtAttr.povottable-plugin-variable{background:#337ab7 !important;color:#FFFFFF;padding:4px 7px}.pivot-table-plugin .pvtUi .pvtAttr.povottable-plugin-variable .pvtTriangle{color:#FFFFFF}.pivot-table-plugin .pvtUi .pvtAttr.povottable-plugin-variable .pivottable-plugin-variable-icon{display:inline-block;margin-left:6px;vertical-align:sub}.pivot-table-plugin .pvtUi .pvtAttr.povottable-plugin-variable .pivottable-plugin-variable-icon svg{fill:#FFFFFF}.pivot-table-plugin .pvtUi .pvtTable tr th{background-color:#f2f2f2}.pivot-table-plugin .pvtUi .pvtTable .pvtAxisLabel{background-color:#337ab7;color:#fff}.pivot-table-plugin .pvtUi .pvtTable .pvtTotalLabel{background-color:#f2f2f2}.pivot-table-plugin .pvtUi .pvtTable .pvtRowLabel{background-color:#f2f2f2;text-align:center}.pivot-table-plugin .pvtRendererArea textarea{border-color:#dddddd}.yasr .pivot-table-download-as-button{font-size:16px;font-weight:400;padding:5px 16px;line-height:1.25;border:none;outline:none;color:#FFFFFF;cursor:pointer;background-color:#e84e0f}.yasr .pivot-table-download-as-button .pivot-table-download-as-button-label{padding-left:8px}.yasr .chart-download-as-button{font-size:16px;font-weight:400;padding:5px 16px;line-height:1.25;border:none;outline:none;color:#fff;cursor:pointer;background-color:#e84e0f}.yasr .chart-download-as-button .chart-download-as-button-label{padding-left:8px}:host{display:block}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;box-shadow:2px 3px 5px rgba(0, 0, 0, 0.2);border:1px solid silver;background:#FFFFFF;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin-bottom:0;padding:5px 25px;white-space:pre;color:black;cursor:pointer}.CodeMirror-hint b{color:#ED4F2F;font-weight:bold}.CodeMirror-hint-active{background:#3385ff;color:#FFFFFF}.CodeMirror-hint-active b{color:#FFAD33}.CodeMirror-hint{max-width:100em}.yasgui-host-element{}.yasgui-host-element .yasgui{}.yasgui-host-element .yasgui .CodeMirror{border-color:#eeeeee}.yasgui-host-element .yasgui .CodeMirror-code{width:89%}.yasgui-host-element .yasgui .yasqe-fullscreen .CodeMirror{position:fixed;top:0;left:0;right:0;bottom:0;height:auto !important;z-index:1015}.yasgui-host-element .yasgui .yasqe .yasqe_buttons{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:100%}.yasgui-host-element .yasgui .yasqe .yasqe_buttons .yasqe_share{display:none}.yasgui-host-element .yasgui .yasqe .yasqe_buttons .yasqe_tooltip_queryButton{margin-top:auto;margin-bottom:32px}.yasgui-host-element .yasgui .yasqe .yasqe_buttons .yasqe_queryButton{width:unset;height:unset;padding:8px 16px;margin-top:1rem;color:#fff;background-color:#e84e0f;outline:none;font-size:1rem}.yasgui-host-element .yasgui .yasqe .yasqe_buttons .yasqe_queryButton:hover{background-color:#d0460d}.yasgui-host-element .yasgui .yasqe .yasqe_buttons .custom-button{border:none;background-color:#fff;color:#e84e0f;outline:none;font-size:2.5em;cursor:pointer;transition:all 0.15s ease-out}.yasgui-host-element .yasgui .yasqe .yasqe_buttons .custom-button:hover{color:#d0460d;transform:scale(1.2)}.yasgui-host-element .yasgui .yasqe .yasqe_buttons .custom-button:disabled:hover,.yasgui-host-element .yasgui .yasqe .yasqe_buttons .custom-button:disabled:focus{color:#818a91;text-decoration:none;cursor:not-allowed;opacity:0.65}.yasgui-host-element .yasgui .yasqe .yasqe_expandResultsButton.disabled{cursor:not-allowed;opacity:0.65}.yasgui-host-element .yasgui .yasqe-footer-buttons{display:flex;justify-content:end;padding-top:10px;padding-bottom:10px}.yasgui-host-element .yasgui .yasqe-footer-buttons .abort-button{padding:8px 16px;color:#FFFFFF;background-color:#e84e0f;outline:none;border:none}.yasgui-host-element .yasgui .yasqe-footer-buttons .abort-button.disabled{opacity:0.65;cursor:not-allowed}.yasgui-host-element .yasgui .yasqe-footer-buttons .abort-button:hover:not(.disabled){cursor:pointer}.yasgui-host-element .yasgui .tabsList .tab:not(.active){background-color:#eeeeee}.yasgui-host-element .yasgui .tabsList .tab.active{margin-bottom:-1px;z-index:100;border-bottom-color:#FFFFFF}.yasgui-host-element .yasgui .tabsList .tab{display:flex;border:1px solid #eeeeee;margin-right:0.2em;margin-top:0.2em;padding:8px}.yasgui-host-element .yasgui .tabsList .tab:hover:not(.active){border-bottom:1px solid #dddddd}.yasgui-host-element .yasgui .tabsList .tab .closeTab{margin-left:10px;display:inline-block}.yasgui-host-element .yasgui .tabsList .tab .closeTab:hover{cursor:pointer;color:#d0460d}.yasgui-host-element .yasgui .tabsList .tab .closeTab:hover i::before{transform:scale(1.2);transition:transform 0.15s ease-out}.yasgui-host-element .yasgui .tabsList .tab .closeTab i::before{display:inline-block}.yasgui-host-element .yasgui .tabsList .tab .editable-text-field-wrapper:focus{outline:none}.yasgui-host-element .yasgui .tabsList .tab .editable-text-field{display:inline-block;border:1px solid #00000059}.yasgui-host-element .yasgui .tabsList .create-tab-tab{margin-top:0.2em;display:flex;justify-content:center;align-items:center;background-color:#eeeeee}.yasgui-host-element .yasgui .tabsList .addTab{color:#000042;margin:0;padding:0.5em 1em;transform:none}.yasgui-host-element .yasgui .tabsList .addTab:hover{color:#d0460d}.yasgui-host-element .yasgui .tabsList .addTab:hover i{transform:scale(1.2);transition:transform 0.15s ease-out}.yasgui-host-element .yasgui .tabsList .context-menu{color:#003663;background-color:#FFFFFF}.yasgui-host-element .yasgui .tabsList .context-menu .context-menu-list{margin:0}.yasgui-host-element .yasgui .tabsList .context-menu .context-menu-item:hover{background-color:#0000001a}.yasgui-host-element .yasgui .tabsList .tab.query-invalid .preview-value{border-bottom:dotted 2px #FF0000}.yasgui-host-element .yasr{}.yasgui-host-element .yasr .rendering_result{opacity:0}.yasgui-host-element .yasr .yasr_btnGroup li{display:flex;align-items:end}.yasgui-host-element .yasr .dataTables_wrapper{overflow-x:auto;overflow-y:hidden}.yasgui-host-element .yasr .dataTables_wrapper table.dataTable{table-layout:fixed}.yasgui-host-element .yasr .dataTables_wrapper table.dataTable.fixedColumns:not(.withRowNumber) tr td,.yasgui-host-element .yasr .dataTables_wrapper table.dataTable.fixedColumns:not(.withRowNumber) tr th{width:100px}.yasgui-host-element .yasr .dataTables_wrapper table.dataTable.fixedColumns.withRowNumber tr td:not(:first-child),.yasgui-host-element .yasr .dataTables_wrapper table.dataTable.fixedColumns.withRowNumber tr th:not(:first-child){width:100px}.yasgui-host-element .yasr table.dataTable thead th{background-color:#02a99a1a;text-align:center}.yasgui-host-element .yasr .dataTable td,.yasgui-host-element .yasr .dataTable thead tr th{border:1px solid #eceeef}.yasgui-host-element .yasr table.dataTable thead th:hover{background-color:#02a99a1a}.yasgui-host-element .yasr .dataTable tr.odd{background-color:#f9f9f9}.yasgui-host-element .yasr .dataTable tr.even{background-color:#FFFFFF}.yasgui-host-element .yasr .yasr_header>*{margin-left:0}.yasgui-host-element .yasr .yasr_header{background-color:#cfefec;margin-bottom:1rem}.yasgui-host-element .yasr .yasr_header .yasr_btnGroup{width:100%;background-color:#FFFFFF;padding-bottom:1rem}.yasgui-host-element .yasr .yasr_header .yasr_btnGroup .spacer{width:100%}.yasgui-host-element .yasr .yasr_header .yasr_btnGroup li{white-space:nowrap}.yasgui-host-element .yasr .yasr_header .chart-config-control{align-self:center;padding-left:10px}.yasgui-host-element .yasr .yasr_header #openChartConfigBtn,.yasgui-host-element .yasr .yasr_header #openPivotTableChartConfigBtn{color:#333;background-color:#fff;border:1px solid #ccc;text-align:center;vertical-align:middle;cursor:pointer;padding:6px 12px;user-select:none}.yasgui-host-element .yasr .yasr_header #openChartConfigBtn:hover,.yasgui-host-element .yasr .yasr_header #openPivotTableChartConfigBtn{background-color:#ebebeb;border-color:#adadad}.yasgui-host-element .yasr .yasr_header .yasr_external_ref_btn,.yasgui-host-element .yasr .yasr_header .yasr_downloadIcon{display:none}.yasgui-host-element .yasr .yasr_header .yasr_plugin_control{padding-left:6px}.yasgui-host-element .yasr .yasr_header .yasr_response_chip{min-height:50px;background-color:#cfefec}.yasgui-host-element .yasr .yasr_header .yasr_response_chip .response-info-message{white-space:normal}.yasgui-host-element .yasr .yasr_header .pageSizeWrapper,.yasgui-host-element .yasr .yasr_header .switch{color:#000000A8}.yasgui-host-element .yasr .yasr_header .tableControls .tableFilter,.yasgui-host-element .yasr .yasr_header .tableControls .tableSizer{border-color:#00000026;background-color:#ffffff}.yasgui-host-element .yasr .yasr_header .tableControls{padding-right:0;align-items:stretch}.yasgui-host-element .yasr .yasr_header .tableControls>div:not(.pageSizeWrapper){display:flex;align-self:stretch;min-height:36px}.yasgui-host-element .yasr .yasr_header .tableControls .tableFilter:focus,.yasgui-host-element .yasr .yasr_header .tableControls .tableSizer:focus{border-color:#00366380 !important;outline:none !important}.yasgui-host-element .yasr .yasr_header .tableFilter{padding:0.5rem 0.75rem;font-size:1rem;line-height:1.25;color:#55595c;background-color:#fff;background-image:none;border:1px solid rgba(0, 0, 0, 0.15);border-radius:0}.yasgui-host-element .yasr .yasr_header .tableFilter.tableFilter:disabled{cursor:not-allowed}.yasgui-host-element .yasr .yasr_header .tableFilter::placeholder{opacity:54}.yasgui-host-element .yasr .dataTables_empty{color:#999;background-color:#f9f9f9}.yasgui-host-element .yasr .yasr_results .dataTable.withRowNumber tr td:first-child{position:sticky;left:0}.yasgui-host-element .yasr .yasr_results .dataTable.withRowNumber tr.odd>td:first-child{background-color:#f9f9f9}.yasgui-host-element .yasr .yasr_results .dataTable.withRowNumber tr.even>td:first-child{background-color:#FFFFFF}.yasgui-host-element .yasr .yasr_results .dataTable .expandable-literal{cursor:pointer}.yasgui-host-element .yasr .yasr_results .dataTable .resource-copy-link{display:none}.yasgui-host-element .yasr .yasr_results .dataTable:not(.extendedTableEllipseTable) .uri-cell{word-break:break-word;overflow-wrap:anywhere}.yasgui-host-element .yasr .yasr_results .dataTable:not(.extendedTableEllipseTable) .literal-cell .nonUri{word-break:normal !important;overflow-wrap:anywhere;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.yasgui-host-element .yasr .yasr_results .dataTable.extendedTableEllipseTable wbr{display:none}.yasgui-host-element .yasr .yasr_results .dataTable.extendedTableEllipseTable div:not(.expanded){word-break:normal}.yasgui-host-element .yasr .yasr_results .dataTable.extendedTableEllipseTable .uri-cell .uri-link,.yasgui-host-element .yasr .yasr_results .dataTable.extendedTableEllipseTable .literal-cell .nonUri:not(.expanded-literal){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yasgui-host-element .yasr .yasr_results .dataTable.extendedTableEllipseTable .literal-cell .nonUri.expanded-literal{word-break:break-word}.yasgui-host-element .yasr .yasr_results .dataTable .uri-cell .spacer{min-width:1em}.yasgui-host-element .yasr .yasr_results .dataTable .uri-cell:hover .resource-copy-link,.yasgui-host-element .yasr .yasr_results .dataTable .triple-close-link:hover .resource-copy-link,.yasgui-host-element .yasr .yasr_results .dataTable .triple-open-link:hover .resource-copy-link{display:inline}.yasgui-host-element .yasr .yasr_results .dataTable .uri-cell:hover .spacer,.yasgui-host-element .yasr .yasr_results .dataTable .triple-close-link:hover .spacer,.yasgui-host-element .yasr .yasr_results .dataTable .triple-open-link:hover .spacer{display:none}.yasgui-host-element .yasr .yasr_results .dataTable .triple-cell{display:flex;flex-direction:column;align-items:stretch}.yasgui-host-element .yasr .yasr_results .dataTable .triple-cell .triple-link{color:#770088;text-decoration:none}.yasgui-host-element .yasr .yasr_results .dataTable .triple-cell .triple-list{display:flex;flex-direction:column}.yasgui-host-element .yasr .yasr_results .dataTable .triple-cell .triple-list .uri-link,.yasgui-host-element .yasr .yasr_results .dataTable .triple-cell .triple-list .nonUri{padding-left:20px}.yasgui-host-element .yasr .yasr_results .dataTable .triple-cell .triple-close-link,.yasgui-host-element .yasr .yasr_results .dataTable .triple-cell .triple-open-link{display:flex;flex-direction:row;align-items:center}.yasgui-host-element .yasr .yasr_results .dataTable tr td>div,.yasgui-host-element .yasr .yasr_results .dataTable .uri-cell,.yasgui-host-element .yasr .yasr_results .dataTable .literal-cell{display:flex;justify-items:end;align-items:center}.yasgui-host-element .yasr .yasr_results .dataTable .uri-link:hover{text-decoration:none}.yasgui-host-element .yasr .yasr_results .dataTable .nonUri{color:#003663;border:none;background-color:transparent;padding:0;margin:0;white-space:pre-wrap}.yasgui-host-element .yasr .yasr_results .error-response-plugin{padding:10px;background-color:#fbdbd5}.yasgui-host-element .yasr .yasr_results .error-response-plugin .error-response-plugin-header{display:flex;justify-content:space-between}.yasgui-host-element .yasr .yasr_results .error-response-plugin .error-response-plugin-header .error-response-plugin-error-status{font-weight:400;margin-bottom:0.5em}.yasgui-host-element .yasr .yasr_results .error-response-plugin .show-full-message-link,.yasgui-host-element .yasr .yasr_results .error-response-plugin .show-less-message-link{display:block;font-weight:400;text-align:right;text-decoration:none}.yasgui-host-element .yasr .yasr_results .error-response-plugin .show-full-message-link::after,.yasgui-host-element .yasr .yasr_results .error-response-plugin .show-less-message-link::after{font-family:"icomoon", sans-serif !important;content:"\\e921";display:inline-block;width:auto;height:auto;border:none;margin-left:0;font-size:1.2em;-moz-transition:all 0.2s ease-in;-o-transition:all 0.2s ease-in;-webkit-transition:all 0.2s ease-in;transition:all 0.2s ease-in}.yasgui-host-element .yasr .yasr_results .error-response-plugin .show-full-message-link::after{transform:rotate(180deg)}.yasgui-host-element .yasr .yasr_results .error-response-plugin .error-response-plugin-body{white-space:pre-wrap}.yasgui-host-element .yasr .pageSizeWrapper,.yasgui-host-element .yasr .dataTables_info,.yasgui-host-element .yasr .dataTables_paginate{display:none}.yasgui-host-element .yasr .extended-boolean-plugin{width:70%;margin:5px auto;vertical-align:middle}.yasgui-host-element .yasr .extended-boolean-plugin .response{font-size:3rem;text-align:center;padding:1em}.yasgui-host-element .yasr .extended-boolean-plugin .response-success{background-color:#dff0d8}.yasgui-host-element .yasr .extended-boolean-plugin .response-error{background-color:#fbdbd5}.yasgui-host-element .yasr .dataTables_wrapper .dataTable thead th{background-position:calc(100% - 5px) center}.yasgui-host-element .yasr .dataTables_wrapper .dataTable thead .sorting{background-size:0.9em;background-image:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 448 512\'%3E%3Cpath d=\'M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z\'/%3E%3C/svg%3E")}.yasgui-host-element .yasr .dataTables_wrapper .dataTable thead .sorting_asc{background-size:1em;background-image:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 448 512\'%3E%3Cpath d=\'M176 352h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm240-64H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 446.37V464a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 321.63V304a16 16 0 0 0-16-16zm31.06-85.38l-59.27-160A16 16 0 0 0 372.72 32h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 224h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 224H432a16 16 0 0 0 15.06-21.38zM335.61 144L352 96l16.39 48z\'/%3E%3C/svg%3E")}.yasgui-host-element .yasr .dataTables_wrapper .dataTable thead .sorting_desc{background-size:1em;background-image:url("data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 448 512\'%3E%3Cpath d=\'M176 352h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm112-128h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 65.63V48a16 16 0 0 0-16-16H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 190.37V208a16 16 0 0 0 16 16zm159.06 234.62l-59.27-160A16 16 0 0 0 372.72 288h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 480h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 480H432a16 16 0 0 0 15.06-21.38zM335.61 400L352 352l16.39 48z\'/%3E%3C/svg%3E")}.yasgui-host-element .hidden-control-bar .yasgui .autocompleteWrapper{display:none !important}.yasgui-host-element .hidden-control-bar .yasgui .controlbar{display:none}.yasgui-host-element.hidden-editor-tabs .tabsList{display:none}.yasgui-host-element.hidden-result-tabs .yasr_header{display:none}.yasgui-host-element.mode-yasqe .yasgui .yasr{display:none}.yasgui-host-element.mode-yasr .yasgui .tabsList{display:none}.yasgui-host-element.mode-yasr .yasgui .yasqe{display:none}.yasgui-host-element.orientation-horizontal.mode-yasgui .yasgui .tabsList{width:calc(50% - 10px)}.yasgui-host-element.orientation-horizontal.mode-yasgui .yasgui .tabPanel.active>div{display:flex;gap:10px}.yasgui-host-element.orientation-horizontal.mode-yasgui .yasgui .tabPanel.active>div>div:nth-of-type(2),.yasgui-host-element.orientation-horizontal.mode-yasgui .yasgui .tabPanel.active>div>div:nth-of-type(3){display:inline-block;width:50%}.yasgui-host-element.orientation-horizontal.mode-yasqe .yasgui .tabPanel>div>div:nth-of-type(2){width:100%}.yasgui-host-element.orientation-horizontal.mode-yasr .yasgui .tabsList{display:none}.yasgui-host-element.orientation-horizontal.mode-yasr .yasgui .tabPanel>div>div:nth-of-type(3){width:100%}.yasgui-host-element button,.yasgui-host-element button:focus{outline:none}.yasgui-host-element #explainPlanQuery{white-space:pre-wrap}.jfk-tooltip{z-index:12;background-color:#003663 !important}.jfk-tooltip-arrowdown .jfk-tooltip-arrowimplafter,.jfk-tooltip-arrowup .jfk-tooltip-arrowimplafter{border-color:#003663 transparent !important}svg>g>g.google-visualization-tooltip{pointer-events:none}',OntotextYasguiWebComponent=class{constructor(t){registerInstance(this,t),this.createSavedQuery=createEvent(this,"createSavedQuery",7),this.updateSavedQuery=createEvent(this,"updateSavedQuery",7),this.saveQueryOpened=createEvent(this,"saveQueryOpened",7),this.deleteSavedQuery=createEvent(this,"deleteSavedQuery",7),this.loadSavedQueries=createEvent(this,"loadSavedQueries",7),this.shareSavedQuery=createEvent(this,"shareSavedQuery",7),this.queryShareLinkCopied=createEvent(this,"queryShareLinkCopied",7),this.shareQuery=createEvent(this,"shareQuery",7),this.output=createEvent(this,"output",7),this.defaultViewMode=RenderingMode.YASGUI,this.subscriptions=[],this.config=void 0,this.language=void 0,this.savedQueryConfig=void 0,this.saveQueryData=void 0,this.savedQueryData=void 0,this.deleteQueryData=void 0,this.isVerticalOrientation=!0,this.renderingMode=this.getRenderMode(),this.showSaveQueryDialog=!1,this.showSavedQueriesPopup=!1,this.showSavedQueriesPopupTarget=void 0,this.showConfirmationDialog=!1,this.showShareQueryDialog=!1,this.showCopyResourceLinkDialog=!1,this.copiedResourceLink=void 0,this.loaderMessage=void 0,this.additionalLoaderMessage=void 0,this.yasqeBtnLabel=void 0,this.yasguiBtnLabel=void 0,this.yasrBtnLabel=void 0,this.serviceFactory=new ServiceFactory(this.hostElement),this.translationService=this.serviceFactory.get(TranslationService),this.yasguiConfigurationBuilder=this.serviceFactory.get(YasguiConfigurationBuilder),this.yasguiBuilder=this.serviceFactory.get(YasguiBuilder),this.ontotextYasguiService=this.serviceFactory.get(OntotextYasguiService),this.notificationMessageService=this.serviceFactory.get(NotificationMessageService),this.initComponentTranslationHandlers()}configurationChanged(t){this.init(t)}languageChanged(t){this.translationService.setLanguage(t),this.getOntotextYasgui().then((t=>{t.refresh()}))}savedQueryConfigChanged(){this.shouldShowSaveQueryDialog(),this.shouldShowSavedQueriesPopup(),this.saveQueryData=this.initSaveQueryData()}onOrientationChanged(){this.isVerticalOrientation?(this.unregisterTabsListResizeObserver(),this.updateYasrTopMargin()):this.registerTabsListResizeObserver()}changeRenderMode(t,e){return this.getOntotextYasgui().then((()=>{VisualisationUtils.changeRenderMode(this.hostElement,t,this.isVerticalOrientation,e)}))}setQuery(t){return this.getOntotextYasgui().then((()=>{this.ontotextYasgui.setQuery(t)}))}query(t=RenderingMode.YASGUI){return this.getOntotextYasgui().then((e=>(this.defaultViewMode=t,e.query())))}getQuery(){return this.getOntotextYasgui().then((()=>this.ontotextYasgui.getQuery()))}isQueryValid(){return this.getOntotextYasgui().then((()=>this.ontotextYasgui.isQueryValid()))}openTab(t){return this.getOntotextYasgui().then((e=>e.openTab(t)))}getQueryMode(){return this.getOntotextYasgui().then((t=>t.getQueryMode()))}getQueryType(){return this.getOntotextYasgui().then((t=>t.getQueryType()))}getEmbeddedResultAsJson(){return this.getOntotextYasgui().then((t=>t.getEmbeddedResultAsJson()))}getEmbeddedResultAsCSV(){return this.getOntotextYasgui().then((t=>t.getEmbeddedResultAsCSV()))}hideYasqeActionButton(t){return this.getOntotextYasgui().then((()=>YasqeService.hideYasqeActionButtons(t)))}showYasqeActionButton(t){return this.getOntotextYasgui().then((()=>YasqeService.showYasqeActionButtons(t)))}getOngoingRequestsInfo(){return this.getOntotextYasgui().then((t=>t.getOngoingRequestsInfo()))}abortQuery(){return this.getOntotextYasgui().then((t=>{t.abortQuery()}))}abortAllRequests(){return this.getOntotextYasgui().then((t=>{t.abortAllRequests()}))}reInitYasgui(t){return this.getOntotextYasgui().then((e=>{e.reInitYasgui(t)}))}isQueryDirty(){return this.getOntotextYasgui().then((t=>t.isQueryDirty()))}onResize(){this.getOntotextYasgui().then((t=>{t.refresh();const e=this.ontotextYasgui.getEditorHeight(t.getTabId());VisualisationUtils.setYasqeFullHeight(this.renderingMode,VisualisationUtils.resolveOrientation(this.isVerticalOrientation),e)}))}onBeforeunloadHandler(){this.getOntotextYasgui().then((t=>{t.isQueryDirty()&&t.saveQuery()}))}saveQueryHandler(){this.showSaveQueryDialog=!0,this.saveQueryData=this.getDefaultSaveQueryData()}createSavedQueryHandler(t){this.createSavedQuery.emit(t.detail)}updateSavedQueryHandler(t){this.updateSavedQuery.emit(t.detail)}closeSaveDialogHandler(){this.showSaveQueryDialog=!1}showSavedQueriesHandler(t){this.loadSavedQueries.emit(!0),this.showSavedQueriesPopup=!0,this.showSavedQueriesPopupTarget=t.detail.buttonInstance}savedQuerySelectedHandler(t){const e=t.detail;this.showSavedQueriesPopup=!1,this.openTab({queryName:e.queryName,query:e.query,owner:void 0}).then((t=>this.saveQueryOpened.emit(new SavedQueryOpened(t))))}editSavedQueryHandler(t){this.savedQueryData=t.detail,this.showSavedQueriesPopup=!1,this.showSaveQueryDialog=!0}savedQuerySelectedForEditHandler(t){this.showConfirmationDialog=!0,this.deleteQueryData=t.detail}deleteSavedQueryHandler(){this.showConfirmationDialog=!1,this.showSavedQueriesPopup=!1,this.deleteSavedQuery.emit(this.deleteQueryData)}closeSavedQueryDeleteConfirmationHandler(){this.showConfirmationDialog=!1,this.showSavedQueriesPopup=!1,this.deleteQueryData=void 0}closeSavedQueriesPopupHandler(){this.showSavedQueriesPopup=!1}savedQuerySelectedForShareHandler(t){this.shareSavedQuery.emit(t.detail),this.showShareQueryDialog=!0}shareQueryHandler(){const t=this.ontotextYasgui.getQuery(),e=this.ontotextYasgui.getTabName();this.shareQuery.emit({queryName:e,query:t,owner:""}),this.showShareQueryDialog=!0}savedQueryShareLinkCopiedHandler(){this.showShareQueryDialog=!1,this.queryShareLinkCopied.emit()}closeShareQueryDialogHandler(){this.showShareQueryDialog=!1}resourceLinkDialogClosedHandler(){this.showCopyResourceLinkDialog=!1,this.copiedResourceLink=void 0}resourceLinkCopiedHandler(){const t=this.translationService.translate("yasqe.share.copy_link.dialog.copy.message.success");this.notificationMessageService.success(MessageCode.RESOURCE_LINK_COPIED_SUCCESSFULLY,t),this.showCopyResourceLinkDialog=!1,this.copiedResourceLink=void 0}showResourceCopyLinkDialogHandler(t){this.copiedResourceLink=t.detail.payload.copyLink,this.showCopyResourceLinkDialog=!0}onDownloadAsEventHandler(t){this.output.emit(toOutputEvent(t))}notificationMessageHandler(t){this.output.emit(toOutputEvent(t))}onQuery(t){this.output.emit(toOutputEvent(t)),this.getOntotextYasgui().then((t=>{t.leaveFullScreen();const e=this.ontotextYasgui.getEditorHeight(t.getTabId());this.changeRenderMode(this.defaultViewMode,e),this.defaultViewMode=RenderingMode.YASGUI,VisualisationUtils.setYasqeFullHeight(this.renderingMode,VisualisationUtils.resolveOrientation(this.isVerticalOrientation),e)}))}onInternalQueryExecuted(t){const e=toOutputEvent(t);this.output.emit(e)}onCountQuery(t){this.output.emit(toOutputEvent(t))}onCountQueryResponse(t){this.output.emit(toOutputEvent(t))}onQueryAborted(t){this.output.emit(toOutputEvent(t))}resolveOrientationButtonTooltip(){return this.translationService.translate(this.isVerticalOrientation?"yasgui.toolbar.orientation.btn.tooltip.switch_orientation_horizontal":"yasgui.toolbar.orientation.btn.tooltip.switch_orientation_vertical")}changeOrientation(){this.isVerticalOrientation=!this.isVerticalOrientation,this.getOntotextYasgui().then((t=>{const e=this.ontotextYasgui.getEditorHeight(t.getTabId());VisualisationUtils.toggleLayoutOrientation(this.hostElement,this.isVerticalOrientation,this.renderingMode,e),t.refresh()}))}getDefaultSaveQueryData(){return{queryName:"",query:"",owner:"",isPublic:!1,messages:[]}}initSaveQueryData(){var t;return{queryName:"",query:"",owner:"",isPublic:!1,messages:(null===(t=this.savedQueryConfig)||void 0===t?void 0:t.errorMessage)||[]}}getSaveQueryData(){const t=this.saveQueryData||this.getDefaultSaveQueryData();return this.savedQueryData?(t.queryName=this.savedQueryData.queryName,t.query=this.savedQueryData.query,t.isPublic=this.savedQueryData.isPublic,t.isNew=!1):this.ontotextYasgui&&(t.queryName=this.ontotextYasgui.getTabName(),t.query=this.ontotextYasgui.getTabQuery(),t.isPublic=!1,t.isNew=!0),t.messages=this.saveQueryData&&this.saveQueryData.messages,t}getSaveQueriesData(){const t={savedQueriesList:[],popupTarget:this.showSavedQueriesPopupTarget};return this.savedQueryConfig&&this.savedQueryConfig.savedQueries&&(t.savedQueriesList=this.savedQueryConfig.savedQueries.map((t=>({queryName:t.queryName,query:t.query,isPublic:t.isPublic,owner:t.owner,readonly:void 0!==t.readonly&&t.readonly})))),t}getRenderMode(){return this.config&&this.config.render||defaultOntotextYasguiConfig.render}getOrientationMode(){return this.config&&this.config.orientation||defaultOntotextYasguiConfig.orientation}shouldShowSaveQueryDialog(){this.showSaveQueryDialog=this.showSaveQueryDialog&&!this.isSavedQuerySaved()}isSavedQuerySaved(){return this.savedQueryConfig&&this.savedQueryConfig.saveSuccess}shouldShowSavedQueriesPopup(){var t,e;this.showSavedQueriesPopup=this.showSavedQueriesPopup&&(null===(t=this.savedQueryConfig)||void 0===t?void 0:t.savedQueries)&&(null===(e=this.savedQueryConfig)||void 0===e?void 0:e.savedQueries.length)>0}getDeleteQueryConfirmationConfig(){return{title:this.translationService.translate("yasqe.actions.delete_saved_query.confirm.dialog.label"),message:this.translationService.translate("yasqe.actions.delete_saved_query.confirm.dialog.message",[{key:"query",value:this.deleteQueryData.queryName}])}}getShareLinkDialogConfig(){var t;return{shareQueryLink:null===(t=this.savedQueryConfig)||void 0===t?void 0:t.shareQueryLink}}getOntotextYasgui(){return new Promise(((t,e)=>{if(this.isOntotextYasguiInitialiazed())return t(this.ontotextYasgui);let n=15;const r=setInterval((()=>(n--,this.isOntotextYasguiInitialiazed()?(clearInterval(r),t(this.ontotextYasgui)):0===n?(clearInterval(r),e("Can't initialize Yasgui!")):void 0)),100)}))}changeRenderingMode(t){this.renderingMode=t;const e=this.ontotextYasgui.getEditorHeight(this.ontotextYasgui.getTabId());VisualisationUtils.changeRenderMode(this.hostElement,t,this.isVerticalOrientation,e)}isOntotextYasguiInitialiazed(){return!!this.ontotextYasgui&&!!this.ontotextYasgui.getInstance()}afterInit(){this.ontotextYasguiService.postConstruct(this.hostElement,this.ontotextYasgui.getConfig()),this.ontotextYasgui.getConfig().yasguiConfig.clearState&&this.ontotextYasgui.reInitYasgui({resetSameAs:!0,resetCurrentTab:!0,resetYasr:!0,resetInferResults:!0})}registerEventHandlers(){const t=HtmlElementsUtil.createAutocompleteHintElement(this.translationService.translate("yasqe.autocomplete.hint"));this.ontotextYasgui.getInstance().on("tabAdd",(()=>{VisualisationUtils.changeRenderMode(this.hostElement,this.renderingMode,this.isVerticalOrientation)})),this.ontotextYasgui.getInstance().on("tabSelect",((t,e)=>{const n=this.ontotextYasgui.getEditorHeight(e);VisualisationUtils.changeRenderMode(this.hostElement,this.renderingMode,this.isVerticalOrientation,n),this.updateYasrTopMargin()})),this.ontotextYasgui.getInstance().on("autocompletionShown",(()=>{t.parentNode&&t.parentNode.removeChild(t);const e=document.querySelector(".CodeMirror-hints"),n=e.getBoundingClientRect(),r=1*e.style.top.substring(0,e.style.top.length-2);e.style.top=r+14+"px",document.body.appendChild(t);let i=n.right-t.offsetWidth;i=i<n.left?n.left:i-12,t.style.top=n.top-6+"px",t.style.left=`${i}px`})),this.ontotextYasgui.getInstance().on("autocompletionClose",(()=>{t.parentNode&&t.parentNode.removeChild(t)}))}updateYasrTopMargin(){const t=this.hostElement.querySelector(".tabPanel.active .yasr");t&&(t.parentElement.style.marginTop=this.isVerticalOrientation?"10px":`-${this.tabsListHeight}px`)}registerTabsListResizeObserver(){this.unregisterTabsListResizeObserver();const t=Debounce.createDebouncedFunction((t=>{this.tabsListHeight=t[0].contentRect.height,this.updateYasrTopMargin()}),10);this.tabsListResizeObserver=new ResizeObserver((e=>{t(e)}));const e=this.hostElement.querySelector(".yasgui .tabsList");e&&this.tabsListResizeObserver.observe(e)}unregisterTabsListResizeObserver(){this.tabsListResizeObserver&&(this.tabsListResizeObserver.disconnect(),this.tabsListResizeObserver=void 0)}destroy(){if(this.unregisterTabsListResizeObserver(),this.ontotextYasgui){this.ontotextYasgui.destroy();const t=HtmlElementsUtil.getOntotextYasgui(this.hostElement);for(;t.firstChild;)t.firstChild.remove()}}initComponentTranslationHandlers(){this.subscriptions.push(this.translationService.onTranslate("yasgui.toolbar.mode_yasqe.btn.label",(t=>{this.yasqeBtnLabel=t}))),this.subscriptions.push(this.translationService.onTranslate("yasgui.toolbar.mode_yasgui.btn.label",(t=>{this.yasguiBtnLabel=t}))),this.subscriptions.push(this.translationService.onTranslate("yasgui.toolbar.mode_yasr.btn.label",(t=>{this.yasrBtnLabel=t})))}init(t){if(HtmlElementsUtil.getOntotextYasgui(this.hostElement)&&t&&(this.destroy(),window.Yasgui)){this.translationService.setLanguage(t.language);const e=this.yasguiConfigurationBuilder.build(t);YasrService.registerPlugin(PivotTablePlugin.PLUGIN_NAME,PivotTablePlugin),YasrService.registerPlugin(ChartsPlugin.PLUGIN_NAME,ChartsPlugin),this.ontotextYasgui=this.yasguiBuilder.build(this.hostElement,e),this.registerEventHandlers(),this.afterInit();const n=this.ontotextYasgui.getEditorHeight(this.ontotextYasgui.getTabId());VisualisationUtils.setYasqeFullHeight(this.renderingMode,VisualisationUtils.resolveOrientation(this.isVerticalOrientation),n)}}componentWillLoad(){window.Yasgui||YASGUI_MIN_SCRIPT(),this.translationService.setLanguage(this.language)}componentDidLoad(){this.init(this.config)}disconnectedCallback(){this.subscriptions&&(this.subscriptions.forEach((t=>t())),this.subscriptions=[]),this.destroy()}render(){const t=`yasgui-host-element ${this.getOrientationMode()} ${this.getRenderMode()}`;return h(Host,{class:t},h("div",{class:"yasgui-toolbar hidden"},h("button",{class:"yasgui-btn btn-mode-yasqe",onClick:()=>this.changeRenderingMode(RenderingMode.YASQE)},this.yasqeBtnLabel),h("button",{class:"yasgui-btn btn-mode-yasgui",onClick:()=>this.changeRenderingMode(RenderingMode.YASGUI)},this.yasguiBtnLabel),h("button",{class:"yasgui-btn btn-mode-yasr",onClick:()=>this.changeRenderingMode(RenderingMode.YASR)},this.yasrBtnLabel),h("yasgui-tooltip",{"data-tooltip":this.resolveOrientationButtonTooltip(),placement:"left","show-on-click":!0},h("button",{class:"btn-orientation icon-columns red",onClick:()=>this.changeOrientation()}," "))),h("div",{class:"ontotext-yasgui"}),this.showSaveQueryDialog&&h("save-query-dialog",{data:this.getSaveQueryData(),serviceFactory:this.serviceFactory}," "),this.showSavedQueriesPopup&&h("saved-queries-popup",{config:this.getSaveQueriesData(),serviceFactory:this.serviceFactory}),this.showConfirmationDialog&&h("confirmation-dialog",{translationService:this.translationService,config:this.getDeleteQueryConfirmationConfig()}),this.showShareQueryDialog&&h("share-query-dialog",{serviceFactory:this.serviceFactory,config:this.getShareLinkDialogConfig()}),this.showCopyResourceLinkDialog&&h("copy-resource-link-dialog",{serviceFactory:this.serviceFactory,resourceLink:this.copiedResourceLink}))}get hostElement(){return getElement(this)}static get watchers(){return{config:["configurationChanged"],language:["languageChanged"],savedQueryConfig:["savedQueryConfigChanged"],isVerticalOrientation:["onOrientationChanged"]}}};OntotextYasguiWebComponent.style=ontotextYasguiWebComponentCss;class SaveQueryData{constructor(t,e,n,r,i,o,a){this.queryName=t,this.query=e,this.isPublic=n,this.isNew=r,this.readonly=i,this.owner=o,this.messages=a}}class UpdateQueryData extends SaveQueryData{}class DeleteQueryData extends SaveQueryData{}const saveQueryDialogCss='@font-face{font-family:"icomoon";src:url("../css/fonts/icons.eot?z4jeba");src:url("../css/fonts/icons.eot?z4jeba#iefix") format("embedded-opentype"), url("../css/fonts/icons.ttf?z4jeba") format("truetype"), url("../css/fonts/icons.woff?z4jeba") format("woff"), url("../css/fonts/icons.svg?z4jeba#icons") format("svg");font-weight:normal;font-style:normal}.red{color:#e84e0f}.hidden{display:none !important}.scroll-hidden{overflow:hidden}[class^=icon-],[class*=" icon-"],.icon-any{font-family:"icomoon", sans-serif !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;vertical-align:middle;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-lg{font-size:1.2em}.icon-arrow-up-off:before{content:"\\e948"}.icon-collapse:before{content:"\\e949"}.icon-eye-off:before{content:"\\e94a"}.icon-expand:before{content:"\\e94c"}.icon-focus:before{content:"\\e94d"}.icon-rotate-left:before{content:"\\e94e"}.icon-rotate-right:before{content:"\\e94f"}.icon-info-alt:before{content:"\\e950"}.icon-facebook:before{content:"\\e942"}.icon-google-plus:before{content:"\\e943"}.icon-google:before{content:"\\e944"}.icon-linkedin:before{content:"\\e945"}.icon-twitter:before{content:"\\e946"}.icon-youtube:before{content:"\\e947"}.icon-play:before{content:"\\e941"}.icon-email:before{content:"\\e93e"}.icon-same-as-on:before{content:"\\e93f"}.icon-same-as-off:before{content:"\\e940"}.icon-repo-contour1:before{content:"\\e906"}.icon-repo-contour2:before{content:"\\e90b"}.icon-repo-contour3:before{content:"\\e910"}.icon-repo-master-ro-mute:before{content:"\\e913"}.icon-repo-free:before{content:"\\e936"}.icon-repo-master-mute:before{content:"\\e937"}.icon-repo-master-ro:before{content:"\\e938"}.icon-repo-master:before{content:"\\e939"}.icon-repo-se:before{content:"\\e93a"}.icon-repo-system:before{content:"\\e93b"}.icon-repo-worker:before{content:"\\e93c"}.icon-repo:before{content:"\\e93d"}.icon-copy:before{content:"\\e934"}.icon-eye:before{content:"\\e935"}.icon-connection-off:before{content:"\\e931"}.icon-connection-on:before{content:"\\e932"}.icon-key:before{content:"\\e933"}.icon-comment:before{content:"\\e930"}.icon-arrow-down:before{content:"\\e900"}.icon-arrow-left:before{content:"\\e901"}.icon-arrow-right:before{content:"\\e902"}.icon-arrow-up:before{content:"\\e903"}.icon-exchange:before{content:"\\e904"}.icon-columns:before{content:"\\e905"}.icon-inferred-off:before{content:"\\e907"}.icon-inferred-on:before{content:"\\e908"}.icon-save:before{content:"\\e909"}.icon-tag:before{content:"\\e90a"}.icon-file:before{content:"\\e90c"}.icon-folder:before{content:"\\e90d"}.icon-heartbeat:before{content:"\\e90e"}.icon-pin:before{content:"\\e90f"}.icon-zoom-in:before{content:"\\e911"}.icon-zoom-out:before{content:"\\e912"}.icon-check:before{content:"\\e914"}.icon-download:before{content:"\\e915"}.icon-external:before{content:"\\e916"}.icon-lock:before{content:"\\e917"}.icon-search:before{content:"\\e918"}.icon-upload:before{content:"\\e919"}.icon-caret-left:before{content:"\\e91a"}.icon-caret-right:before{content:"\\e91b"}.icon-caret-up:before{content:"\\e91c"}.icon-caret-up-after:after{content:"\\e91c"}.icon-minus:before{content:"\\e91d"}.icon-reload:before{content:"\\e91e"}.icon-trash:before{content:"\\e91f"}.icon-warning:before{content:"\\e920"}.icon-caret-down:before{content:"\\e921"}.icon-caret-down-after:after{content:"\\e921"}.icon-close:before{content:"\\e922"}.icon-edit:before{content:"\\e923"}.icon-info:before{content:"\\e924"}.icon-link:before{content:"\\e925"}.icon-more:before{content:"\\e926"}.icon-plus:before{content:"\\e927"}.icon-data:before{content:"\\e928"}.icon-help:before{content:"\\e929"}.icon-monitoring:before{content:"\\e92a"}.icon-settings:before{content:"\\e92b"}.icon-sparql:before{content:"\\e92c"}.icon-user-alt:before{content:"\\e92d"}.icon-export-alt:before{content:"\\e92e"}.icon-import:before{content:"\\e92f"}.icon-tick:before{content:"\\e956"}.icon-repo-ontop-alt:before{content:"\\e958"}.icon-repo-fedx-alt:before{content:"\\e959"}.icon-repo-graphdb-alt:before{content:"\\e95a"}.icon-export:before{content:"\\e95b"}.icon-readonly:before{content:"\\e95c"}.icon-repo-fedx:before{content:"\\e95d"}.icon-repo-graphdb:before{content:"\\e95e"}.icon-repo-ontop:before{content:"\\e95f"}.icon-repo-unknown:before{content:"\\e960"}.icon-translation:before{content:"\\e961"}.icon-user:before{content:"\\e962"}.icon-follower:before{content:"\\e962"}.alert{border-radius:0;border:1px solid transparent;position:relative;padding:1em}.alert-warning,.alert-info,.alert-help,.alert-danger,.alert-success{color:#000000A8}.alert-warning{background-color:#f9e6c0}.alert-info{background-color:#cfefec}.alert-help{background-color:#e7f7f5}.alert-success{background-color:#dff0d8}.alert-danger{background-color:#fbdbd5}.alert-info,.alert-warning,.alert-help,.alert-danger,.alert-success{padding-left:3em}.alert-info:before,.alert-warning:before,.alert-help:before,.alert-danger:before,.alert-success:before{font-family:"icomoon", sans-serif !important;font-size:1.6em;vertical-align:middle;line-height:1;position:absolute;left:0.6em;top:0.6em;color:#00000080}.alert-info:before{content:"\\e924"}.alert-warning:before{content:"\\e930"}.alert-help:before{content:"\\e929"}.alert-danger:before{content:"\\e920"}.alert-success:before{content:"\\e914"}.no-icon{padding-left:1em}.no-icon:before{display:none}.alert .alert{background-color:transparent}.icon-rotate-quarter:before{display:inline-block;-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}:host{display:block}.dialog-overlay{position:fixed;top:0;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;z-index:9998;margin-left:-10px;background-color:rgba(0, 0, 0, 0.5);font-family:"Roboto", "Helvetica Neue", Arial, sans-serif;font-weight:300;color:#373a3c}.dialog{z-index:1001;width:600px;max-width:600px;background-color:#fff;box-shadow:0 5px 15px rgba(0, 0, 0, 0.5);font-family:inherit;font-weight:inherit}.dialog .dialog-header{display:flex;justify-content:space-between;padding:15px;border-bottom:1px solid #e5e5e5;font-size:20px}.dialog .dialog-header .dialog-title{margin:0.5rem 0;font-weight:400}.dialog .dialog-header .close-button{background-color:#fff;border:none;outline:none;cursor:pointer;transition:all 0.15s ease-out}.dialog .dialog-header .close-button:hover,.dialog .dialog-header .close-button:focus{font-weight:bold}.dialog .dialog-body{padding:15px}.dialog .dialog-body .save-query-form{display:flex;flex-direction:column;gap:1rem;align-items:stretch}.dialog .dialog-body .form-field{display:flex;flex-direction:column;justify-content:space-between}.dialog .dialog-body .form-field input[type=text],.dialog .dialog-body .form-field textarea{padding:0.5rem 0.75rem;border:1px solid rgba(0, 0, 0, 0.15);font-size:1rem;color:#55595c}.dialog .dialog-body .form-field input[type=text]:focus,.dialog .dialog-body .form-field textarea:focus{border-color:rgba(0, 54, 99, 0.5);outline:none}.dialog .dialog-body .form-field input[type=text].invalid{border-color:#fa787e}.dialog .dialog-body .form-field textarea{resize:vertical}.dialog .dialog-body .form-field textarea.invalid{border-color:#fa787e}.dialog .dialog-body .form-field.is-public-field .yasgui-tooltip{width:fit-content}.dialog .dialog-body .form-field.is-public-field input{margin-right:5px}.dialog .dialog-body .form-field.is-public-field label{margin:0}.dialog .dialog-body .form-field.is-public-field label:hover{cursor:pointer}.dialog .dialog-body .alert{margin-top:5px}.dialog .dialog-footer{display:flex;justify-content:flex-end;padding:15px;border-top:1px solid #e5e5e5}.dialog .dialog-footer button{display:inline-block;font-weight:400;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;border:1px solid transparent;outline:none;padding:0.5rem 1rem;font-size:1rem;border-radius:0;transition:all 0.15s ease-out}.dialog .dialog-footer .ok-button{background-color:#e84e0f;border-color:#e84e0f;color:#fff}.dialog .dialog-footer .ok-button:hover,.dialog .dialog-footer .ok-button:focus{background-color:#d0460d;border-color:#d0460d}.dialog .dialog-footer .cancel-button{color:#003663;margin-right:10px}.dialog .dialog-footer .cancel-button:hover,.dialog .dialog-footer .cancel-button:focus{background-color:#d4d4d4;border-color:#d4d4d4}',SaveQueryDialog=class{constructor(t){registerInstance(this,t),this.internalSaveQueryDialogClosedEvent=createEvent(this,"internalSaveQueryDialogClosedEvent",7),this.internalSaveQueryEvent=createEvent(this,"internalSaveQueryEvent",7),this.internalUpdateQueryEvent=createEvent(this,"internalUpdateQueryEvent",7),this.serviceFactory=void 0,this.data=void 0,this.queryName="",this.query="",this.isPublic=!1,this.isNew=!1,this.isSaveAllowed=!1}keydownListener(t){"Escape"===t.key&&this.internalSaveQueryDialogClosedEvent.emit()}componentWillLoad(){this.translationService=this.serviceFactory.get(TranslationService),this.data&&(this.queryName=this.data.queryName||this.queryName,this.query=this.data.query||this.query,this.isPublic=void 0!==this.data.isPublic?this.data.isPublic:this.isPublic,this.isNew=void 0!==this.data.isNew?this.data.isNew:this.isNew,this.resolveIsSaveAllowed())}componentDidLoad(){this.documentOverflow=HtmlUtil.hideDocumentBodyOverflow(),this.hostElement.addEventListener("keydown",this.preventLeavingDialog.bind(this)),this.cancelButton.focus()}disconnectedCallback(){HtmlUtil.setDocumentBodyOverflow(this.documentOverflow),this.hostElement.removeEventListener("keydown",this.preventLeavingDialog.bind(this))}onClose(t){const e=t.target;t.stopPropagation();const n=e.classList.contains("dialog-overlay"),r=e.classList.contains("close-button"),i=e.classList.contains("cancel-button");(n||r||i)&&this.internalSaveQueryDialogClosedEvent.emit()}onCreate(t){t.stopPropagation();const e=this.queryName,n=this.query,r=this.isPublic;this.isNew?this.internalSaveQueryEvent.emit(new SaveQueryData(e,n,r)):this.internalUpdateQueryEvent.emit(new UpdateQueryData(e,n,r))}handleQueryNameChange(t){this.queryName=t.target.value,this.resolveIsSaveAllowed()}handleQueryChange(t){this.query=t.target.value,this.resolveIsSaveAllowed()}handleIsPublicChange(t){this.isPublic=t.target.checked}preventLeavingDialog(t){HtmlUtil.preventLeavingDialog(this.hostElement,t)}resolveIsSaveAllowed(){this.isSaveAllowed=!(!this.queryName.trim().length||!this.query.trim().length)}getErrorMessages(){const t=[];return this.hasMissingQueryName()&&t.push(this.translationService.translate("yasqe.actions.save_query.dialog.query_name.empty_error")),this.hasMissingQuery()&&t.push(this.translationService.translate("yasqe.actions.save_query.dialog.query.empty_error")),this.data.messages&&t.push(...this.data.messages),t}hasMissingQueryName(){return!this.queryName.trim().length}hasMissingQuery(){return!this.query.trim().length}hasMissingFields(){return this.hasMissingQuery()||this.hasMissingQueryName()}showErrorMessage(){var t;return this.hasMissingFields()||(null===(t=this.data.messages)||void 0===t?void 0:t.length)>0}render(){return h(Host,{tabindex:"-1"},h("div",{class:"dialog-overlay",onClick:t=>this.onClose(t)},h("div",{class:"dialog"},h("div",{class:"dialog-header"},h("h3",{class:"dialog-title"},this.translationService.translate("yasqe.actions.save_query.dialog.title")),h("button",{class:"close-button icon-close",onClick:t=>this.onClose(t)})),h("div",{class:"dialog-body"},h("div",{class:"save-query-form"},h("div",{class:"form-field query-name-field"},h("input",{type:"text",name:"queryName",id:"queryName",required:!0,value:this.queryName,class:this.queryName.trim().length?"":"invalid",placeholder:this.translationService.translate("yasqe.actions.save_query.dialog.query_name.label"),onInput:t=>this.handleQueryNameChange(t)})),h("div",{class:"form-field is-public-field"},h("yasgui-tooltip",{placement:"top","data-tooltip":this.translationService.translate("yasqe.actions.save_query.dialog.public_query.tooltip")},h("label",null,h("input",{type:"checkbox",name:"publicQuery",id:"publicQuery",checked:this.isPublic,onChange:t=>this.handleIsPublicChange(t)}),this.translationService.translate("yasqe.actions.save_query.dialog.public_query.label")))),h("div",{class:"form-field query-field"},h("textarea",{name:"query",id:"query",required:!0,rows:8,class:this.query.trim().length?"":"invalid",placeholder:this.translationService.translate("yasqe.actions.save_query.dialog.query.label"),value:this.query,onInput:t=>this.handleQueryChange(t)})),this.showErrorMessage()&&h(Alert,{messages:this.getErrorMessages()}," "))),h("div",{class:"dialog-footer"},h("button",{class:"cancel-button",onClick:t=>this.onClose(t),ref:t=>this.cancelButton=t},this.translationService.translate("yasqe.actions.save_query.dialog.cancel.button")),h("button",{class:"ok-button",disabled:!this.isSaveAllowed,onClick:t=>this.onCreate(t)},this.translationService.translate("yasqe.actions.save_query.dialog.create.button"))))))}get hostElement(){return getElement(this)}},Alert=({messages:t})=>h("div",{class:"alert alert-danger"},t.map((t=>h("div",{class:"error-message"},t))));SaveQueryDialog.style=saveQueryDialogCss;const savedQueriesPopupCss=':host{display:block}.saved-queries-container{position:absolute;z-index:1015;border:1px solid #ccc;font-family:"Roboto", "Helvetica Neue", Arial, sans-serif;font-weight:300;background-color:#fff}.saved-queries-container .saved-queries-popup{max-height:250px;width:300px;overflow-y:scroll;box-shadow:0 4px 8px rgba(0, 0, 0, 0.3)}.saved-queries-container .saved-queries-popup ul{padding:15px;margin:0}.saved-queries-container .saved-queries-popup ul .saved-query{position:relative;display:flex;justify-content:space-between;padding:5px 0;list-style-type:none}.saved-queries-container .saved-queries-popup ul .saved-query .saved-query-link{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.saved-queries-container .saved-queries-popup ul .saved-query:hover .saved-query-actions{display:block}.saved-queries-container .saved-queries-popup ul .saved-query a{flex-grow:2;text-decoration:none;cursor:pointer;color:#003663}.saved-queries-container .saved-queries-popup ul .saved-query a:hover{text-decoration:underline}.saved-queries-container .saved-queries-popup ul .saved-query .saved-query-actions{display:none;position:absolute;right:0}.saved-queries-container .saved-queries-popup ul .saved-query .saved-query-action{border:none;background-color:#fff;color:#e84e0f;outline:none;cursor:pointer;font-size:1em;transition:all 0.15s ease-out}.saved-queries-container .saved-queries-popup ul .saved-query .saved-query-action:hover{color:#d0460d;transform:scale(1.2)}.saved-queries-container .arrow{position:absolute;display:block;right:calc(-0.5rem - 1px);width:8px;height:16px;margin:0.3rem 0}.saved-queries-container .arrow::before,.saved-queries-container .arrow::after{position:absolute;display:block;content:"";border-color:transparent;border-style:solid}.saved-queries-container .arrow::before{right:0;border-width:0.5rem 0 0.5rem 0.5rem;border-left-color:rgba(0, 0, 0, 0.25)}.saved-queries-container .arrow::after{right:1px;border-width:0.5rem 0 0.5rem 0.5rem;border-left-color:#fff}',SavedQueriesPopup=class{constructor(t){registerInstance(this,t),this.internalSaveQuerySelectedEvent=createEvent(this,"internalSaveQuerySelectedEvent",7),this.internalEditSavedQueryEvent=createEvent(this,"internalEditSavedQueryEvent",7),this.internalSavedQuerySelectedForDeleteEvent=createEvent(this,"internalSavedQuerySelectedForDeleteEvent",7),this.internalSavedQuerySelectedForShareEvent=createEvent(this,"internalSavedQuerySelectedForShareEvent",7),this.internalCloseSavedQueriesPopupEvent=createEvent(this,"internalCloseSavedQueriesPopupEvent",7),this.config=void 0,this.serviceFactory=void 0}onWindowResize(t){t.target.closest(".saved-queries-container")||this.internalCloseSavedQueriesPopupEvent.emit()}keydownListener(t){"Escape"===t.key&&this.internalCloseSavedQueriesPopupEvent.emit()}onSelect(t,e){t.stopPropagation(),this.internalSaveQuerySelectedEvent.emit(e)}componentWillLoad(){this.translationService=this.serviceFactory.get(TranslationService)}componentDidRender(){this.setPopupPosition()}onEdit(t,e){t.stopPropagation(),this.internalEditSavedQueryEvent.emit(new UpdateQueryData(e.queryName,e.query,e.isPublic,!1))}onDelete(t,e){t.stopPropagation(),this.internalSavedQuerySelectedForDeleteEvent.emit(new DeleteQueryData(e.queryName,e.query,e.isPublic))}onShare(t,e){t.stopPropagation(),this.internalSavedQuerySelectedForShareEvent.emit(new DeleteQueryData(e.queryName,e.query,e.isPublic))}setPopupPosition(){const t=this.hostElement.getBoundingClientRect(),e=this.config.popupTarget.getBoundingClientRect(),n=this.hostElement.closest("ontotext-yasgui").querySelector(".yasqe").classList.contains("yasqe-fullscreen"),r=this.hostElement.querySelector(".arrow");n?(this.hostElement.style.top="13px",this.hostElement.style.left=e.left-t.width-10+"px",r.style.top="40px"):(this.hostElement.style.top=e.top+e.height/2-t.height/2+"px",this.hostElement.style.left=e.left-t.width-10+"px",r.style.top=t.height/2-16+"px")}render(){return h(Host,{class:"saved-queries-container"},h("div",{class:"arrow"}),h("div",{class:"saved-queries-popup"},h("ul",null,this.config.savedQueriesList.map((t=>h("li",{class:"saved-query"},h("a",{class:"saved-query-link",onClick:e=>this.onSelect(e,t)},t.queryName),h("span",{class:"saved-query-actions"},t.readonly?"":h("button",{class:"saved-query-action edit-saved-query icon-edit",title:this.translationService.translate("yasqe.actions.saved_query_dialog.edit.button.tooltip"),onClick:e=>this.onEdit(e,t)}),t.readonly?"":h("button",{class:"saved-query-action delete-saved-query icon-trash",title:this.translationService.translate("yasqe.actions.saved_query_dialog.delete.button.tooltip"),onClick:e=>this.onDelete(e,t)}),h("button",{class:"saved-query-action share-saved-query icon-link",title:this.translationService.translate("yasqe.actions.saved_query_dialog.share.button.tooltip"),onClick:e=>this.onShare(e,t)}))))))))}get hostElement(){return getElement(this)}};SavedQueriesPopup.style=savedQueriesPopupCss;const shareQueryDialogCss="",ShareQueryDialog=class{constructor(t){registerInstance(this,t),this.internalShareQueryDialogClosedEvent=createEvent(this,"internalShareQueryDialogClosedEvent",7),this.internalQueryShareLinkCopiedEvent=createEvent(this,"internalQueryShareLinkCopiedEvent",7),this.config=void 0,this.serviceFactory=void 0}onDialogClosed(){this.internalShareQueryDialogClosedEvent.emit()}onLinkCopied(){this.internalQueryShareLinkCopiedEvent.emit()}render(){return h("copy-link-dialog",{config:{copyLink:this.config.shareQueryLink},serviceFactory:this.serviceFactory,classes:"share-saved-query-dialog",copyLinkEventsObserver:this})}};ShareQueryDialog.style=shareQueryDialogCss;var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce((function(t,e){return t.concat([e+"-"+start,e+"-"+end])}),[]),placements=[].concat(basePlacements,[auto]).reduce((function(t,e){return t.concat([e,e+"-"+start,e+"-"+end])}),[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(t){return t?(t.nodeName||"").toLowerCase():null}function getWindow(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function isElement$1(t){return t instanceof getWindow(t).Element||t instanceof Element}function isHTMLElement(t){return t instanceof getWindow(t).HTMLElement||t instanceof HTMLElement}function isShadowRoot(t){return"undefined"!=typeof ShadowRoot&&(t instanceof getWindow(t).ShadowRoot||t instanceof ShadowRoot)}function applyStyles(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];isHTMLElement(i)&&getNodeName(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))}function effect$2(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],i=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});isHTMLElement(r)&&getNodeName(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(t){r.removeAttribute(t)})))}))}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement$1(t){return t.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&isHTMLElement(t)&&(i=t.offsetWidth>0&&round(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&round(r.height)/t.offsetHeight||1);var a=(isElement$1(t)?getWindow(t):window).visualViewport,s=!isLayoutViewport()&&n,u=(r.left+(s&&a?a.offsetLeft:0))/i,l=(r.top+(s&&a?a.offsetTop:0))/o,c=r.width/i,f=r.height/o;return{width:c,height:f,top:l,right:u+c,bottom:l+f,left:u,x:u,y:l}}function getLayoutRect(t){var e=getBoundingClientRect(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function contains(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&isShadowRoot(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function getComputedStyle$1(t){return getWindow(t).getComputedStyle(t)}function isTableElement(t){return["table","td","th"].indexOf(getNodeName(t))>=0}function getDocumentElement(t){return((isElement$1(t)?t.ownerDocument:t.document)||window.document).documentElement}function getParentNode(t){return"html"===getNodeName(t)?t:t.assignedSlot||t.parentNode||(isShadowRoot(t)?t.host:null)||getDocumentElement(t)}function getTrueOffsetParent(t){return isHTMLElement(t)&&"fixed"!==getComputedStyle$1(t).position?t.offsetParent:null}function getContainingBlock(t){var e=/firefox/i.test(getUAString());if(/Trident/i.test(getUAString())&&isHTMLElement(t)&&"fixed"===getComputedStyle$1(t).position)return null;var n=getParentNode(t);for(isShadowRoot(n)&&(n=n.host);isHTMLElement(n)&&["html","body"].indexOf(getNodeName(n))<0;){var r=getComputedStyle$1(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}function getOffsetParent(t){for(var e=getWindow(t),n=getTrueOffsetParent(t);n&&isTableElement(n)&&"static"===getComputedStyle$1(n).position;)n=getTrueOffsetParent(n);return n&&("html"===getNodeName(n)||"body"===getNodeName(n)&&"static"===getComputedStyle$1(n).position)?e:n||getContainingBlock(t)||e}function getMainAxisFromPlacement(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function within(t,e,n){return max(t,min(e,n))}function withinMaxClamp(t,e,n){var r=within(t,e,n);return r>n?n:r}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(t){return Object.assign({},getFreshSideObject(),t)}function expandToHashMap(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var toPaddingObject=function(t,e){return mergePaddingObject("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:expandToHashMap(t,basePlacements))};function arrow(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=getBasePlacement$1(n.placement),u=getMainAxisFromPlacement(s),l=[left,right].indexOf(s)>=0?"height":"width";if(o&&a){var c=toPaddingObject(i.padding,n),f=getLayoutRect(o),d="y"===u?top:left,h="y"===u?bottom:right,p=n.rects.reference[l]+n.rects.reference[u]-a[u]-n.rects.popper[l],v=a[u]-n.rects.reference[u],b=getOffsetParent(o),g=b?"y"===u?b.clientHeight||0:b.clientWidth||0:0,m=g/2-f[l]/2+(p/2-v/2),y=within(c[d],m,g-f[l]-c[h]);n.modifiersData[r]=((e={})[u]=y,e.centerOffset=y-m,e)}}function effect$1(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&contains(e.elements.popper,r)&&(e.elements.arrow=r)}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(t){return t.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(t){var e=t.y,n=window.devicePixelRatio||1;return{x:round(t.x*n)/n||0,y:round(e*n)/n||0}}function mapToStyles(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,a=t.offsets,s=t.position,u=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,f=t.isFixed,d=a.x,h=void 0===d?0:d,p=a.y,v=void 0===p?0:p,b="function"==typeof c?c({x:h,y:v}):{x:h,y:v};h=b.x,v=b.y;var g=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),y=left,E=top,x=window;if(l){var T=getOffsetParent(n),_="clientHeight",S="clientWidth";T===getWindow(n)&&"static"!==getComputedStyle$1(T=getDocumentElement(n)).position&&"absolute"===s&&(_="scrollHeight",S="scrollWidth"),(i===top||(i===left||i===right)&&o===end)&&(E=bottom,v-=(f&&T===x&&x.visualViewport?x.visualViewport.height:T[_])-r.height,v*=u?1:-1),i!==left&&(i!==top&&i!==bottom||o!==end)||(y=right,h-=(f&&T===x&&x.visualViewport?x.visualViewport.width:T[S])-r.width,h*=u?1:-1)}var w,A=Object.assign({position:s},l&&unsetSides),N=!0===c?roundOffsetsByDPR({x:h,y:v}):{x:h,y:v};return h=N.x,v=N.y,Object.assign({},A,u?((w={})[E]=m?"0":"",w[y]=g?"0":"",w.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",w):((e={})[E]=m?v+"px":"",e[y]=g?h+"px":"",e.transform="",e))}function computeStyles(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,l={placement:getBasePlacement$1(e.placement),variation:getVariation(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,mapToStyles(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,mapToStyles(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,u=getWindow(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&l.forEach((function(t){t.addEventListener("scroll",n.update,passive)})),s&&u.addEventListener("resize",n.update,passive),function(){o&&l.forEach((function(t){t.removeEventListener("scroll",n.update,passive)})),s&&u.removeEventListener("resize",n.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(t){return t.replace(/left|right|bottom|top/g,(function(t){return hash$1[t]}))}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(t){return t.replace(/start|end/g,(function(t){return hash[t]}))}function getWindowScroll(t){var e=getWindow(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getWindowScroll(t).scrollLeft}function getViewportRect(t,e){var n=getWindow(t),r=getDocumentElement(t),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;var l=isLayoutViewport();(l||!l&&"fixed"===e)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s+getWindowScrollBarX(t),y:u}}function getDocumentRect(t){var e,n=getDocumentElement(t),r=getWindowScroll(t),i=null==(e=t.ownerDocument)?void 0:e.body,o=max(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=max(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+getWindowScrollBarX(t),u=-r.scrollTop;return"rtl"===getComputedStyle$1(i||n).direction&&(s+=max(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}function isScrollParent(t){var e=getComputedStyle$1(t);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function getScrollParent(t){return["html","body","#document"].indexOf(getNodeName(t))>=0?t.ownerDocument.body:isHTMLElement(t)&&isScrollParent(t)?t:getScrollParent(getParentNode(t))}function listScrollParents(t,e){var n;void 0===e&&(e=[]);var r=getScrollParent(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),o=getWindow(r),a=i?[o].concat(o.visualViewport||[],isScrollParent(r)?r:[]):r,s=e.concat(a);return i?s:s.concat(listScrollParents(getParentNode(a)))}function rectToClientRect(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function getInnerBoundingClientRect(t,e){var n=getBoundingClientRect(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function getClientRectFromMixedType(t,e,n){return e===viewport?rectToClientRect(getViewportRect(t,n)):isElement$1(e)?getInnerBoundingClientRect(e,n):rectToClientRect(getDocumentRect(getDocumentElement(t)))}function getClippingParents(t){var e=listScrollParents(getParentNode(t)),n=["absolute","fixed"].indexOf(getComputedStyle$1(t).position)>=0&&isHTMLElement(t)?getOffsetParent(t):t;return isElement$1(n)?e.filter((function(t){return isElement$1(t)&&contains(t,n)&&"body"!==getNodeName(t)})):[]}function getClippingRect(t,e,n,r){var i="clippingParents"===e?getClippingParents(t):[].concat(e),o=[].concat(i,[n]),a=o.reduce((function(e,n){var i=getClientRectFromMixedType(t,n,r);return e.top=max(i.top,e.top),e.right=min(i.right,e.right),e.bottom=min(i.bottom,e.bottom),e.left=max(i.left,e.left),e}),getClientRectFromMixedType(t,o[0],r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function computeOffsets(t){var e,n=t.reference,r=t.element,i=t.placement,o=i?getBasePlacement$1(i):null,a=i?getVariation(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case top:e={x:s,y:n.y-r.height};break;case bottom:e={x:s,y:n.y+n.height};break;case right:e={x:n.x+n.width,y:u};break;case left:e={x:n.x-r.width,y:u};break;default:e={x:n.x,y:n.y}}var l=o?getMainAxisFromPlacement(o):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case start:e[l]=e[l]-(n[c]/2-r[c]/2);break;case end:e[l]=e[l]+(n[c]/2-r[c]/2)}}return e}function detectOverflow(t,e){void 0===e&&(e={});var n=e.placement,r=void 0===n?t.placement:n,i=e.strategy,o=void 0===i?t.strategy:i,a=e.boundary,s=void 0===a?clippingParents:a,u=e.rootBoundary,l=void 0===u?viewport:u,c=e.elementContext,f=void 0===c?popper:c,d=e.altBoundary,h=void 0!==d&&d,p=e.padding,v=void 0===p?0:p,b=mergePaddingObject("number"!=typeof v?v:expandToHashMap(v,basePlacements)),g=t.rects.popper,m=t.elements[h?f===popper?reference:popper:f],y=getClippingRect(isElement$1(m)?m:m.contextElement||getDocumentElement(t.elements.popper),s,l,o),E=getBoundingClientRect(t.elements.reference),x=computeOffsets({reference:E,element:g,strategy:"absolute",placement:r}),T=rectToClientRect(Object.assign({},g,x)),_=f===popper?T:E,S={top:y.top-_.top+b.top,bottom:_.bottom-y.bottom+b.bottom,left:y.left-_.left+b.left,right:_.right-y.right+b.right},w=t.modifiersData.offset;if(f===popper&&w){var A=w[r];Object.keys(S).forEach((function(t){var e=[right,bottom].indexOf(t)>=0?1:-1,n=[top,bottom].indexOf(t)>=0?"y":"x";S[t]+=A[n]*e}))}return S}function computeAutoPlacement(t,e){void 0===e&&(e={});var n=e.boundary,r=e.rootBoundary,i=e.padding,o=e.flipVariations,a=e.allowedAutoPlacements,s=void 0===a?placements:a,u=getVariation(e.placement),l=u?o?variationPlacements:variationPlacements.filter((function(t){return getVariation(t)===u})):basePlacements,c=l.filter((function(t){return s.indexOf(t)>=0}));0===c.length&&(c=l);var f=c.reduce((function(e,o){return e[o]=detectOverflow(t,{placement:o,boundary:n,rootBoundary:r,padding:i})[getBasePlacement$1(o)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}function getExpandedFallbackPlacements(t){if(getBasePlacement$1(t)===auto)return[];var e=getOppositePlacement(t);return[getOppositeVariationPlacement(t),e,getOppositeVariationPlacement(e)]}function flip(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,l=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=void 0===h||h,v=n.allowedAutoPlacements,b=e.options.placement,g=getBasePlacement$1(b),m=u||(g!==b&&p?getExpandedFallbackPlacements(b):[getOppositePlacement(b)]),y=[b].concat(m).reduce((function(t,n){return t.concat(getBasePlacement$1(n)===auto?computeAutoPlacement(e,{placement:n,boundary:c,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:v}):n)}),[]),E=e.rects.reference,x=e.rects.popper,T=new Map,_=!0,S=y[0],w=0;w<y.length;w++){var A=y[w],N=getBasePlacement$1(A),I=getVariation(A)===start,C=[top,bottom].indexOf(N)>=0,L=C?"width":"height",R=detectOverflow(e,{placement:A,boundary:c,rootBoundary:f,altBoundary:d,padding:l}),O=C?I?right:left:I?bottom:top;E[L]>x[L]&&(O=getOppositePlacement(O));var k=getOppositePlacement(O),P=[];if(o&&P.push(R[N]<=0),s&&P.push(R[O]<=0,R[k]<=0),P.every((function(t){return t}))){S=A,_=!1;break}T.set(A,P)}if(_)for(var D=function(t){var e=y.find((function(e){var n=T.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return S=e,"break"},M=p?3:1;M>0&&"break"!==D(M);M--);e.placement!==S&&(e.modifiersData[r]._skip=!0,e.placement=S,e.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function isAnySideFullyClipped(t){return[top,right,bottom,left].some((function(e){return t[e]>=0}))}function hide(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=detectOverflow(e,{elementContext:"reference"}),s=detectOverflow(e,{altBoundary:!0}),u=getSideOffsets(a,r),l=getSideOffsets(s,i,o),c=isAnySideFullyClipped(u),f=isAnySideFullyClipped(l);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(t,e,n){var r=getBasePlacement$1(t),i=[left,top].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[left,right].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function offset(t){var e=t.state,n=t.name,r=t.options.offset,i=void 0===r?[0,0]:r,o=placements.reduce((function(t,n){return t[n]=distanceAndSkiddingToXY(n,e.rects,i),t}),{}),a=o[e.placement],s=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=a.x,e.modifiersData.popperOffsets.y+=s),e.modifiersData[n]=o}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(t){var e=t.state;e.modifiersData[t.name]=computeOffsets({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(t){return"x"===t?"y":"x"}function preventOverflow(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,u=n.tether,l=void 0===u||u,c=n.tetherOffset,f=void 0===c?0:c,d=detectOverflow(e,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),h=getBasePlacement$1(e.placement),p=getVariation(e.placement),v=!p,b=getMainAxisFromPlacement(h),g=getAltAxis(b),m=e.modifiersData.popperOffsets,y=e.rects.reference,E=e.rects.popper,x="function"==typeof f?f(Object.assign({},e.rects,{placement:e.placement})):f,T="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),_=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,S={x:0,y:0};if(m){if(o){var w,A="y"===b?top:left,N="y"===b?bottom:right,I="y"===b?"height":"width",C=m[b],L=C+d[A],R=C-d[N],O=l?-E[I]/2:0,k=p===start?y[I]:E[I],P=p===start?-E[I]:-y[I],D=e.elements.arrow,M=l&&D?getLayoutRect(D):{width:0,height:0},j=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:getFreshSideObject(),q=j[A],F=j[N],U=within(0,y[I],M[I]),G=v?y[I]/2-O-U-q-T.mainAxis:k-U-q-T.mainAxis,B=v?-y[I]/2+O+U+F+T.mainAxis:P+U+F+T.mainAxis,V=e.elements.arrow&&getOffsetParent(e.elements.arrow),H=null!=(w=null==_?void 0:_[b])?w:0,z=C+B-H,$=within(l?min(L,C+G-H-(V?"y"===b?V.clientTop||0:V.clientLeft||0:0)):L,C,l?max(R,z):R);m[b]=$,S[b]=$-C}if(s){var Y,W=m[g],Q="y"===g?"height":"width",K=W+d["x"===b?top:left],X=W-d["x"===b?bottom:right],Z=-1!==[top,left].indexOf(h),J=null!=(Y=null==_?void 0:_[g])?Y:0,tt=Z?K:W-y[Q]-E[Q]-J+T.altAxis,et=Z?W+y[Q]+E[Q]-J-T.altAxis:X,nt=l&&Z?withinMaxClamp(tt,W,et):within(l?tt:K,W,l?et:X);m[g]=nt,S[g]=nt-W}e.modifiersData[r]=S}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function getNodeScroll(t){return t!==getWindow(t)&&isHTMLElement(t)?getHTMLElementScroll(t):getWindowScroll(t)}function isElementScaled(t){var e=t.getBoundingClientRect(),n=round(e.width)/t.offsetWidth||1,r=round(e.height)/t.offsetHeight||1;return 1!==n||1!==r}function getCompositeRect(t,e,n){void 0===n&&(n=!1);var r=isHTMLElement(e),i=isHTMLElement(e)&&isElementScaled(e),o=getDocumentElement(e),a=getBoundingClientRect(t,i,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==getNodeName(e)||isScrollParent(o))&&(s=getNodeScroll(e)),isHTMLElement(e)?((u=getBoundingClientRect(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):o&&(u.x=getWindowScrollBarX(o))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function order(t){var e=new Map,n=new Set,r=[];function i(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var r=e.get(t);r&&i(r)}})),r.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||i(t)})),r}function orderModifiers(t){var e=order(t);return modifierPhases.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}function debounce$1(t){var e;return function(){return e||(e=new Promise((function(n){Promise.resolve().then((function(){e=void 0,n(t())}))}))),e}}function mergeByName(t){var e=t.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function popperGenerator(t){void 0===t&&(t={});var e=t.defaultModifiers,n=void 0===e?[]:e,r=t.defaultOptions,i=void 0===r?DEFAULT_OPTIONS:r;return function(t,e,r){void 0===r&&(r=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},a=[],s=!1,u={state:o,setOptions:function(r){var s="function"==typeof r?r(o.options):r;l(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:isElement$1(t)?listScrollParents(t):t.contextElement?listScrollParents(t.contextElement):[],popper:listScrollParents(e)};var c=orderModifiers(mergeByName([].concat(n,o.options.modifiers)));return o.orderedModifiers=c.filter((function(t){return t.enabled})),o.orderedModifiers.forEach((function(t){var e=t.options,n=t.effect;if("function"==typeof n){var r=n({state:o,name:t.name,instance:u,options:void 0===e?{}:e});a.push(r||function(){})}})),u.update()},forceUpdate:function(){if(!s){var t=o.elements,e=t.reference,n=t.popper;if(areValidElements(e,n)){o.rects={reference:getCompositeRect(e,getOffsetParent(n),"fixed"===o.options.strategy),popper:getLayoutRect(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,l=i.options;"function"==typeof a&&(o=a({state:o,options:void 0===l?{}:l,name:i.name,instance:u})||o)}else o.reset=!1,r=-1}}},update:debounce$1((function(){return new Promise((function(t){u.forceUpdate(),t(o)}))})),destroy:function(){l(),s=!0}};if(!areValidElements(t,e))return u;function l(){a.forEach((function(t){return t()})),a=[]}return u.setOptions(r).then((function(t){!s&&r.onFirstUpdate&&r.onFirstUpdate(t)})),u}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers}),BOX_CLASS="tippy-box",CONTENT_CLASS="tippy-content",BACKDROP_CLASS="tippy-backdrop",ARROW_CLASS="tippy-arrow",SVG_ARROW_CLASS="tippy-svg-arrow",TOUCH_OPTIONS={passive:!0,capture:!0},TIPPY_DEFAULT_APPEND_TO=function(){return document.body};function getValueAtIndexOrReturn(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function isType(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function invokeWithArgsOrReturn(t,e){return"function"==typeof t?t.apply(void 0,e):t}function debounce(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout((function(){t(r)}),e)};var n}function splitBySpaces(t){return t.split(/\s+/).filter(Boolean)}function normalizeToArray(t){return[].concat(t)}function pushIfUnique(t,e){-1===t.indexOf(e)&&t.push(e)}function unique(t){return t.filter((function(e,n){return t.indexOf(e)===n}))}function getBasePlacement(t){return t.split("-")[0]}function arrayFrom(t){return[].slice.call(t)}function removeUndefinedProps(t){return Object.keys(t).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})}function div(){return document.createElement("div")}function isElement(t){return["Element","Fragment"].some((function(e){return isType(t,e)}))}function isNodeList(t){return isType(t,"NodeList")}function isMouseEvent(t){return isType(t,"MouseEvent")}function isReferenceElement(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function getArrayOfElements(t){return isElement(t)?[t]:isNodeList(t)?arrayFrom(t):Array.isArray(t)?t:arrayFrom(document.querySelectorAll(t))}function setTransitionDuration(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function setVisibilityState(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function getOwnerDocument(t){var e,n=normalizeToArray(t)[0];return null!=n&&null!=(e=n.ownerDocument)&&e.body?n.ownerDocument:document}function isCursorOutsideInteractiveBorder(t,e){var n=e.clientX,r=e.clientY;return t.every((function(t){var e=t.popperRect,i=t.popperState,o=t.props.interactiveBorder,a=getBasePlacement(i.placement),s=i.modifiersData.offset;return!s||e.top-r+("bottom"===a?s.top.y:0)>o||r-e.bottom-("top"===a?s.bottom.y:0)>o||e.left-n+("right"===a?s.left.x:0)>o||n-e.right-("left"===a?s.right.x:0)>o}))}function updateTransitionEndListener(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[r](e,n)}))}function actualContains(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var t=performance.now();t-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),lastMouseMoveTime=t}function onWindowBlur(){var t=document.activeElement;isReferenceElement(t)&&t.blur&&!t._tippy.state.isVisible&&t.blur()}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,TOUCH_OPTIONS),window.addEventListener("blur",onWindowBlur)}var isBrowser="undefined"!=typeof window&&"undefined"!=typeof document,isIE11=!!isBrowser&&!!window.msCrypto,pluginProps={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},renderProps={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},defaultProps=Object.assign({appendTo:TIPPY_DEFAULT_APPEND_TO,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},pluginProps,renderProps),defaultKeys=Object.keys(defaultProps),setDefaultProps=function(t){Object.keys(t).forEach((function(e){defaultProps[e]=t[e]}))};function getExtendedPassedProps(t){var e=(t.plugins||[]).reduce((function(e,n){var r,i=n.name;return i&&(e[i]=void 0!==t[i]?t[i]:null!=(r=defaultProps[i])?r:n.defaultValue),e}),{});return Object.assign({},t,e)}function getDataAttributeProps(t,e){return(e?Object.keys(getExtendedPassedProps(Object.assign({},defaultProps,{plugins:e}))):defaultKeys).reduce((function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(t){e[n]=r}return e}),{})}function evaluateProps(t,e){var n=Object.assign({},e,{content:invokeWithArgsOrReturn(e.content,[t])},e.ignoreAttributes?{}:getDataAttributeProps(t,e.plugins));return n.aria=Object.assign({},defaultProps.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}var innerHTML=function(){return"innerHTML"};function dangerouslySetInnerHTML(t,e){t[innerHTML()]=e}function createArrowElement(t){var e=div();return!0===t?e.className=ARROW_CLASS:(e.className=SVG_ARROW_CLASS,isElement(t)?e.appendChild(t):dangerouslySetInnerHTML(e,t)),e}function setContent(t,e){isElement(e.content)?(dangerouslySetInnerHTML(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?dangerouslySetInnerHTML(t,e.content):t.textContent=e.content)}function getChildren(t){var e=t.firstElementChild,n=arrayFrom(e.children);return{box:e,content:n.find((function(t){return t.classList.contains(CONTENT_CLASS)})),arrow:n.find((function(t){return t.classList.contains(ARROW_CLASS)||t.classList.contains(SVG_ARROW_CLASS)})),backdrop:n.find((function(t){return t.classList.contains(BACKDROP_CLASS)}))}}function render(t){var e=div(),n=div();n.className=BOX_CLASS,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=div();function i(n,r){var i=getChildren(e),o=i.box,a=i.content,s=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||setContent(a,t.props),r.arrow?s?n.arrow!==r.arrow&&(o.removeChild(s),o.appendChild(createArrowElement(r.arrow))):o.appendChild(createArrowElement(r.arrow)):s&&o.removeChild(s)}return r.className=CONTENT_CLASS,r.setAttribute("data-state","hidden"),setContent(r,t.props),e.appendChild(n),n.appendChild(r),i(t.props,t.props),{popper:e,onUpdate:i}}render.$$tippy=!0;var idCounter=1,mouseMoveListeners=[],mountedInstances=[];function createTippy(t,e){var n,r,i,o,a,s,u,l=evaluateProps(t,Object.assign({},defaultProps,getExtendedPassedProps(removeUndefinedProps(e)))),c=!1,f=!1,d=!1,h=!1,p=[],v=debounce($,l.interactiveDebounce),b=idCounter++,g=unique(l.plugins),m={id:b,reference:t,popper:div(),popperInstance:null,props:l,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:g,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(e){if(!m.state.isDestroyed){O("onBeforeUpdate",[m,e]),H();var n=m.props,r=evaluateProps(t,Object.assign({},n,removeUndefinedProps(e),{ignoreAttributes:!0}));m.props=r,V(),n.interactiveDebounce!==r.interactiveDebounce&&(D(),v=debounce($,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?normalizeToArray(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):r.triggerTarget&&t.removeAttribute("aria-expanded"),P(),R(),x&&x(n,r),m.popperInstance&&(K(),Z().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)}))),O("onAfterUpdate",[m,e])}},setContent:function(t){m.setProps({content:t})},show:function(){var t=m.state.isVisible,e=m.state.isDestroyed,n=!m.state.isEnabled,r=currentInput.isTouch&&!m.props.touch,i=getValueAtIndexOrReturn(m.props.duration,0,defaultProps.duration);if(!(t||e||n||r||N().hasAttribute("disabled")||(O("onShow",[m],!1),!1===m.props.onShow(m)))){if(m.state.isVisible=!0,A()&&(E.style.visibility="visible"),R(),F(),m.state.isMounted||(E.style.transition="none"),A()){var o=C();setTransitionDuration([o.box,o.content],0)}var a,u,l;s=function(){var t;if(m.state.isVisible&&!h){if(h=!0,E.style.transition=m.props.moveTransition,A()&&m.props.animation){var e=C(),n=e.box,r=e.content;setTransitionDuration([n,r],i),setVisibilityState([n,r],"visible")}k(),P(),pushIfUnique(mountedInstances,m),null==(t=m.popperInstance)||t.forceUpdate(),O("onMount",[m]),m.props.animation&&A()&&function(t){G(t,(function(){m.state.isShown=!0,O("onShown",[m])}))}(i)}},u=m.props.appendTo,l=N(),(a=m.props.interactive&&u===TIPPY_DEFAULT_APPEND_TO||"parent"===u?l.parentNode:invokeWithArgsOrReturn(u,[l])).contains(E)||a.appendChild(E),m.state.isMounted=!0,K()}},hide:function(){var t=!m.state.isVisible,e=m.state.isDestroyed,n=!m.state.isEnabled,r=getValueAtIndexOrReturn(m.props.duration,1,defaultProps.duration);if(!(t||e||n)&&(O("onHide",[m],!1),!1!==m.props.onHide(m))){if(m.state.isVisible=!1,m.state.isShown=!1,h=!1,c=!1,A()&&(E.style.visibility="hidden"),D(),U(),R(!0),A()){var i=C(),o=i.box,a=i.content;m.props.animation&&(setTransitionDuration([o,a],r),setVisibilityState([o,a],"hidden"))}k(),P(),m.props.animation?A()&&function(t,e){G(t,(function(){!m.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&e()}))}(r,m.unmount):m.unmount()}},hideWithInteractivity:function(t){I().addEventListener("mousemove",v),pushIfUnique(mouseMoveListeners,v),v(t)},enable:function(){m.state.isEnabled=!0},disable:function(){m.hide(),m.state.isEnabled=!1},unmount:function(){m.state.isVisible&&m.hide(),m.state.isMounted&&(X(),Z().forEach((function(t){t._tippy.unmount()})),E.parentNode&&E.parentNode.removeChild(E),mountedInstances=mountedInstances.filter((function(t){return t!==m})),m.state.isMounted=!1,O("onHidden",[m]))},destroy:function(){m.state.isDestroyed||(m.clearDelayTimeouts(),m.unmount(),H(),delete t._tippy,m.state.isDestroyed=!0,O("onDestroy",[m]))}};if(!l.render)return m;var y=l.render(m),E=y.popper,x=y.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+m.id,m.popper=E,t._tippy=m,E._tippy=m;var T=g.map((function(t){return t.fn(m)})),_=t.hasAttribute("aria-expanded");return V(),P(),R(),O("onCreate",[m]),l.showOnCreate&&J(),E.addEventListener("mouseenter",(function(){m.props.interactive&&m.state.isVisible&&m.clearDelayTimeouts()})),E.addEventListener("mouseleave",(function(){m.props.interactive&&m.props.trigger.indexOf("mouseenter")>=0&&I().addEventListener("mousemove",v)})),m;function S(){var t=m.props.touch;return Array.isArray(t)?t:[t,0]}function w(){return"hold"===S()[0]}function A(){var t;return!(null==(t=m.props.render)||!t.$$tippy)}function N(){return u||t}function I(){var t=N().parentNode;return t?getOwnerDocument(t):document}function C(){return getChildren(E)}function L(t){return m.state.isMounted&&!m.state.isVisible||currentInput.isTouch||o&&"focus"===o.type?0:getValueAtIndexOrReturn(m.props.delay,t?0:1,defaultProps.delay)}function R(t){void 0===t&&(t=!1),E.style.pointerEvents=m.props.interactive&&!t?"":"none",E.style.zIndex=""+m.props.zIndex}function O(t,e,n){var r;void 0===n&&(n=!0),T.forEach((function(n){n[t]&&n[t].apply(n,e)})),n&&(r=m.props)[t].apply(r,e)}function k(){var e=m.props.aria;if(e.content){var n="aria-"+e.content,r=E.id;normalizeToArray(m.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(m.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var i=e&&e.replace(r,"").trim();i?t.setAttribute(n,i):t.removeAttribute(n)}}))}}function P(){!_&&m.props.aria.expanded&&normalizeToArray(m.props.triggerTarget||t).forEach((function(t){m.props.interactive?t.setAttribute("aria-expanded",m.state.isVisible&&t===N()?"true":"false"):t.removeAttribute("aria-expanded")}))}function D(){I().removeEventListener("mousemove",v),mouseMoveListeners=mouseMoveListeners.filter((function(t){return t!==v}))}function M(e){if(!currentInput.isTouch||!d&&"mousedown"!==e.type){var n=e.composedPath&&e.composedPath()[0]||e.target;if(!m.props.interactive||!actualContains(E,n)){if(normalizeToArray(m.props.triggerTarget||t).some((function(t){return actualContains(t,n)}))){if(currentInput.isTouch)return;if(m.state.isVisible&&m.props.trigger.indexOf("click")>=0)return}else O("onClickOutside",[m,e]);!0===m.props.hideOnClick&&(m.clearDelayTimeouts(),m.hide(),f=!0,setTimeout((function(){f=!1})),m.state.isMounted||U())}}}function j(){d=!0}function q(){d=!1}function F(){var t=I();t.addEventListener("mousedown",M,!0),t.addEventListener("touchend",M,TOUCH_OPTIONS),t.addEventListener("touchstart",q,TOUCH_OPTIONS),t.addEventListener("touchmove",j,TOUCH_OPTIONS)}function U(){var t=I();t.removeEventListener("mousedown",M,!0),t.removeEventListener("touchend",M,TOUCH_OPTIONS),t.removeEventListener("touchstart",q,TOUCH_OPTIONS),t.removeEventListener("touchmove",j,TOUCH_OPTIONS)}function G(t,e){var n=C().box;function r(t){t.target===n&&(updateTransitionEndListener(n,"remove",r),e())}if(0===t)return e();updateTransitionEndListener(n,"remove",a),updateTransitionEndListener(n,"add",r),a=r}function B(e,n,r){void 0===r&&(r=!1),normalizeToArray(m.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,r),p.push({node:t,eventType:e,handler:n,options:r})}))}function V(){w()&&(B("touchstart",z,{passive:!0}),B("touchend",Y,{passive:!0})),splitBySpaces(m.props.trigger).forEach((function(t){if("manual"!==t)switch(B(t,z),t){case"mouseenter":B("mouseleave",Y);break;case"focus":B(isIE11?"focusout":"blur",W);break;case"focusin":B("focusout",W)}}))}function H(){p.forEach((function(t){t.node.removeEventListener(t.eventType,t.handler,t.options)})),p=[]}function z(t){var e,n=!1;if(m.state.isEnabled&&!Q(t)&&!f){var r="focus"===(null==(e=o)?void 0:e.type);o=t,u=t.currentTarget,P(),!m.state.isVisible&&isMouseEvent(t)&&mouseMoveListeners.forEach((function(e){return e(t)})),"click"===t.type&&(m.props.trigger.indexOf("mouseenter")<0||c)&&!1!==m.props.hideOnClick&&m.state.isVisible?n=!0:J(t),"click"===t.type&&(c=!n),n&&!r&&tt(t)}}function $(t){var e=t.target,n=N().contains(e)||E.contains(e);if("mousemove"!==t.type||!n){var r=Z().concat(E).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:l}:null})).filter(Boolean);isCursorOutsideInteractiveBorder(r,t)&&(D(),tt(t))}}function Y(t){Q(t)||m.props.trigger.indexOf("click")>=0&&c||(m.props.interactive?m.hideWithInteractivity(t):tt(t))}function W(t){m.props.trigger.indexOf("focusin")<0&&t.target!==N()||m.props.interactive&&t.relatedTarget&&E.contains(t.relatedTarget)||tt(t)}function Q(t){return!!currentInput.isTouch&&w()!==t.type.indexOf("touch")>=0}function K(){X();var e=m.props,n=e.popperOptions,r=e.placement,i=e.offset,o=e.getReferenceClientRect,a=e.moveTransition,u=A()?getChildren(E).arrow:null,l=o?{getBoundingClientRect:o,contextElement:o.contextElement||N()}:t,c=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(A()){var n=C().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];A()&&u&&c.push({name:"arrow",options:{element:u,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),m.popperInstance=createPopper(l,E,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:c}))}function X(){m.popperInstance&&(m.popperInstance.destroy(),m.popperInstance=null)}function Z(){return arrayFrom(E.querySelectorAll("[data-tippy-root]"))}function J(t){m.clearDelayTimeouts(),t&&O("onTrigger",[m,t]),F();var e=L(!0),r=S(),i=r[1];currentInput.isTouch&&"hold"===r[0]&&i&&(e=i),e?n=setTimeout((function(){m.show()}),e):m.show()}function tt(t){if(m.clearDelayTimeouts(),O("onUntrigger",[m,t]),m.state.isVisible){if(!(m.props.trigger.indexOf("mouseenter")>=0&&m.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&c)){var e=L(!1);e?r=setTimeout((function(){m.state.isVisible&&m.hide()}),e):i=requestAnimationFrame((function(){m.hide()}))}}else U()}}function tippy(t,e){void 0===e&&(e={});var n=defaultProps.plugins.concat(e.plugins||[]);bindGlobalEventListeners();var r=Object.assign({},e,{plugins:n}),i=getArrayOfElements(t).reduce((function(t,e){var n=e&&createTippy(e,r);return n&&t.push(n),t}),[]);return isElement(t)?i[0]:i}tippy.defaultProps=defaultProps,tippy.setDefaultProps=setDefaultProps,tippy.currentInput=currentInput,Object.assign({},applyStyles$1,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}}),tippy.setDefaultProps({render});const ontotextTooltipWebComponentCss=".tippy-box{background-color:#003663;border-radius:0}.tippy-arrow{color:#003663}",OntotextTooltipWebComponent=class{constructor(t){registerInstance(this,t),this.dataTooltip=void 0,this.placement=void 0,this.showOnClick=void 0}configurationChanged(){this.update()}componentDidLoad(){this.init()}disconnectedCallback(){this.destroy()}render(){return h(Host,{class:"yasgui-tooltip"},h("slot",null))}update(){this.init(),this.tooltip.setContent(this.dataTooltip)}init(){if(this.tooltip)return;const t={content:this.dataTooltip,trigger:"manual",placement:this.placement,allowHTML:!0,triggerTarget:this.el,onShow:()=>document.querySelectorAll(".jfk-tooltip").forEach((t=>t.classList.add("hidden"))),onHide:()=>document.querySelectorAll(".jfk-tooltip").forEach((t=>t.classList.remove("hidden")))};this.tooltip=tippy(this.el,t),this.showFunction=this.createShowFunction(this.tooltip),this.hideFunction=this.createHideFunction(this.tooltip),this.el.addEventListener("mouseover",this.showFunction),this.showOnClick&&this.el.addEventListener("click",this.showFunction),this.el.addEventListener("mouseleave",this.hideFunction)}createShowFunction(t){return()=>{this.dataTooltip&&t.show()}}createHideFunction(t){return()=>t.hide()}destroy(){this.el.removeEventListener("mouseover",this.showFunction),this.el.removeEventListener("click",this.showFunction),this.el.removeEventListener("mouseleave",this.hideFunction)}get el(){return getElement(this)}static get watchers(){return{dataTooltip:["configurationChanged"]}}};OntotextTooltipWebComponent.style=ontotextTooltipWebComponentCss;export{ConfirmationDialog as confirmation_dialog,CopyLinkDialog as copy_link_dialog,CopyResourceLinkDialog as copy_resource_link_dialog,OntotextDialogWebComponent as ontotext_dialog_web_component,OntotextYasguiWebComponent as ontotext_yasgui,SaveQueryDialog as save_query_dialog,SavedQueriesPopup as saved_queries_popup,ShareQueryDialog as share_query_dialog,OntotextTooltipWebComponent as yasgui_tooltip}